Skip to content

Commit 73a0ca7

Browse files
committed
smaller epsilon when deriving flow from predict noise objective
1 parent c05f426 commit 73a0ca7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "rectified-flow-pytorch"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "Rectified Flow in Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "[email protected]" }

rectified_flow_pytorch/rectified_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def predict_flow(self, model: Module, noised, *, times):
263263
noise = output
264264
padded_times = append_dims(times, noised.ndim - 1)
265265

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

268268
else:
269269
raise ValueError(f'unknown objective {self.predict}')

0 commit comments

Comments
 (0)