ComfyUI > Nodes > LanPaint > LanPaint Sampler Custom (Advanced)

ComfyUI Node: LanPaint Sampler Custom (Advanced)

Class Name

LanPaint_SamplerCustomAdvanced

Category
sampling/custom_sampling
Author
scraed (Account age: 4120days)
Extension
LanPaint
Latest Updated
2026-04-11
Github Stars
1.1K

How to Install LanPaint

Install this extension via the ComfyUI Manager by searching for LanPaint
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter LanPaint in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

LanPaint Sampler Custom (Advanced) Description

Enhances LanPaint sampling with advanced denoising for refined, high-quality latent images.

LanPaint Sampler Custom (Advanced):

The LanPaint_SamplerCustomAdvanced node is a sophisticated tool designed to enhance the sampling process within the LanPaint framework. It extends the capabilities of traditional samplers by incorporating advanced techniques tailored for denoising latent images. This node leverages a model's positive and negative conditioning to refine the latent image, ensuring high-quality outputs. Its primary goal is to provide users with a more controlled and precise sampling experience, allowing for the generation of images that closely align with the desired artistic vision. By utilizing this node, you can achieve superior image quality through its advanced denoising algorithms, making it an essential component for AI artists seeking to push the boundaries of their creative projects.

LanPaint Sampler Custom (Advanced) Input Parameters:

model

The model parameter represents the neural network model used for sampling. It is crucial as it defines the architecture and weights that will process the latent image. The model's configuration directly impacts the quality and style of the output image.

seed

The seed parameter is a numerical value that initializes the random number generator, ensuring reproducibility of results. By setting a specific seed, you can generate the same output consistently, which is useful for iterative design processes.

steps

The steps parameter determines the number of iterations the sampler will perform. More steps generally lead to higher quality outputs, as the model has more opportunities to refine the image. However, increasing steps also requires more computational resources.

cfg

The cfg parameter, or configuration, influences the strength of the conditioning applied to the model. It balances the adherence to the input prompt versus the model's inherent style. Adjusting this parameter allows for fine-tuning the output's alignment with the desired prompt.

sampler_name

The sampler_name parameter specifies the algorithm used for sampling. Different samplers can produce varying results, and selecting the appropriate one can enhance the output's quality and style.

scheduler

The scheduler parameter manages the progression of the sampling process. It dictates how the model transitions between steps, impacting the smoothness and coherence of the final image.

positive

The positive parameter contains the positive conditioning data, guiding the model towards desired features in the output. It plays a critical role in shaping the image according to the user's artistic intent.

negative

The negative parameter includes negative conditioning data, which helps the model avoid unwanted features. By specifying what should not be present, it refines the output to better match the user's vision.

latent_image

The latent_image parameter is the initial input image in its latent form. It serves as the starting point for the sampling process, and its quality and content significantly influence the final output.

denoise

The denoise parameter controls the intensity of the denoising process. A higher value results in a cleaner image, while a lower value retains more of the original noise, which can be desirable for certain artistic effects.

LanPaint_NumSteps

The LanPaint_NumSteps parameter specifies the number of internal steps the LanPaint algorithm will perform. It affects the granularity of the sampling process, with more steps providing finer control over the output.

LanPaint_PromptMode

The LanPaint_PromptMode parameter determines the order of processing for image and text prompts. The "Image First" mode prioritizes image data, which can influence the balance between visual and textual elements in the output.

LanPaint_Info

The LanPaint_Info parameter is a string that can contain additional information or metadata related to the sampling process. It is useful for logging or debugging purposes.

Inpainting_mode

The Inpainting_mode parameter specifies the mode of inpainting, such as "🖼️ Image Inpainting" or "🎬 Video Inpainting". This choice affects how the model handles missing or corrupted parts of the image, with different modes optimized for static images or video frames.

LanPaint Sampler Custom (Advanced) Output Parameters:

denoised_latent

The denoised_latent output parameter represents the refined latent image after the denoising process. It is the primary output of the node, showcasing the improvements made by the advanced sampling techniques. This parameter is crucial for evaluating the success of the sampling process and serves as the basis for generating the final visual output.

LanPaint Sampler Custom (Advanced) Usage Tips:

  • Experiment with different cfg values to find the optimal balance between adhering to the prompt and maintaining the model's unique style.
  • Use a consistent seed value when iterating on designs to ensure reproducibility and facilitate comparison between different configurations.
  • Adjust the steps parameter based on the complexity of the desired output; more steps can lead to higher quality but require more computational resources.

LanPaint Sampler Custom (Advanced) Common Errors and Solutions:

Model not found

  • Explanation: This error occurs when the specified model is not available or incorrectly loaded.
  • Solution: Ensure that the model path is correct and that the model is properly installed and accessible by the node.

Invalid seed value

  • Explanation: The seed value provided is not a valid number, which can disrupt the random number generation process.
  • Solution: Verify that the seed is a valid integer and within the acceptable range for your system.

Insufficient steps

  • Explanation: The number of steps specified is too low to produce a meaningful output.
  • Solution: Increase the steps parameter to allow the model more iterations to refine the image.

Unsupported sampler_name

  • Explanation: The sampler name provided does not match any available algorithms.
  • Solution: Check the documentation for a list of supported samplers and ensure the name is correctly spelled and capitalized.

LanPaint Sampler Custom (Advanced) Related Nodes

Go back to the extension to check out more related nodes.
LanPaint
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.