fix misnamed variable, thanks to @nousr

This commit is contained in:
Phil Wang
2022-07-09 19:01:37 -07:00
parent a598820012
commit 3dae43fa0e
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() c2 = ((1 - alpha_next) - torch.square(c1)).sqrt()
noise = torch.randn_like(image_embed) if time_next > 0 else 0. noise = torch.randn_like(image_embed) if time_next > 0 else 0.
img = x_start * alpha_next.sqrt() + \ image_embed = x_start * alpha_next.sqrt() + \
c1 * noise + \ c1 * noise + \
c2 * pred_noise c2 * pred_noise
return image_embed return image_embed

View File

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