ComfyUI > Nodes > JPS Custom Nodes for ComfyUI > CtrlNet CannyEdge Pipe (JPS)

ComfyUI Node: CtrlNet CannyEdge Pipe (JPS)

Class Name

CtrlNet CannyEdge Pipe (JPS)

Category
JPS Nodes/Pipes
Author
JPS (Account age: 370days)
Extension
JPS Custom Nodes for ComfyUI
Latest Updated
2024-05-22
Github Stars
0.04K

How to Install JPS Custom Nodes for ComfyUI

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

CtrlNet CannyEdge Pipe (JPS) Description

Specialized node for image processing with Canny Edge Detection algorithm, enhancing edge details for AI artists.

CtrlNet CannyEdge Pipe (JPS):

The CtrlNet CannyEdge Pipe (JPS) is a specialized node designed to process images using the Canny Edge Detection algorithm, which is widely used in computer vision to detect edges in images. This node is particularly useful for AI artists who want to enhance the edge details of their images, making it easier to identify and manipulate specific features. By leveraging this node, you can fine-tune various parameters to control the strength and range of the edge detection, allowing for precise adjustments that can significantly improve the quality and clarity of your images. The main goal of this node is to provide a flexible and powerful tool for edge detection, enabling you to achieve better results in your image processing tasks.

CtrlNet CannyEdge Pipe (JPS) Input Parameters:

cannyedge_settings

This parameter is a tuple that includes several settings for the Canny Edge Detection algorithm. It consists of the following sub-parameters:

  • cannyedge_from: Specifies the source of the image for edge detection. Options include "Source Image", "Support Image", and "Support Direct". This parameter determines which image will be used as the input for the edge detection process.
  • cannyedge_strength: A float value that controls the strength of the edge detection. The default value is 1.00, with a minimum of 0.00 and a maximum of 10.00, adjustable in steps of 0.10. Higher values result in stronger edge detection.
  • cannyedge_start: A float value that sets the starting point for the edge detection range. The default value is 0.000, with a minimum of 0.000 and a maximum of 1.000, adjustable in steps of 0.05. This parameter helps in defining the lower threshold for edge detection.
  • cannyedge_end: A float value that sets the ending point for the edge detection range. The default value is 1.000, with a minimum of 0.000 and a maximum of 1.000, adjustable in steps of 0.05. This parameter helps in defining the upper threshold for edge detection.
  • cannyedge_low: An integer value that sets the low threshold for the hysteresis procedure in edge detection. The default value is 100, with a minimum of 0 and a maximum of 255, adjustable in steps of 1. Lower values result in more edges being detected.
  • cannyedge_high: An integer value that sets the high threshold for the hysteresis procedure in edge detection. The default value is 200, with a minimum of 0 and a maximum of 255, adjustable in steps of 1. Higher values result in fewer, but more prominent, edges being detected.

CtrlNet CannyEdge Pipe (JPS) Output Parameters:

cannyedge_source

This output parameter indicates the source of the image used for edge detection. It is an integer value that corresponds to the selected source option (1 for "Source Image", 2 for "Support Image", and 3 for "Support Direct").

cannyedge_strength

This output parameter reflects the strength of the edge detection applied to the image. It is a float value that matches the input setting for cannyedge_strength.

cannyedge_start

This output parameter indicates the starting point for the edge detection range. It is a float value that matches the input setting for cannyedge_start.

cannyedge_end

This output parameter indicates the ending point for the edge detection range. It is a float value that matches the input setting for cannyedge_end.

cannyedge_low

This output parameter represents the low threshold used in the hysteresis procedure for edge detection. It is an integer value that matches the input setting for cannyedge_low.

cannyedge_high

This output parameter represents the high threshold used in the hysteresis procedure for edge detection. It is an integer value that matches the input setting for cannyedge_high.

CtrlNet CannyEdge Pipe (JPS) Usage Tips:

  • Adjust the cannyedge_strength parameter to control the prominence of edges in your image. Higher values will make edges more pronounced, which can be useful for highlighting specific features.
  • Use the cannyedge_start and cannyedge_end parameters to fine-tune the range of edge detection. This can help in focusing on specific areas of the image where edge details are most important.

CtrlNet CannyEdge Pipe (JPS) Common Errors and Solutions:

Invalid cannyedge_from value

  • Explanation: The value provided for the cannyedge_from parameter is not one of the accepted options ("Source Image", "Support Image", "Support Direct").
  • Solution: Ensure that the cannyedge_from parameter is set to one of the valid options.

cannyedge_strength out of range

  • Explanation: The value for cannyedge_strength is outside the allowed range (0.00 to 10.00).
  • Solution: Adjust the cannyedge_strength parameter to be within the valid range.

cannyedge_start or cannyedge_end out of range

  • Explanation: The values for cannyedge_start or cannyedge_end are outside the allowed range (0.000 to 1.000).
  • Solution: Adjust the cannyedge_start and cannyedge_end parameters to be within the valid range.

cannyedge_low or cannyedge_high out of range

  • Explanation: The values for cannyedge_low or cannyedge_high are outside the allowed range (0 to 255).
  • Solution: Adjust the cannyedge_low and cannyedge_high parameters to be within the valid range.

CtrlNet CannyEdge Pipe (JPS) Related Nodes

Go back to the extension to check out more related nodes.
JPS Custom Nodes for ComfyUI
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.