Skip to content

Instantly share code, notes, and snippets.

@J3698
Created March 22, 2021 10:49
Show Gist options
  • Save J3698/365e6ef51514efb5356c93033495a833 to your computer and use it in GitHub Desktop.
Save J3698/365e6ef51514efb5356c93033495a833 to your computer and use it in GitHub Desktop.
def main():
transforms = get_transforms()
dataset = StyleTransferDataset("datasets/coco/train2017", "datasets/coco/annotations/captions_train2017.json", "datasets/wikiart", transform = transforms)
print(f"Dataset length: {len(dataset)}, Wiki length: {len(dataset.wiki)}, COCO length: {len(dataset.coco)}")
content, style = dataset[0]
print(f"1st content img: {type(content)}, {content.shape}")
print(f"1st style img: {type(style)}, {style.shape}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment