Skip to content

Commit

Permalink
get patch out
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jan 6, 2021
1 parent 4d4433e commit d40aecc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dalle_pytorch/dalle_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,11 @@ def __init__(
self.image_seq_len = image_seq_len
self.total_tokens = num_text_tokens + num_image_tokens + 1 # extra for EOS

if self.vae is not None:
self.vae = vae
if exists(self.vae):
self.vae = vae
self.image_emb = vae.codebook

self.transformer = Decoder(dim = dim, depth = depth, heads = heads)

self.to_logits = nn.Sequential(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'dalle-pytorch',
packages = find_packages(),
version = '0.0.4',
version = '0.0.5',
license='MIT',
description = 'DALL-E - Pytorch',
author = 'Phil Wang',
Expand Down

0 comments on commit d40aecc

Please sign in to comment.