mmdetection icon indicating copy to clipboard operation
mmdetection copied to clipboard

CopyPaste bugfix - result['img'] not in src image dtype

Open mawanda-jun opened this issue 1 month ago • 1 comments

Motivation

Bugfixing CopyPaste: indices multiplication was creating a results['img'] int64 dtype, now it's casted to the src_img dtype.

Checklist

  1. Pre-commit or other linting tools are used to fix the potential lint issues.
  2. The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  3. If the modification has potential influence on downstream projects, this PR should be tested with downstream projects, like MMDet or MMPreTrain.
  4. The documentation has been modified accordingly, like docstring or example tutorials.

mawanda-jun avatar May 14 '24 10:05 mawanda-jun