Acly/comfyui-inpaint-nodes

Artifacts in pony-based models

Closed this issue · 3 comments

When using any inpaint patch, artifacts appear in models based on pony diffusion and the image deteriorates.

Artifacts

Снимок экрана 2024-07-24 162322

Node

The problem arises in this node because there is no way not to use the inpaint patch

Снимок экрана 2024-07-24 162328

Workflow

Снимок экрана 2024-07-24 162336

Solution

There is a node in this repository that allows you to set the inpaint engine to "none", which solves the problem with Pony-based models.
https://github.com/Seedsa/Fooocus_Nodes

Снимок экрана 2024-07-24 155720

Acly commented

If you don't want the inpaint patch there is no reason to use the node at all. Applying "inpaint engine" is all it does.

I don't think there is an inpaint model for pony checkpoints yet, so no real solution is possible.

It's strange in fooocus 2.5, if you turn on inpaint, and set the value to none in the inpaint engine, everything works without artifacts with pony models. Perhaps I do not fully understand the principle of operation of the node in ComfyUI, in any case, thank you for taking your time and responding to my request.

Acly commented

The purpose of this node is to apply the inpaint model/patch.

By setting inpaint engine to "none" you instruct fooocus to NOT apply any inpaint model/patch. Equivalent to not using the node.

Not having dedicated inpaint model doesn't mean you can't use a mask and only change part of the image. But you don't need the node for that.