Skip to content

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

@Anandaro

Description

@Anandaro

File "train.py", line 109, in __init_dataset
train_loader = DataLoader(
File "/home/ssn/.local/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 344, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type]
File "/home/ssn/.local/lib/python3.8/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