ValueError: num_samples should be a positive integer value, but got num_samples=0
zherCyber opened this issue · comments
zherCyber commented
Traceback (most recent call last):
File "D:/PycharmWorkspace/pytorch-tutorial/tutorials/01-basics/pytorch_basics/main.py", line 154, in
train_loader = torch.utils.data.DataLoader(dataset=custom_dataset,
File "D:\anaconda3\envs\torch\lib\site-packages\torch\utils\data\dataloader.py", line 262, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore
File "D:\anaconda3\envs\torch\lib\site-packages\torch\utils\data\sampler.py", line 103, 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