Skip to main content
Generate image using a control image (canny). This node takes a control image and generates a new image based on the provided prompt while following the edge structure detected in the control image.

Inputs

ParameterDescriptionData TypeRequiredRange
control_imageThe input image used for canny edge detection controlIMAGEYes-
promptPrompt for the image generation (default: empty string)STRINGNo-
prompt_upsamplingWhether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation, but results are nondeterministic (same seed will not produce exactly the same result). (default: False)BOOLEANNo-
canny_low_thresholdLow threshold for Canny edge detection; ignored if skip_preprocessing is True (default: 0.1)FLOATNo0.01 - 0.99
canny_high_thresholdHigh threshold for Canny edge detection; ignored if skip_preprocessing is True (default: 0.4)FLOATNo0.01 - 0.99
skip_preprocessingWhether to skip preprocessing; set to True if control_image already is canny-fied, False if it is a raw image. (default: False)BOOLEANNo-
guidanceGuidance strength for the image generation process (default: 30)FLOATNo1 - 100
stepsNumber of steps for the image generation process (default: 50)INTNo15 - 50
seedThe random seed used for creating the noise. (default: 0)INTNo0 - 18446744073709551615
Note: When skip_preprocessing is set to True, the canny_low_threshold and canny_high_threshold parameters are ignored since the control image is assumed to already be processed as a canny edge image. The control_image is then used directly as the preprocessed image.

Outputs

Output NameDescriptionData Type
output_imageThe generated image based on the control image and promptIMAGE
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): dedf55a2b2c183519d7f5be0d9a96abbe40716a247f574fc0d50f10f715949a7