Nodes Browser
ComfyDeploy: How ComfyUI-LatentClamp works in ComfyUI?
What is ComfyUI-LatentClamp?
A node for ComfyUI that modifies the values in the samples input that fall outside of a min and max range using a multiplier.
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-LatentClamp
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
ComfyUI-LatentClamp
A node for ComfyUI that modifies the values in the samples
input that fall outside of a min
and max
range using a multiplier.
Additional controls are available for experimental purposes.
In img2img operations, latent clamping has been observed to improve prompt adherence. Issues with image fidelity resulting from the clamp can be rectified with a quick second diffusion pass.
Inputs
min
: Values insamples
below this value will be multiplied byoutside_multiplier
.max
: Values insamples
above this value will be multiplied byoutside_multiplier
.inside_multiplier
: Values insamples
betweenmin
andmax
will be multiplied by this value.outside_multiplier
: Values insamples
outside ofmin
andmax
will be multiplied by this value.extra_noise
: Add compensatory noise to the values insamples
.