Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any requirement on the training images? #19

Open
wd255 opened this issue Dec 6, 2023 · 3 comments
Open

Is there any requirement on the training images? #19

wd255 opened this issue Dec 6, 2023 · 3 comments

Comments

@wd255
Copy link
Contributor

wd255 commented Dec 6, 2023

Hi, thanks for the great job!

When I try it out, I used a subfolder of imagenet (/ILSVRC/Data/CLS-LOC/train/n02096437) which contains a lot of images as dataset_folder, but I got the error: 0 training samples found at /ILSVRC/Data/CLS-LOC/train/n02096437

I double checked the folder, it has a lot of images.

I wonder if there's any requirement?

@lucidrains
Copy link
Owner

hello! hmm that's weird, could you check what extensions the images are?

@wd255
Copy link
Contributor Author

wd255 commented Dec 7, 2023

Hi @lucidrains thanks for the timely response. I checked the code and found it's because the extension of the image files in my imagnet dataset was "JPEG" instead of "jpeg". This is the official magnet dataset so I assume others have the same issue, so I added #20

@lucidrains
Copy link
Owner

@wd255 put in a quick hack, let me know that works!

trustme000777 added a commit to trustme000777/magvit2-pytorch that referenced this issue May 22, 2024
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

No branches or pull requests

2 participants