https://github.com/SparknightLLC/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.
https://github.com/SparknightLLC/ComfyUI-LatentClamp
Last synced: 4 months ago
JSON representation
A node for ComfyUI that modifies the values in the `samples` input that fall outside of a `min` and `max` range using a multiplier.
- Host: GitHub
- URL: https://github.com/SparknightLLC/ComfyUI-LatentClamp
- Owner: SparknightLLC
- Created: 2024-11-22T01:27:46.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-22T01:45:46.000Z (5 months ago)
- Last Synced: 2024-11-22T02:31:26.007Z (5 months ago)
- Language: Python
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-comfyui - **ComfyUI-LatentClamp**
README
# ComfyUI-LatentClamp
A node for [ComfyUI](https://github.com/comfyanonymous/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 in `samples` below this value will be multiplied by `outside_multiplier`.
- `max`: Values in `samples` above this value will be multiplied by `outside_multiplier`.
- `inside_multiplier`: Values in `samples` between `min` and `max` will be multiplied by this value.
- `outside_multiplier`: Values in `samples` outside of `min` and `max` will be multiplied by this value.
- `extra_noise`: Add compensatory noise to the values in `samples`.