ComfyUI Extension: ComfyUI_Fooocus_KSampler

Authored by hustille

Created

Updated

60 stars

Nodes: KSampler With Refiner (Fooocus). The KSampler from a/Fooocus as a ComfyUI node [w/NOTE: This patches basic ComfyUI behaviour - don't use together with other samplers. Or perhaps do? Other samplers might profit from those changes ... ymmv.]

Custom Nodes (0)

    README

    ComfyUI_Fooocus_KSampler

    The KSampler from Fooocus as a ComfyUI node

    Nodes

    KSamplerWithRefiner

    On the surface basically two KSamplerAdvanced combined, therefore two input sets for base/refiner model and prompt.

    • refiner_switch_step controls when the models are switched, like end_at_step/start_at_step with two discrete samplers.
    • sharpness does some local sharpening with a gaussian filter without changing the overall image too much. Useful range seems to go up to 20 or so.

    Note

    There is some magic beyond just encapsulating two samplers into one. This patches basic ComfyUI behaviour - don't use together with other samplers. Or perhaps do? Other samplers might profit from those changes ... ymmv.

    Known issues

    It doesn't work ... Well, the example setup obviously does, at least for me. But anything nontrivial, like e.g. Controlnet and batch jobs, results in errors. I'd appreciate if somebody who actually understands the math would take a look at it