QueryInst icon indicating copy to clipboard operation
QueryInst copied to clipboard

Instance Segmentation using CPU fails on certain images when Swin Transformer backbone was used

Open eric-kwok-nt opened this issue 3 years ago • 0 comments

The error that I have encountered when inferencing using the swin transformer on CPU was ERROR - upper bound and larger bound inconsistent with step sign

Such error disappears when inference was performed on GPU.

After some investigation it was found that when running on CPU, the bbox (batch size 1) that was provided to the function _do_paste_mask in the file mmdet/models/roi_heads/mask_heads/fcn_mask_head.py has negative coordinates, causing it to fail.

eric-kwok-nt avatar Mar 31 '22 05:03 eric-kwok-nt