fix readme dataloader example

This commit is contained in:
Phil Wang
2022-09-20 08:39:52 -07:00
committed by GitHub
parent 39f8b6cf16
commit b39653cf96

View File

@@ -1068,7 +1068,7 @@ dataloader = create_image_embedding_dataloader(
)
for img, emb in dataloader:
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
# Or create a dataset without a loader so you can configure it manually