Closed hktalent closed 1 year ago
python main.py --model EDSR --scale 2 --patch_size 96 --save EDSR_x4 --reset --cpu --n_threads 4
Traceback (most recent call last):
File "main.py", line 33, in <module>
main()
File "main.py", line 22, in main
loader = data.Data(args)
File "/Users/51pwn/MyWork/EDSR-PyTorch/src/data/__init__.py", line 31, in __init__
num_workers=args.n_threads,
File "/Users/51pwn/anaconda3/envs/EDSR/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 268, in __init__
sampler = RandomSampler(dataset, generator=generator)
File "/Users/51pwn/anaconda3/envs/EDSR/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 103, 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
$ python main.py --model EDSR --scale 2 --patch_size 96 --save EDSR_x4 --reset --cpu
Traceback (most recent call last):
File "main.py", line 33, in <module>
main()
File "main.py", line 22, in main
loader = data.Data(args)
File "/Users/51pwn/MyWork/EDSR-PyTorch/src/data/__init__.py", line 31, in __init__
num_workers=args.n_threads,
File "/Users/51pwn/anaconda3/envs/EDSR/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 268, in __init__
sampler = RandomSampler(dataset, generator=generator)
File "/Users/51pwn/anaconda3/envs/EDSR/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 103, 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
I'm getting the same error, @hktalent did you manage to solve this?
I found the solution here https://github.com/sanghyun-son/EDSR-PyTorch/issues/217
@AndrewKeYanzhe thanks
Mac OS i7 cpu
sh demo.sh