Created by: heavengate
fix mask x0/y0 may out of width/height bound
print(im_id, [x0, x1, y0, y1], xmin, ymin, im_mask.shape, resized_mask.shape)
# 1 [208, 320, 345, 240] 208 345 (240, 320) (140, 219)
im_mask[y0:y1, x0:x1] = resized_mask[(y0 - ymin):(y1 - ymin), (x0 - xmin):(x1 - xmin)]
# im_mask[345:240, 208:320] = resize_mask[0:-95, 0: 112]
# ValueError: could not broadcast input array from shape (35,112) into shape (0,112)