Compare commits

..

1 Commits

2 changed files with 2 additions and 2 deletions

View File

@@ -1980,7 +1980,7 @@ class Decoder(BaseGaussianDiffusion):
batch_size = image_embed.shape[0] batch_size = image_embed.shape[0]
if exists(text) and not exists(text_encodings) and not self.unconditional: if exists(text) and not exists(text_encodings) and not self.unconditional:
assert exist(self.clip) assert exists(self.clip)
_, text_encodings, text_mask = self.clip.embed_text(text) _, text_encodings, text_mask = self.clip.embed_text(text)
assert not (self.condition_on_text_encodings and not exists(text_encodings)), 'text or text encodings must be passed into decoder if specified' assert not (self.condition_on_text_encodings and not exists(text_encodings)), 'text or text encodings must be passed into decoder if specified'

View File

@@ -10,7 +10,7 @@ setup(
'dream = dalle2_pytorch.cli:dream' 'dream = dalle2_pytorch.cli:dream'
], ],
}, },
version = '0.2.41', version = '0.2.42',
license='MIT', license='MIT',
description = 'DALL-E 2', description = 'DALL-E 2',
author = 'Phil Wang', author = 'Phil Wang',