You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In _bbox_mask_post_process function, when the argument rescale is True, the mask_logits will be interpolated to the original image size, but the width and height in scale_factor are reversed when calculating the original image size. If keep_ratio in Resize tranform is False, the width and height scale factor in scale_factor is difference, and it will make mask size wrong.
Did you make any modifications on the code or config? Did you understand what you have modified?
There are no modifications on the code or config.
What dataset did you use?
coco
Environment
not important
Error traceback
If applicable, paste the error trackback here.
none
Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!
Thanks for your error report and we appreciate it a lot.
Checklist
Describe the bug
In
_bbox_mask_post_process
function, when the argumentrescale
is True, themask_logits
will be interpolated to the original image size, but the width and height inscale_factor
are reversed when calculating the original image size. Ifkeep_ratio
inResize
tranform is False, the width and height scale factor inscale_factor
is difference, and it will make mask size wrong.mmdetection/mmdet/models/dense_heads/rtmdet_ins_head.py
Lines 498 to 507 in ee2e542
Reproduction
There are no modifications on the code or config.
coco
Environment
not important
Error traceback
If applicable, paste the error trackback here.
Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!
#11231
The text was updated successfully, but these errors were encountered: