-
Notifications
You must be signed in to change notification settings - Fork 636
Description
Prerequisite
- I have searched Issues and Discussions but cannot get the expected help.
- I have read the FAQ documentation but cannot get the expected help.
- The bug has not been fixed in the latest version (master) or latest version (1.x).
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
master branch https://github.com/open-mmlab/mmrotate
Environment
browse_dataset和test脚本的可视化结果,类别名称位置是正确的,但是2dbox绘制的位置不正确。另外eval bbox会出错,是不是不支持旋转box的评估?
Reproduces the problem - code sample
Reproduces the problem - command or script
python tools/test.py configs/rotated_reppoints/rotated_reppoints_r50_fpn_40e_psd_le135.py output/latest.pth --work-dir result --eval bbox
Reproduces the problem - error message
load checkpoint from local path: output/latest.pth
[ ] 0/4691, elapsed: 0s, ETA:/root/miniconda3/lib/python3.11/site-packages/torch/functional.py:554: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /pytorch/aten/src/ATen/native/TensorShape.cpp:4314.)
return VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
/mnt/vepfs/share/guojing.jin/Documents/mmrotate/mmrotate/models/dense_heads/rotated_reppoints_head.py:1159: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.detach().clone() or sourceTensor.detach().clone().requires_grad(True), rather than tensor.new_tensor(sourceTensor).
mlvl_bboxes[..., :4] /= mlvl_bboxes[..., :4].new_tensor(
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 4691/4691, 33.1 task/s, elapsed: 142s, ETA: 0sTraceback (most recent call last):
File "/mnt/vepfs/share/guojing.jin/Documents/mmrotate/tools/test.py", line 271, in
main()
File "/mnt/vepfs/share/guojing.jin/Documents/mmrotate/tools/test.py", line 263, in main
metric = dataset.evaluate(outputs, **eval_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/vepfs/share/guojing.jin/Documents/mmrotate/mmrotate/datasets/dota.py", line 202, in evaluate
raise KeyError(f'metric {metric} is not supported')
KeyError: 'metric bbox is not supported'
Additional information
No response