Compare commits

...

1 Commits

Author SHA1 Message Date
Phil Wang
3dae43fa0e fix misnamed variable, thanks to @nousr 2022-07-09 19:01:37 -07:00
2 changed files with 4 additions and 4 deletions

View File

@@ -1061,9 +1061,9 @@ class DiffusionPrior(nn.Module):
c2 = ((1 - alpha_next) - torch.square(c1)).sqrt()
noise = torch.randn_like(image_embed) if time_next > 0 else 0.
img = x_start * alpha_next.sqrt() + \
c1 * noise + \
c2 * pred_noise
image_embed = x_start * alpha_next.sqrt() + \
c1 * noise + \
c2 * pred_noise
return image_embed

View File

@@ -1 +1 @@
__version__ = '0.19.4'
__version__ = '0.19.5'