Skip to content

Commit

Permalink
smaller epsilon when deriving flow from predict noise objective
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Aug 20, 2024
1 parent c05f426 commit 73a0ca7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "rectified-flow-pytorch"
version = "0.1.0"
version = "0.1.1"
description = "Rectified Flow in Pytorch"
authors = [
{ name = "Phil Wang", email = "[email protected]" }
Expand Down
2 changes: 1 addition & 1 deletion rectified_flow_pytorch/rectified_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def predict_flow(self, model: Module, noised, *, times):
noise = output
padded_times = append_dims(times, noised.ndim - 1)

flow = (noised - noise) / padded_times.clamp(min = 1e-2)
flow = (noised - noise) / padded_times.clamp(min = 1e-20)

else:
raise ValueError(f'unknown objective {self.predict}')
Expand Down

0 comments on commit 73a0ca7

Please sign in to comment.