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

ValueError: num_samples should be a positive integer value, but got num_samples=0 #1

Open
camongman opened this issue Nov 1, 2021 · 3 comments

Comments

@camongman
Copy link

In the middle of training as your instruction, I had some errors below.

File "/opt/anaconda3/envs/venv/lib/python3.7/site-packages/torch/utils/data/sampler.py", line 104, in init
"value, but got num_samples={}".format(self.num_samples))
ValueError: num_samples should be a positive integer value, but got num_samples=0

@ange1sha
Copy link

same error as above. did u find a solution @xiahaifeng1995 @camongman

@Matrix0816
Copy link

that's is the endswith problem, if your datsets is not png

@ForrestFire0
Copy link

The issue is that the dataset path was not set correctly in the program. Make sure that you pass the correct argument for where you downloaded the dataset.

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

4 participants