File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ def __init__(
142142
143143 self .alphas = 1.0 - self .betas
144144 self .alphas_cumprod = torch .cumprod (self .alphas , dim = 0 )
145- self .sigmas = 1 - self .alphas ** 2
145+ self .sigmas = 1 - self .alphas ** 2
146146 self .one = torch .tensor (1.0 )
147147
148148 # standard deviation of the initial noise distribution
@@ -269,8 +269,8 @@ def step(
269269 elif prediction_type == "v" :
270270 # v_t = alpha_t * epsilon - sigma_t * x
271271 # need to merge the PRs for sigma to be available in DDPM
272- pred_original_sample = sample * self .alphas [t ] - model_output * self .sigmas [t ]
273- eps = model_output * self .alphas [t ] - sample * self .sigmas [t ]
272+ pred_original_sample = sample * self .alphas [t ] - model_output * self .sigmas [t ]
273+ eps = model_output * self .alphas [t ] - sample * self .sigmas [t ]
274274 raise NotImplementedError (f"v prediction not yet implemented for DDPM" )
275275 else :
276276 raise ValueError (f"prediction_type given as { prediction_type } must be one of `epsilon`, `sample`, or `v`" )
You can’t perform that action at this time.
0 commit comments