Nodes Browser
ComfyDeploy: How ComfyUI_Fooocus_KSampler works in ComfyUI?
What is ComfyUI_Fooocus_KSampler?
Nodes: KSampler With Refiner (Fooocus). The KSampler from [a/Fooocus](https://github.com/lllyasviel/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.]
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
ComfyUI_Fooocus_KSampler
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
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