ComfyUI Node: HED Soft-Edge Lines

Class Name

HEDPreprocessor

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

HED Soft-Edge Lines Description

Extract soft-edge lines from images using HED technique for detailed line art in creative applications.

HED Soft-Edge Lines:

The HEDPreprocessor node is designed to extract soft-edge lines from images using the Holistically-Nested Edge Detection (HED) technique. This node is particularly useful for AI artists who want to generate detailed line art from their images, which can be used for various creative applications such as stylization, animation, and more. By leveraging a pre-trained HED model, the node processes the input image to highlight its edges, providing a clear and refined line representation. This can significantly enhance the visual quality and detail of your artwork, making it an essential tool for artists looking to incorporate intricate line work into their projects.

HED Soft-Edge Lines Input Parameters:

safe

The safe parameter determines whether the safe mode is enabled or disabled during the edge detection process. When set to "enable," the node applies additional safety checks to ensure the quality and accuracy of the extracted lines, which can be particularly useful for complex or high-resolution images. When set to "disable," the node processes the image without these additional checks, which may result in faster processing times but could potentially compromise the quality of the output. The available options are "enable" and "disable," with the default value being "enable."

HED Soft-Edge Lines Output Parameters:

IMAGE

The output parameter IMAGE represents the processed image with the extracted soft-edge lines. This output is a refined line representation of the input image, highlighting its edges and providing a clear and detailed line art version. This can be used directly in your creative projects or further processed for additional artistic effects.

HED Soft-Edge Lines Usage Tips:

  • For best results, use high-resolution images as input to ensure that the extracted lines are detailed and accurate.
  • Enable the safe mode when working with complex images or when you need high-quality line extraction, as this will apply additional checks to improve the output.

HED Soft-Edge Lines Common Errors and Solutions:

"Model loading failed"

  • Explanation: This error occurs when the pre-trained HED model cannot be loaded, possibly due to missing files or incorrect paths.
  • Solution: Ensure that the pre-trained model files are correctly placed in the expected directory and that the paths are correctly specified.

"Image resolution too high"

  • Explanation: This error occurs when the input image resolution exceeds the maximum supported resolution, leading to memory issues.
  • Solution: Reduce the resolution of the input image to a supported level, typically 512x512 pixels, to avoid memory overload.

"Invalid safe parameter value"

  • Explanation: This error occurs when an invalid value is provided for the safe parameter.
  • Solution: Ensure that the safe parameter is set to either "enable" or "disable" as specified in the input options.

HED Soft-Edge Lines 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.