geekyutao/Inpaint-Anything

Minor error in mask_processing.py

Nineves opened this issue · 0 comments

Line 105 image = cv2.resize(image, (0, 0), fx=resize_factor, fy=resize_factor) changes the size of the image.
However, it doesn't update the length and width of the image afterwards, which is likely to cause errors on the line 116
image[crop_y:crop_y + crop_size, crop_x:crop_x + crop_size] = filled_image