mirror of
https://github.com/lucidrains/DALLE2-pytorch.git
synced 2025-12-19 17:54:20 +01:00
fix readme and a small bug in DALLE2 class
This commit is contained in:
@@ -2938,7 +2938,7 @@ class DALLE2(nn.Module):
|
||||
image_embed = self.prior.sample(text, num_samples_per_batch = self.prior_num_samples, cond_scale = prior_cond_scale)
|
||||
|
||||
text_cond = text if self.decoder_need_text_cond else None
|
||||
images = self.decoder.sample(image_embed, text = text_cond, cond_scale = cond_scale)
|
||||
images = self.decoder.sample(image_embed = image_embed, text = text_cond, cond_scale = cond_scale)
|
||||
|
||||
if return_pil_images:
|
||||
images = list(map(self.to_pil, images.unbind(dim = 0)))
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = '1.2.0'
|
||||
__version__ = '1.2.1'
|
||||
|
||||
Reference in New Issue
Block a user