Skip to content

Conversation

@GabrielBianconi
Copy link
Contributor

Currently, ImageFolder does not sort image files by filename when creating a dataset (even though it sorts the classes and subdirectories). This is problematic when working with video frames, i.e., the order of the images matter.

Without this change, even while using shuffle=False in a DataLoader, the user will get a shuffled dataset.

If unsorted/shuffled images is desired, the user can still user shuffle=True when feeding the dataset to a DataLoader.

@soumith soumith merged commit 40fdf71 into pytorch:master Aug 2, 2017
@soumith
Copy link
Member

soumith commented Aug 2, 2017

thanks!

rajveerb pushed a commit to rajveerb/vision that referenced this pull request Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants