You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the command:
python tools/test.py configs/polarmask/4gpu/polar_768_1x_r50.py /opt/data/private/SSZ/test/PolarMask/result/20220516complete/60epoch/epoch_60.pth --out /opt/data/private/SSZ/test/PolarMask/result/20220516complete/60epoch/results.pkl --eval segm
and get the error: IndexError: list index out of range
The details are as follows:
(testpy37) root@interactive85669:/opt/data/private/SSZ/test/PolarMask/PolarMask# python tools/test.py configs/polarmask/4gpu/polar_768_1x_r50.py /opt/data/private/SSZ/test/PolarMask/result/20220516complete/60epoch/epoch_60.pth --out /opt/data/private/SSZ/test/PolarMask/result/20220516complete/60epoch/results.pkl --eval segm
loading annotations into memory...
Done (t=0.09s)
creating index...
index created!
/opt/data/private/SSZ/test/PolarMask/PolarMask/mmdet/models/anchor_heads/polarmask_head.py:72: UserWarning: torch.range is deprecated in favor of torch.arange and will be removed in 0.5. Note that arange generates values in [start; end), not [start; end].
self.angles = torch.range(0, 350, 10).cuda() / 180 * math.pi
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 60/60, 0.3 task/s, elapsed: 172s, ETA: 0s
writing results to /opt/data/private/SSZ/test/PolarMask/result/20220516complete/60epoch/results.pkl
Starting evaluate segm
Traceback (most recent call last):
File "tools/test.py", line 225, in
main()
File "tools/test.py", line 201, in main
result_files = results2json(dataset, outputs, args.out)
File "/opt/data/private/SSZ/test/PolarMask/PolarMask/mmdet/core/evaluation/coco_utils.py", line 165, in results2json
json_results = segm2json(dataset, results)
File "/opt/data/private/SSZ/test/PolarMask/PolarMask/mmdet/core/evaluation/coco_utils.py", line 135, in segm2json
data['category_id'] = dataset.cat_ids[label]
IndexError: list index out of range
So why is this?
The text was updated successfully, but these errors were encountered:
I use the command:
python tools/test.py configs/polarmask/4gpu/polar_768_1x_r50.py /opt/data/private/SSZ/test/PolarMask/result/20220516complete/60epoch/epoch_60.pth --out /opt/data/private/SSZ/test/PolarMask/result/20220516complete/60epoch/results.pkl --eval segm
and get the error: IndexError: list index out of range
The details are as follows:
(testpy37) root@interactive85669:/opt/data/private/SSZ/test/PolarMask/PolarMask# python tools/test.py configs/polarmask/4gpu/polar_768_1x_r50.py /opt/data/private/SSZ/test/PolarMask/result/20220516complete/60epoch/epoch_60.pth --out /opt/data/private/SSZ/test/PolarMask/result/20220516complete/60epoch/results.pkl --eval segm
loading annotations into memory...
Done (t=0.09s)
creating index...
index created!
/opt/data/private/SSZ/test/PolarMask/PolarMask/mmdet/models/anchor_heads/polarmask_head.py:72: UserWarning: torch.range is deprecated in favor of torch.arange and will be removed in 0.5. Note that arange generates values in [start; end), not [start; end].
self.angles = torch.range(0, 350, 10).cuda() / 180 * math.pi
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 60/60, 0.3 task/s, elapsed: 172s, ETA: 0s
writing results to /opt/data/private/SSZ/test/PolarMask/result/20220516complete/60epoch/results.pkl
Starting evaluate segm
Traceback (most recent call last):
File "tools/test.py", line 225, in
main()
File "tools/test.py", line 201, in main
result_files = results2json(dataset, outputs, args.out)
File "/opt/data/private/SSZ/test/PolarMask/PolarMask/mmdet/core/evaluation/coco_utils.py", line 165, in results2json
json_results = segm2json(dataset, results)
File "/opt/data/private/SSZ/test/PolarMask/PolarMask/mmdet/core/evaluation/coco_utils.py", line 135, in segm2json
data['category_id'] = dataset.cat_ids[label]
IndexError: list index out of range
So why is this?
The text was updated successfully, but these errors were encountered: