Skip to content

Instantly share code, notes, and snippets.

@Noob-can-Compile
Created December 1, 2019 12:04
Show Gist options
  • Save Noob-can-Compile/1ae44162d1699751c2f086dbe441eaa8 to your computer and use it in GitHub Desktop.
Save Noob-can-Compile/1ae44162d1699751c2f086dbe441eaa8 to your computer and use it in GitHub Desktop.
# create the transformed dataset
transformed_dataset = FacialKeypointsDataset(csv_file='/data/training_frames_keypoints.csv',
root_dir='/data/training/',
transform=data_transform)
print('Number of images: ', len(transformed_dataset))
# iterate through the transformed dataset and print some stats about the first few samples
for i in range(4):
sample = transformed_dataset[i]
print(i, sample['image'].size(), sample['keypoints'].size())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment