Skip to content

Commit

Permalink
fix for self conditioning in diffusion prior network lucidrains#273
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Feb 12, 2023
1 parent 984d62a commit 3b2cf7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dalle2_pytorch/dalle2_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ def forward(
learned_queries = repeat(self.learned_query, 'd -> b 1 d', b = batch)

if self.self_cond:
learned_queries = torch.cat((image_embed, self_cond), dim = -2)
learned_queries = torch.cat((self_cond, learned_queries), dim = -2)

tokens = torch.cat((
text_encodings,
Expand Down
2 changes: 1 addition & 1 deletion dalle2_pytorch/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.12.0'
__version__ = '1.12.1'

0 comments on commit 3b2cf7b

Please sign in to comment.