[NanoDet][05-29 05:04:59]INFO:Setting up data...
creating index...
index created!
creating index...
index created!
Traceback (most recent call last):
File "tools/train.py", line 136, in
main(args)
File "tools/train.py", line 75, in main
train_dataloader = torch.utils.data.DataLoader(
File "C:\Users\33184\anaconda3\envs\nanodet\lib\site-packages\torch\utils\data\dataloader.py", line 277, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type]
File "C:\Users\33184\anaconda3\envs\nanodet\lib\site-packages\torch\utils\data\sampler.py", line 97, 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
hi! 我在用voc数据集训练模型时得到以下报错, 当前路径是: img_path: \D:\dataset\train\images ann_path: \D:\dataset\train\annotations
[NanoDet][05-29 05:04:59]INFO:Setting up data... creating index... index created! creating index... index created! Traceback (most recent call last): File "tools/train.py", line 136, in
main(args)
File "tools/train.py", line 75, in main
train_dataloader = torch.utils.data.DataLoader(
File "C:\Users\33184\anaconda3\envs\nanodet\lib\site-packages\torch\utils\data\dataloader.py", line 277, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type]
File "C:\Users\33184\anaconda3\envs\nanodet\lib\site-packages\torch\utils\data\sampler.py", line 97, 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
感谢