Created
March 22, 2021 10:49
-
-
Save J3698/365e6ef51514efb5356c93033495a833 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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