Compare commits

...

1 Commits
1.6.1 ... 1.6.3

Author SHA1 Message Date
Phil Wang
05192ffac4 fix self conditioning shape in diffusion prior 2022-08-12 12:30:03 -07:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1004,9 +1004,9 @@ class DiffusionPriorNetwork(nn.Module):
# setup self conditioning
self_cond = None
if self.self_cond:
self_cond = default(self_cond, lambda: torch.zeros(batch, 1, self.dim, device = device, dtype = dtype))
self_cond = default(self_cond, lambda: torch.zeros(batch, self.dim, device = device, dtype = dtype))
self_cond = rearrange(self_cond, 'b d -> b 1 d')
# in section 2.2, last paragraph
# "... consisting of encoded text, CLIP text embedding, diffusion timestep embedding, noised CLIP image embedding, final embedding for prediction"

View File

@@ -1 +1 @@
__version__ = '1.6.1'
__version__ = '1.6.3'