ComfyUI > Nodes > LanPaint > LanPaint Sampler Custom

ComfyUI Node: LanPaint Sampler Custom

Class Name

LanPaint_SamplerCustom

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 Description

LanPaint_SamplerCustom enhances image inpainting by optimizing sampling with custom parameters.

LanPaint Sampler Custom:

LanPaint_SamplerCustom is a specialized node designed to enhance the sampling process within the LanPaint framework, which is an extension of the ComfyUI's KSAMPLER. This node is tailored to provide advanced sampling capabilities by leveraging custom parameters and configurations that are specifically optimized for image inpainting tasks. The primary goal of LanPaint_SamplerCustom is to facilitate the generation of high-quality denoised latent images by utilizing a model's positive and negative conditioning. It achieves this by implementing a sophisticated sampling method that incorporates various parameters such as step size, lambda, and friction, which are crucial for controlling the denoising process. This node is particularly beneficial for AI artists who are looking to achieve precise control over the inpainting process, allowing for the creation of visually appealing and coherent images.

LanPaint Sampler Custom Input Parameters:

model

The model parameter represents the neural network model used for the sampling process. It is essential for defining the architecture and weights that will be applied during the denoising of the latent image. This parameter does not have a specific range of values as it depends on the model being used.

seed

The seed parameter is used to initialize the random number generator, ensuring reproducibility of the sampling results. By setting a specific seed value, you can achieve consistent outputs across different runs. There is no fixed range for this parameter, but it is typically an integer.

steps

The steps parameter determines the number of iterations the sampling process will undergo. A higher number of steps generally results in a more refined output, but it also increases the computation time. The minimum value is 1, and there is no strict maximum, although practical limits depend on computational resources.

cfg

The cfg parameter, or configuration, influences the strength of the conditioning applied during sampling. It affects how strongly the model adheres to the provided conditioning inputs. The value typically ranges from 0 to a positive number, with higher values indicating stronger conditioning.

sampler_name

The sampler_name parameter specifies the name of the sampling algorithm to be used. This allows for flexibility in choosing different sampling techniques based on the desired outcome. The options depend on the available samplers within the framework.

scheduler

The scheduler parameter controls the scheduling of the sampling process, which can affect the convergence and quality of the output. Different schedulers may be available, each with its own impact on the sampling dynamics.

positive

The positive parameter represents the positive conditioning input, which guides the model towards desired features in the output. It is crucial for steering the sampling process in a favorable direction.

negative

The negative parameter is the negative conditioning input, used to discourage certain features in the output. It helps in refining the sampling process by providing contrast to the positive conditioning.

latent_image

The latent_image parameter is the initial latent representation of the image that will be denoised. It serves as the starting point for the sampling process and is crucial for generating the final output.

denoise

The denoise parameter controls the level of denoising applied during the sampling process. A value of 1.0 indicates full denoising, while lower values reduce the denoising effect. The range is typically from 0 to 1.

LanPaint_NumSteps

The LanPaint_NumSteps parameter specifies the number of steps specific to the LanPaint process, allowing for fine-tuning of the inpainting task. It is an integer value with a minimum of 1.

LanPaint_PromptMode

The LanPaint_PromptMode parameter determines the mode of prompting, such as "Image First," which affects how the conditioning is applied. It is a categorical parameter with predefined options.

LanPaint_Info

The LanPaint_Info parameter is used to provide additional information or metadata related to the LanPaint process. It is typically a string and does not directly affect the sampling outcome.

Inpainting_mode

The Inpainting_mode parameter specifies the mode of inpainting, such as "🖼️ Image Inpainting" or "🎬 Video Inpainting." It affects how the model interprets and processes the input for inpainting tasks.

LanPaint Sampler Custom Output Parameters:

denoised_latent

The denoised_latent output parameter represents the final denoised latent image generated by the sampling process. It is the primary output of the node, reflecting the application of the model's conditioning and the denoising algorithm. This output is crucial for AI artists as it provides the refined image that can be further processed or used as a final artwork.

LanPaint Sampler Custom Usage Tips:

  • Experiment with different seed values to explore a variety of outputs and find the most visually appealing results.
  • Adjust the steps parameter to balance between computation time and output quality; more steps can lead to better results but require more processing power.
  • Use the cfg parameter to control the influence of conditioning inputs; higher values can lead to outputs that closely match the desired features.
  • Select the appropriate Inpainting_mode based on your task, whether it's image or video inpainting, to ensure optimal processing.

LanPaint Sampler Custom Common Errors and Solutions:

Model not defined

  • Explanation: This error occurs when the model parameter is not properly initialized or passed to the node.
  • Solution: Ensure that a valid model is loaded and passed to the node before execution.

Invalid seed value

  • Explanation: The seed value provided is not an integer, which is required for initializing the random number generator.
  • Solution: Verify that the seed value is an integer and adjust it accordingly.

Steps parameter too low

  • Explanation: The steps parameter is set to a value that is too low, resulting in insufficient sampling iterations.
  • Solution: Increase the steps parameter to ensure adequate processing and improve output quality.

Unsupported sampler_name

  • Explanation: The specified sampler_name does not match any available sampling algorithms.
  • Solution: Check the available samplers and select a valid sampler_name from the list of supported options.

LanPaint Sampler Custom 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.