zuruoke / watermark-removal

a machine learning image inpainting task that instinctively removes watermarks from image indistinguishable from the ground truth image
1.75k stars 277 forks source link

Trying to remove watermarks from scanned documents: Image size not supported #35

Open gpadvorac opened 2 months ago

gpadvorac commented 2 months ago

I'm removing watermarks from scanned documents and don't have control over the image size, and I'm getting this error:

image size: (2287, 1394, 3) mask image size: (683, 1024, 3) Image size not supported!!!

all of my docments are different sizes.

Is there a way to change this? I didn't see anything in the docs about size limitations.

fillwithjoy1 commented 1 month ago

No, not really. Unless you resize the image size to match the mask (which probably won't work), which is the only way I think you can get past this issue