mirror of
https://github.com/lucidrains/DALLE2-pytorch.git
synced 2025-12-19 17:54:20 +01:00
fix issue with ddim and normalization of lowres conditioning image
This commit is contained in:
@@ -2328,6 +2328,9 @@ class Decoder(nn.Module):
|
|||||||
|
|
||||||
img = torch.randn(shape, device = device)
|
img = torch.randn(shape, device = device)
|
||||||
|
|
||||||
|
if not is_latent_diffusion:
|
||||||
|
lowres_cond_img = maybe(self.normalize_img)(lowres_cond_img)
|
||||||
|
|
||||||
for time, time_next in tqdm(time_pairs, desc = 'sampling loop time step'):
|
for time, time_next in tqdm(time_pairs, desc = 'sampling loop time step'):
|
||||||
alpha = alphas[time]
|
alpha = alphas[time]
|
||||||
alpha_next = alphas[time_next]
|
alpha_next = alphas[time_next]
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = '0.23.3'
|
__version__ = '0.23.4'
|
||||||
|
|||||||
Reference in New Issue
Block a user