Skip to main content
Browse Models

lllyasviel

ControlNet SD 1.5 Canny

Released

2023-04-13

Family

Stable Diffusion 1

Type

ControlNet Model

Downloads

External Download

You are about to open a link to an external source. Verify the URL before continuing.

Download

Model Checkpoint

FP16 · control_v11p_sd15_canny.pth

Model Report

Overview

ControlNet SD 1.5 Canny is a model within the ControlNet 1.1 family, designed to condition image generation in Stable Diffusion 1.5 using Canny edge maps as control signals. The model leverages Canny edge detection—a classic computer vision algorithm that highlights image boundaries—to influence the composition and structure of generated outputs, facilitating precise and repeatable control over the creative process. ControlNet SD 1.5 Canny builds upon its predecessor, offering improvements in robustness and visual quality by refining its data pipeline and training protocol.

SCNNR naming convention diagram

Figure 1. Standard ControlNet Naming Rules (SCNNRs) breakdown, shown with the model file 'control_v11p_sd15_canny.pth' as an example.

Model Architecture and Technology

The underlying architecture of ControlNet 1.1, including the Canny variant, retains the core structure of earlier releases. The system is built around the integration of ControlNet's auxiliary encoding with the Stable Diffusion 1.5 U-Net backbone, facilitating image generation that is explicitly guided by structural information extracted via Canny edge maps. During inference, the ControlNet Encoder output is processed with a global average pooling operation before fusion with the main diffusion U-Net latent space, a design consideration outlined in the official ControlNet-v1-1-nightly repository.

A critical operational detail is that ControlNet is integrated on the conditional branch of the classifier-free guidance (CFG) mechanism in Stable Diffusion, ensuring that the edge-derived conditions robustly influence the generation process without affecting unconditional guidance. This architecture allows the user to exert granular control over image composition while maintaining the flexibility of text-conditioned generation.

The ControlNet 1.1 framework includes support for "Multi-ControlNet," where multiple ControlNet models can be used in tandem, enabling combinations of edge, pose, segmentation, and other modalities. This functionality is accessible in popular Stable Diffusion user interfaces and facilitates complex conditioning scenarios, as discussed in the main ControlNet documentation.

Training Data and Methodology

ControlNet SD 1.5 Canny underwent extensive improvements in its training dataset compared to its 1.0 predecessor. The data curation process prioritized the removal of duplicated grayscale human images—previously found to bias results toward grayscale generations—alongside thorough filtering of low-quality, blurry, or JPEG-artifacted samples. Furthermore, errors in paired prompts, stemming from processing bugs, were systematically resolved, resulting in higher-quality image-text associations during training. Details of these changes are described in the project documentation on HuggingFace.

The training process utilized a large compute budget, employing eight NVIDIA A100 80GB GPUs and a batch size of 256 over three days. This enabled robust convergence and improved generalization, as evidenced by performance benchmarks and output quality. The training procedure not only resumed weights from the earlier Canny 1.0 model but also incorporated random Canny edge thresholding for input diversities, further enhancing downstream robustness.

Model Performance and Output Characteristics

Qualitative and batch testing of ControlNet SD 1.5 Canny demonstrates marked improvements in both consistency and fidelity compared to previous versions. The model is capable of generating images that closely align with the structure established by input Canny edge maps while allowing rich variations in style and detail via text prompts. Results from systematic tests, including the frequently referenced "dog in a room" scenario, illustrate the model's proficiency at preserving spatial layout and prominent edges while synthesizing visually coherent outputs.

Batch test of ControlNet SD 1.5 Canny model output

Figure 2. Batch outputs of the 'dog in a room' prompt with a Canny edge map for conditioning. The model generates variations that are structurally consistent with the detected edges.

The architecture also supports the combination of multiple ControlNet modules, enhancing possibilities for creative compositing. As a result, users are able to generate complex scenes or character variations with fine-grained structural and stylistic control, which has been demonstrated in various multi-ControlNet scenarios shared in the open-source ControlNet repository.

Multiple photo-realistic renders of an Iron Man-like figure generated by ControlNet using edge and shuffle controls

Figure 3. Generated outputs using both Canny (edge) and Shuffle (content) conditions, illustrating diverse results with consistent global structure.

Applications and Use Cases

ControlNet SD 1.5 Canny is primarily utilized for tasks where preserving or interpreting visual structure is essential. By conditioning image generation on edge maps, it has become a tool of choice for applications such as sketch-to-image synthesis, controlled style transfer, and content-aware modification. Artists and developers use the model to transform Canny edge-detected sketches or extracted edge maps from photographs into fully rendered outputs matching textual prompts, while reliably maintaining underlying composition.

The model further supports integration into multi-module workflows, enabling comprehensive scene control when combined with other conditioning sources such as pose estimation, segmentation, or depth maps. The supported batch inference and randomization features facilitate the rapid generation of diverse outputs from a single edge map source.

In professional and experimental contexts, this model enables workflows such as controlled data augmentation, rapid prototyping of concept art, and forensic applications where structural preservation from original images is required.

Limitations and Related Models

While ControlNet SD 1.5 Canny offers notable improvements in visual fidelity and robustness, certain limitations remain. For instance, when handling scenes with ambiguous or low-quality edge detection, the model's outputs may deviate from intended semantics. Additionally, some features—such as tiled upscaling or specific anime-trained variants—require auxiliary files or updated user interface extensions, as noted in the repository's guidance.

The broader ControlNet 1.1 family introduces several other conditioning modalities built on the same architecture, including models for depth map extraction, normal maps, semantic segmentation, scribble input, and more. Each variant is designed for specific structural signal integration, following the Standard ControlNet Naming Rules to ensure clarity in configuration and interoperability.

Licensing and Access

ControlNet SD 1.5 Canny, like its family counterparts, is released in a public repository, facilitating open research and reproducibility. While the specific license is not explicitly stated in the repository, public distribution is maintained on GitHub and HuggingFace, providing access to model weights, configuration files, and related resources. Users are advised to consult the repository for definitive licensing information before redistribution or derivative works.

References and Further Reading

About Stable Diffusion 1: Stable Diffusion is an open-source text-to-image generative AI model that transforms textual adminDescriptions into corresponding images. Technologically, it employs a latent diffusion model architecture, enhancing computational efficiency by performing diffusion processes in a compressed latent space, which enables high-quality image generation with reduced resource requirements.

More in the Stable Diffusion 1 Family

stabilityai /

Stable Diffusion 1.1

A latent text-to-image diffusion model trained on LAION datasets that generates 512×512 images from natural language prompts using compressed latent space processing.
stabilityai /

Stable Diffusion 1.5

Text-to-image diffusion model trained on LAION dataset subset, generating 512x512 images from natural language prompts using latent space processing.
prompthero /

OpenJourney v4

SD 1.5 fine-tuned on 124k+ additional images generated with Midjourney v4, leading to results that resemble this other closed-source image generation model.
Photographer /

Photon

Photon aims to generate photorealistic and visually appealing images effortlessly.
KandooAI /

Juggernaut

Popular SD 1.5 fine-tune with capability to produce detailed images of a versatile breadth of subjects.
wavymulder /

Analog Diffusion

SD 1.5 fine-tuned on a diverse set of analog images, yielding a vintage photographic look.
Lykon /

Dreamshaper

SD 1.5 fine-tune with strong art generation ability and a broad generalist capabilities.
SG_161222 /

Realistic Vision

SD 1.5 fine-tune specialized in creating photorealistic portraits of humans.
Meina /

Meina Mix

Model resulting for merging 7 different anime-focused SD 1.5 checkpoints.
epinikion /

epiCRealism

Popular SD 1.5 fine-tune with high competence in translating simple text prompts into realistic images of people.
Lykon /

Absolute Reality

One of the top SD 1.5 variant for generating life-like images of people and objects.
Cyberdelia /

Cyber Realistic

Versatile photorealistic SD 1.5 fine-tune capable of generating a wide range of convincing photographic images.
Merjic /

MajicMIX Realistic

Popular SD 1.5 photorealism fine-tune with training data weighted on people of asian descent.
epinikion /

epiCPhotoGasm

A Stable Diffusion 1.5-based checkpoint model designed for photorealistic image generation with simplified prompting and demographic diversity.
lllyasviel /

ControlNet SD 1.5 IP2P

SD 1.5 ControlNet trained with pixel-to-pixel instruction.
lllyasviel /

ControlNet SD 1.5 Depth

SD 1.5 ControlNet model to replicate the depth of a source image.
lllyasviel /

ControlNet SD 1.5 MLSD

SD 1.5 ControlNet model to detect straight-lines, useful for architecture and man-made objects.
lllyasviel /

ControlNet SD 1.5 Normal

SD 1.5 ControlNet model to replicate the depth of a source image, with additional surface details and geometry.
lllyasviel /

ControlNet SD 1.5 Open Pose

SD 1.5 ControlNet model for copying human poses.
lllyasviel /

ControlNet SD 1.5 Scribble

SD 1.5 ControlNet model for converting sketches to images.
lllyasviel /

ControlNet SD 1.5 Segmentation

SD 1.5 ControlNet model for detecting and segmenting distinct parts of images to use in the generation.
lllyasviel /

ControlNet SD 1.5 Soft Edge

SD 1.5 ControlNet model to detect soft-edges, especially useful for recoloring and stylizing.
lllyasviel /

ControlNet SD 1.5 Inpaint

SD 1.5 ControlNet model trained with image inpainting.
lllyasviel /

ControlNet SD 1.5 Line Art

SD 1.5 ControlNet model trained with line art generation.
lllyasviel /

ControlNet SD 1.5 Lineart Anime

SD 1.5 ControlNet model trained with anime line art generation.
lllyasviel /

ControlNet SD 1.5 Shuffle

SD 1.5 ControlNet model trained with image shuffling.
lllyasviel /

ControlNet SD 1.5 Tile

SD 1.5 ControlNet model trained with image tiling.
tencent /

ControlNet 1.5 IP Adapter

SD 1.5 ControlNet model for conditioning on an image prompt.
tencent /

ControlNet 1.5 QR Code

SD 1.5 ControlNet model for generating stylized QR codes.