We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad40e26 commit 6aaa268Copy full SHA for 6aaa268
examples/community/pipeline_flux_rf_inversion.py
@@ -880,12 +880,10 @@ def __call__(
880
v_t = -noise_pred
881
v_t_cond = (y_0 - latents) / (1 - t_i)
882
eta_t = eta if start_timestep <= i < stop_timestep else 0.0
883
- if start_timestep <= i < stop_timestep:
884
- # controlled vector field
885
- v_hat_t = v_t + eta * (v_t_cond - v_t)
886
-
887
- else:
888
- v_hat_t = v_t
+ if decay_eta:
+ eta_t = eta_t * (1 - i / num_inference_steps) # Decay eta over the loop
+ # eta_t = eta * (1 - i / num_inference_steps) ** 2
+ v_hat_t = v_t + eta_t * (v_t_cond - v_t)
889
890
# SDE Eq: 17 from https://arxiv.org/pdf/2410.10792
891
latents = latents + v_hat_t * (sigmas[i] - sigmas[i + 1])
0 commit comments