mmdetection
mmdetection copied to clipboard
CopyPaste bugfix - result['img'] not in src image dtype
Motivation
Bugfixing CopyPaste: indices multiplication was creating a results['img']
int64
dtype, now it's casted to the src_img
dtype.
Checklist
- Pre-commit or other linting tools are used to fix the potential lint issues.
- The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
- If the modification has potential influence on downstream projects, this PR should be tested with downstream projects, like MMDet or MMPreTrain.
- The documentation has been modified accordingly, like docstring or example tutorials.