








中文文档 | English
ComfyUI-LG_SamplingUtils is a comprehensive toolset designed for ComfyUI by LAOGOU-666, providing a series of practical sampling nodes that make operations more intuitive and convenient. This extension focuses on advanced sampling techniques, particularly optimized for Flow Matching models like ZImage and Lumina2.
This extension includes four powerful nodes:
Adds noise perturbation to timesteps during the sampling process to break model homogenization and produce more diverse outputs with different seeds.
Key Features:
sigma (traditional diffusion models) and flow (Flow Matching models)Parameters:
mode: Choose between sigma (multiplicative noise) or flow (additive noise)noise_strength: Control the intensity of noise (0.0-2.0)seed: Random seed for reproducibilitystart_percent / end_percent: Define the sampling range where noise is appliedmask (optional): Limit the effect to specific regionsInjects features from a reference image into the generation process through the CFG mechanism, allowing the model to “learn” specific qualities from the reference.
Key Features:
Parameters:
reference_image: Image containing desired featuresstrength: Injection strength (0.1-0.2 subtle, 0.2-0.4 noticeable)start_percent / end_percent: Define when feature injection occursmask (optional): White areas receive feature injectionVariant: 🎈 LG Noise Injection (Latent) – Works directly with latent representations and automatically uses noise_mask if present in the latent.
Adjusts sampling parameters for ZImage/Lumina2 models.
Key Features:
Parameters:
shift: Noise schedule shift (default 3.0 for ZImage)shift=1.0: Linear scheduleshift>1.0: Shifts toward high noise, more aggressive early stepsmultiplier: Timestep multiplier (1.0 for ZImage/AuraFlow, 1000 for SD3/Flux)Interactive visual editor for adjusting the sigmas curve in real-time.
Key Features:
cd ComfyUI/custom_nodes
git clone https://github.com/LAOGOU-666/ComfyUI-LG_SamplingUtils.git
Restart ComfyUI after installation.
https://github.com/LAOGOU-666/ComfyUI-LG_SamplingUtils
If you encounter any issues or have suggestions, please open an issue on GitHub.
Enjoy creating with ComfyUI-LG_SamplingUtils! 🎈