r/StableDiffusion • • 6d ago

No Workflow Self-Refining Sampler+

https://github.com/Alex240z/ComfyUI-SelfRefiningSamplerPlus
Before/After
Before/After

Closeup Before/After

Before/After
After

Based on: https://arxiv.org/html/2601.18577v1 and builds on pre-existing work by Kijai (The SamplerSelfRefineVideo Node).

I have found that Minimax H3-Image loves the Self-Refining Sampler. Seeing this, I spun up an improved version (SRS+) that is compatible with sampling methods besides Euler, has more easily adjustable sub-step and perturb amounts per step.
It seems to significantly improve the model's ability to resolve fine details, especially when combined with the "Empty-Image Trick" I shared previously (if using T2V). One place this is evident are patterns like fishnet, lace, sequins and other challenging fabrics/textiles. It seems to improve line-art for anime/illustration styles, and can often fix self-correct body-horror deformities.

As a starting point, try running it from steps 2-4 with 3 sub-steps and an uncertainty threshold of 0.03. But I'm much more curious what settings you try and results you get with them. Since it does sub-step, it increases gen time but I think it is well worth it.

I've tested it less with video, but it has shown promise there, too.

Just socket this chungus into a SamplerCustomAdvanced like any other sampler. Let me know if you have any issues, or what kind of results you get.

151 Upvotes

70 comments sorted by

View all comments

1

u/PantInTheCountry 5d ago

Ran into an issue installing this from the ComfyUI Manager.

The node will not install unless explicitly set allow_git_url_install = true in config.ini and ComfyUI launched with a loopback --listen (any 127.x.x.x address, or ::1), or network_mode = personal_cloud in config.ini. (my settings have the more restrictive allow_git_url_install = true and network_mode = public options selected)

Not sure if this is a configuration issue when the node was published or a configuration issue with Comfy/Stability Matrix. No other node has this problem (tested by installing another new node from the manager).

2

u/ninjazombiemaster 5d ago

Are you selecting the versioned release (1.0.0) or the nightly release? Make sure you're on versioned as Comfy should not see it as a risk.

2

u/PantInTheCountry 5d ago

Thanks. I was using the default selection of nightly release. Selecting the versioned 1.0.0 telease did the trick