Skip to content

Commit 14ddbc1

Browse files
committed
cleanup
1 parent 0692f16 commit 14ddbc1

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ dalle2 = DALLE2(
199199
decoder = decoder
200200
)
201201

202-
# send the text as a string if you want to use the simple tokenizer from DALL-E1
202+
# send the text as a string if you want to use the simple tokenizer from DALLE v1
203203
# or you can do it as token ids, if you have your own tokenizer
204204

205205
texts = ['glistening morning dew on a flower petal']

dalle2_pytorch/dalle2_pytorch.py

-1
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,6 @@ def forward(
877877
text = [text] if not isinstance(text, (list, tuple)) else text
878878
text = tokenizer.tokenize(text).to(device)
879879

880-
print(text.shape, type(text))
881880
image_embed = self.prior.sample(text, num_samples_per_batch = self.prior_num_samples)
882881
images = self.decoder.sample(image_embed)
883882
return images

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'dream = dalle2_pytorch.cli:dream'
1111
],
1212
},
13-
version = '0.0.5',
13+
version = '0.0.6',
1414
license='MIT',
1515
description = 'DALL-E 2',
1616
author = 'Phil Wang',

0 commit comments

Comments
 (0)