Inpaint result is washed out

#6
by AiSudo - opened

Hello,

I'm trying to implement mask inpainting on this model at an HF space.
As you can see, the result is washed out and blurry, especially outside the masked area:

Screenshot from 2025-12-15 00-24-16

Can you help me check it? Is the bug with the model or with my code?

Here is the HF space: https://huggingface.co/spaces/AiSudo/ZIT-Inpaint

May I ask if you have tried more steps? When I tried it, I got an error.

No problem :)

Here's the result with 30 steps:
Screenshot from 2025-12-17 22-19-19

Result image:
image (8)

As you can see, the colors in the result are washed out. Especially the background.
I managed to reduce the blur a bit by upscaling all the resources before generation, but if I don't upscale, the result will be blurry.

Here is another one using image from your sample:
image (9)

The result image size also suspiciously small, only 45kb.
Any idea why this happened?

Alibaba-PAI org

Your results seem much blurrier than those from my repo, right? Did you rewrite the code yourself?

Yeah, I wrote the code based on the example from VideoX-Fun.
If I only use ControlNet, the result is excellent. But when I use only the inpaint function, the result gets blurry like that.

Could you try the inpaint method on your device for me?

Alibaba-PAI org

Please share your demo with me - both the mask image and the input image.

Alibaba-PAI org

Hello, you might want to test the newly uploaded 8-step model, it should be clearer/sharper at 8 steps.

Sign up or log in to comment