werk104

Results 3 comments of werk104

I encountered this error as well when using the RTMDet instance segmentation model for image inference. I noticed that the length or width of the image that caused the error...

> I encountered this error as well when using the RTMDet instance segmentation model for image inference. I noticed that the length or width of the image that caused the...

> i fix it in https://github.com/open-mmlab/mmengine/blob/85c83ba61689907fb1775713622b1b146d82277b/mmengine/visualization/visualizer.py#L881 > > ``` > if img.shape[:2] != binary_masks.shape[1:]: > shape = (binary_masks.shape[0],) + img.shape[:2] > new_mask = np.zeros(shape, np.uint8) > mh, mw = binary_masks.shape[1:]...