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 #5

Open
zhangjunwang opened this issue Jul 11, 2019 · 0 comments

Comments

@zhangjunwang
Copy link

Hi, I run your implementation, and there is a problem.

Traceback (most recent call last): File "main.py", line 401, in <module> main() File "main.py", line 181, in main num_workers=args.workers) File "/data/cag-stu-zhangjunwang/Documents/carla_cil_pytorch-uncertain_open/carla_cil_pytorch-uncertain_open/carla_loader.py", line 35, in __init__ shuffle=True File "/data/cag-stu-zhangjunwang/venv/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 176, in __init__ sampler = RandomSampler(dataset) File "/data/cag-stu-zhangjunwang/venv/lib/python3.5/site-packages/torch/utils/data/sampler.py", line 66, 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

Could you help me solve it, very thanks!

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

1 participant