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

运行train发现这么多问题 #65

Open
wowwowya opened this issue May 22, 2023 · 1 comment
Open

运行train发现这么多问题 #65

wowwowya opened this issue May 22, 2023 · 1 comment

Comments

@wowwowya
Copy link

Traceback (most recent call last):
File "E:\DCPDN-master\DCPDN-master\train.py", line 76, in
dataloader = getLoader(opt.dataset,
File "E:\DCPDN-master\DCPDN-master\misc.py", line 64, in getLoader
dataloader = torch.utils.data.DataLoader(dataset,
File "C:\ProgramData\anaconda3\envs\pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 351, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type]
File "C:\ProgramData\anaconda3\envs\pytorch\lib\site-packages\torch\utils\data\sampler.py", line 107, in init
raise ValueError("num_samples should be a positive integer "
ValueError: num_samples should be a positive integer value, but got num_samples=0

@jokerDYH
Copy link

加载数据不对

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