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

problem with "data_dir" at starts... #1

Open
jdmelendez opened this issue Feb 20, 2020 · 2 comments
Open

problem with "data_dir" at starts... #1

jdmelendez opened this issue Feb 20, 2020 · 2 comments

Comments

@jdmelendez
Copy link

I have download all images, and the directory created is "PetImages" with two subdirectorys called "Cat" and "Dog".

When I run this command: ..." datasets.ImageFolder(data_dir + '/train',..." , appear an error because don't found the path.

Can you help me, please?

Thanks.

@sshadr
Copy link

sshadr commented Apr 19, 2020

The data has to be arranged this way
root/train/cats/cat0.jpg and so on (all your cat images)
root/train/dogs/ dog0.jpg and so on (all your dog images)

The same has to be done for test as well
check the documentation for torchvision.datasets.ImageFolder

@amitrajitbose
Copy link
Owner

Thanks for the answer @Adarshd19
Did that resolve your issue @Melendez95 ?

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

3 participants