Skip to content

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

@wowwowya

Description

@wowwowya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions