Closed qianzhang2018 closed 5 years ago
@qianzhang2018 It seems that the dataloader didn't get any images. Please check your code.
where is the “--images-dir” in train? it is in fcos_R_50_FPN_1x.yaml---DATASETS:?
FCOS -----datasets -----coco ----- annotations ----- coco_2014_train ----- coco_2014_valminusminival i put my own traindata in coco_2014_train and val data in coco_2014_valminusminival is it right?
FCOS -----datasets -----coco ----- annotations ----- coco_2014_train ----- coco_2014_valminusminival i put my own traindata in coco_2014_train and val data in coco_2014_valminusminival is it right?
I am facing the same issue. Would you tell me please where I am wrong?
loading annotations into memory...
Done (t=0.02s)
creating index...
index created!
loading annotations into memory...
Done (t=0.00s)
creating index...
index created!
Traceback (most recent call last):
File "tools/train_net.py", line 181, in
Traceback (most recent call last): File "tools/train_net.py", line 175, in
main()
File "tools/train_net.py", line 168, in main
model = train(cfg, args.local_rank, args.distributed)
File "tools/train_net.py", line 61, in train
start_iter=arguments["iteration"],
File "/home/administrator/USPIntern/zq/FCOS/maskrcnn_benchmark/data/build.py", line 158, in make_data_loader
sampler = make_data_sampler(dataset, shuffle, is_distributed)
File "/home/administrator/USPIntern/zq/FCOS/maskrcnn_benchmark/data/build.py", line 63, in make_data_sampler
sampler = torch.utils.data.sampler.RandomSampler(dataset)
File "/home/administrator/.local/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 64, in init
"value, but got num_samples={}".format(self.num_samples))
ValueError: num_samples should be a positive integeral value, but got num_samples=0
I converted my data to coco format, but this error occurred. can you help me?thanks a lot!