Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The error of Evaluation I met #74

Open
SSZ1 opened this issue May 22, 2022 · 0 comments
Open

The error of Evaluation I met #74

SSZ1 opened this issue May 22, 2022 · 0 comments

Comments

@SSZ1
Copy link

SSZ1 commented May 22, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant