mirror of
https://github.com/lucidrains/DALLE2-pytorch.git
synced 2025-12-19 09:44:19 +01:00
fix misnamed variable, thanks to @nousr
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = '0.19.4'
|
__version__ = '0.19.5'
|
||||||
|
|||||||
Reference in New Issue
Block a user