ComfyUI Node: Standard Lineart

Class Name

LineartStandardPreprocessor

Category
ControlNet Preprocessors/Line Extractors
Author
Fannovel16 (Account age: 3127days)
Extension
ComfyUI's ControlNet Auxiliary Preprocessors
Latest Updated
2024-06-18
Github Stars
1.57K

How to Install ComfyUI's ControlNet Auxiliary Preprocessors

Install this extension via the ComfyUI Manager by searching for ComfyUI's ControlNet Auxiliary Preprocessors
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI's ControlNet Auxiliary Preprocessors 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Standard Lineart Description

Extract line art from images with advanced edge detection for AI artists to create stylized drawings.

Standard Lineart:

The LineartStandardPreprocessor is a powerful tool designed to extract line art from images, making it an essential component for AI artists who want to convert their images into clean, stylized line drawings. This node leverages advanced algorithms to detect and highlight the edges and contours within an image, providing a clear and precise line art output. By adjusting specific parameters, you can control the sensitivity and intensity of the line detection process, allowing for a high degree of customization to suit various artistic needs. Whether you are preparing images for further processing or creating standalone line art, this preprocessor offers a reliable and efficient solution.

Standard Lineart Input Parameters:

guassian_sigma

The guassian_sigma parameter controls the amount of Gaussian blur applied to the image before line detection. This helps in smoothing out noise and minor details, making the line detection process more robust. A higher value results in more blurring, which can help in reducing noise but may also cause loss of fine details. The default value is 6.0, with a minimum of 0.0 and a maximum of 100.0.

intensity_threshold

The intensity_threshold parameter sets the threshold for line intensity. This determines how strong the detected lines need to be to be included in the final output. A lower threshold will include more lines, including weaker ones, while a higher threshold will only include stronger, more prominent lines. The default value is 8, with a minimum of 0 and a maximum of 16.

Standard Lineart Output Parameters:

IMAGE

The output is an IMAGE that contains the extracted line art from the input image. This output is a processed version of the original image, where the detected lines are highlighted according to the specified parameters. The resulting image can be used for various artistic purposes, such as further processing, coloring, or as a standalone piece of line art.

Standard Lineart Usage Tips:

  • Experiment with the guassian_sigma parameter to find the right balance between noise reduction and detail preservation. Higher values can help in reducing noise but may blur out finer details.
  • Adjust the intensity_threshold to control the prominence of the lines in your output. Lower values will include more lines, which can be useful for detailed sketches, while higher values will produce cleaner, more defined line art.
  • Use high-resolution images for better results, as the line detection process can capture more details and produce a more accurate line art representation.

Standard Lineart Common Errors and Solutions:

"Invalid value for guassian_sigma"

  • Explanation: The value provided for guassian_sigma is outside the allowed range.
  • Solution: Ensure that the value for guassian_sigma is between 0.0 and 100.0.

"Invalid value for intensity_threshold"

  • Explanation: The value provided for intensity_threshold is outside the allowed range.
  • Solution: Ensure that the value for intensity_threshold is between 0 and 16.

"Image input is not valid"

  • Explanation: The provided image input is not in a supported format or is corrupted.
  • Solution: Verify that the input image is in a supported format (e.g., PNG, JPEG) and is not corrupted. Try using a different image if the problem persists.

Standard Lineart Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI's ControlNet Auxiliary Preprocessors
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.