IOPaint icon indicating copy to clipboard operation
IOPaint copied to clipboard

Results are different when painting directly vs uploading a mask

Open DanielZanchi opened this issue 3 years ago • 2 comments

If I upload an image and paint in the app i get this result:
original:

result after using the brush in app:

If I download the mask (from the app) and apply it to the same original photo the result is worse:

Any idea why this is happening?

DanielZanchi avatar Dec 02 '22 17:12 DanielZanchi

Thanks for uploading images for debugging, it's really helpful!

The bug has already been fixed in 0.28.0, please upgrade to the newer version.

Note to me: it's might be caused by sd post-process, and fixed in this commit https://github.com/Sanster/lama-cleaner/commit/af87cca64323f95764970517abc29182e47bda1e#diff-b30448d7c070d609aaa99bb90c73adbbc4253927ebd00a3f92af5001f5ececfcL62

Sanster avatar Dec 04 '22 03:12 Sanster

Yes that fixed the issue. I am using LaMa so from what I understand it's not fault of the SD. Is some pre-process or post-process done to mask or image when using LaMa?

DanielZanchi avatar Dec 04 '22 09:12 DanielZanchi

Some post-process that should only be applied to the SD model affect the LaMa result

Sanster avatar Dec 05 '22 04:12 Sanster