open-mmlab / mmrotate

OpenMMLab Rotated Object Detection Toolbox and Benchmark
https://mmrotate.readthedocs.io/en/latest/
Apache License 2.0
1.84k stars 542 forks source link

[Bug] the angle after the resize operation is wrong in some cases #965

Open flytocc opened 10 months ago

flytocc commented 10 months ago

Prerequisite

Task

I have modified the scripts/configs, or I'm working on my own tasks/models/datasets.

Branch

1.x branch https://github.com/open-mmlab/mmrotate/tree/1.x

Environment

not important

Reproduces the problem - code sample

none

Reproduces the problem - command or script

none

Reproduces the problem - error message

none

Additional information

相似问题 https://github.com/open-mmlab/mmrotate/issues/874

keep_ratio为False时,resize逻辑不正确:

  1. 0.x版本中,widthheightangle都不正确;
  2. 1.x版本中,若resize前width>height,则angle不正确。

请确认一下这个问题,有需要的话,我可以提交pr解决。