mirror of
https://github.com/lucidrains/DALLE2-pytorch.git
synced 2025-12-20 02:04:19 +01:00
fix readme dataloader example
This commit is contained in:
@@ -1068,7 +1068,7 @@ dataloader = create_image_embedding_dataloader(
|
|||||||
)
|
)
|
||||||
for img, emb in dataloader:
|
for img, emb in dataloader:
|
||||||
print(img.shape) # torch.Size([32, 3, 256, 256])
|
print(img.shape) # torch.Size([32, 3, 256, 256])
|
||||||
print(emb.shape) # torch.Size([32, 512])
|
print(emb["img"].shape) # torch.Size([32, 512])
|
||||||
# Train decoder only as shown above
|
# Train decoder only as shown above
|
||||||
|
|
||||||
# Or create a dataset without a loader so you can configure it manually
|
# Or create a dataset without a loader so you can configure it manually
|
||||||
|
|||||||
Reference in New Issue
Block a user