戻る
Flux.1 Canny Model - After
Flux.1 Canny Model - Before

The Flux.1 Canny Model workflow in ComfyUI is designed to enhance image generation by integrating edge detection with the Flux.1 model. This workflow utilizes the Canny edge detection technique to guide the generation process, ensuring that the resulting images adhere closely to the structural outlines of the input images. The workflow employs a series of nodes, including the Canny node for edge detection, and the FluxGuidance node to incorporate these edges into the image generation process. By leveraging these nodes, users can achieve more controlled and precise image outputs, making it particularly useful for tasks that require maintaining specific structural details.

The workflow begins with loading necessary models such as Flux.1 and CLIPTextEncode for text conditioning. The KSampler node is then used to sample images based on the detected edges and the provided text prompt. The VAEDecode node helps in decoding the sampled latent space into a visible image, which is then saved using the SaveImage node. This setup is particularly beneficial for artists and designers who need to generate images that maintain the integrity of specific outlines or shapes, offering a blend of creative freedom and structural fidelity.