ComfyUI > Nodes > ComfyUI_ObjectClear > ObjectClearSampler

ComfyUI Node: ObjectClearSampler

Class Name

ObjectClearSampler

Category
ObjectClear
Author
smthemex (Account age: 893days)
Extension
ComfyUI_ObjectClear
Latest Updated
2025-11-24
Github Stars
0.03K

How to Install ComfyUI_ObjectClear

Install this extension via the ComfyUI Manager by searching for ComfyUI_ObjectClear
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_ObjectClear 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

ObjectClearSampler Description

Enhance image processing by clearing or modifying specific objects with advanced sampling techniques for creative image editing.

ObjectClearSampler:

The ObjectClearSampler node is designed to enhance image processing by leveraging advanced sampling techniques to clear or modify specific objects within an image. This node is particularly useful for AI artists who want to manipulate images by removing or altering certain elements while maintaining the overall aesthetic and quality of the image. The primary function of this node is to process images using a model and a set of parameters that guide the transformation, allowing for precise control over the image's final appearance. By utilizing vision embeddings and other input parameters, the ObjectClearSampler can effectively target and modify specific areas of an image, making it a powerful tool for creative image editing and enhancement.

ObjectClearSampler Input Parameters:

model

The model parameter refers to the machine learning model used for processing the image. This model is responsible for interpreting the input data and applying the necessary transformations to achieve the desired image output. The choice of model can significantly impact the quality and style of the final image, so selecting an appropriate model is crucial for achieving optimal results.

iamge

The iamge parameter is the input image that you want to process. This image serves as the base for any modifications or enhancements performed by the node. The quality and resolution of the input image can affect the final output, so it is recommended to use high-quality images for the best results.

mask

The mask parameter is used to specify the areas of the image that should be targeted for modification. This mask acts as a guide for the node, indicating which parts of the image should be altered or cleared. The mask can be a binary or grayscale image where different values represent different levels of modification.

positive

The positive parameter is a set of conditions or features that you want to enhance or emphasize in the image. This parameter helps guide the model in focusing on specific aspects of the image that should be highlighted or preserved during processing.

negative

The negative parameter is the opposite of the positive parameter, specifying the conditions or features that should be minimized or removed from the image. This helps the model understand which elements are undesirable and should be de-emphasized or cleared.

vison_emb

The vison_emb parameter contains vision embeddings, which are pre-processed representations of the image used to guide the model's understanding and transformation of the image. These embeddings help the model focus on specific features and improve the accuracy of the modifications.

seed

The seed parameter is used to initialize the random number generator, ensuring that the image processing results are reproducible. By setting a specific seed value, you can achieve consistent results across multiple runs with the same input parameters.

steps

The steps parameter determines the number of iterations the model will perform during the image processing. More steps can lead to more refined results, but they also increase the processing time. Finding a balance between quality and efficiency is key when setting this parameter.

cfg

The cfg parameter, or configuration, is a set of additional settings that control various aspects of the image processing. These settings can include thresholds, scaling factors, or other parameters that influence the model's behavior and the final output.

strength

The strength parameter controls the intensity of the modifications applied to the image. A higher strength value results in more pronounced changes, while a lower value leads to subtler adjustments. Adjusting this parameter allows you to fine-tune the level of transformation applied to the image.

short_size

The short_size parameter specifies the target size for the shortest dimension of the image. This parameter is used to resize the image while maintaining its aspect ratio, ensuring that the processed image fits within the desired dimensions.

ObjectClearSampler Output Parameters:

image

The image output parameter is the final processed image resulting from the node's operations. This image reflects the modifications specified by the input parameters, with targeted objects cleared or altered according to the mask and other settings. The output image is ready for further use or display, showcasing the creative transformations achieved through the ObjectClearSampler.

ObjectClearSampler Usage Tips:

  • Experiment with different model choices to find the one that best suits your artistic style and desired output.
  • Use high-quality input images and carefully crafted masks to achieve precise and visually appealing results.
  • Adjust the strength parameter to control the intensity of the modifications, allowing for subtle or dramatic changes as needed.
  • Set a specific seed value to ensure consistent results across multiple runs with the same settings.

ObjectClearSampler Common Errors and Solutions:

"CUDA out of memory"

  • Explanation: This error occurs when the GPU does not have enough memory to process the image with the current settings.
  • Solution: Try reducing the image size, decreasing the number of steps, or using a model with lower memory requirements.

"Invalid mask dimensions"

  • Explanation: This error indicates that the mask dimensions do not match the input image dimensions.
  • Solution: Ensure that the mask is the same size as the input image, or adjust the mask dimensions to match the image.

"Model not found"

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

ObjectClearSampler Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_ObjectClear
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.