Skip to main content
Browse Models

lllyasviel

ControlNet SD 1.5 MLSD

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_mlsd.pth

Model Report

Overview

ControlNet SD 1.5 MLSD is a model within the ControlNet 1.1 suite, designed to provide precise structural control to image generation tasks by leveraging Mobile-optimized Line Segment Detection (M-LSD). This model allows users to guide Stable Diffusion 1.5 outputs using straight lines identified from input images, making it especially useful for applications where geometric consistency and linear features are paramount. ControlNet 1.1 maintains architectural continuity with ControlNet 1.0 while offering improvements in data quality, robustness, and training procedures.

Diagram explaining ControlNet standard model naming conventions

Figure 1. Diagram illustrating the Standard ControlNet Naming Rules (SCNNRs) used in the ControlNet 1.1 model suite.

Model Architecture and Technical Innovations

ControlNet SD 1.5 MLSD adopts the same neural network architecture as its predecessor, ControlNet 1.0. This architectural consistency facilitates compatibility across versions and ensures a stable foundation for ongoing research and deployment. The key input to the model is a set of straight lines extracted by the MLSD preprocessor, which serves as a structural constraint during image synthesis.

The model is distributed via the files control_v11p_sd15_mlsd.pth and control_v11p_sd15_mlsd.yaml. During inference, global average pooling is used between the ControlNet Encoder outputs and the Stable Diffusion UNet layers to optimize feature transmission across the network. Additionally, the model is designed to interact exclusively with the conditional side of the Classifier-Free Guidance (CFG) scale, a behavior that can be controlled using the YAML configuration file's global_average_pooling item.

Data, Training, and Improvements

Considerable enhancements were introduced in ControlNet 1.1 MLSD to resolve data-related limitations observed in previous releases. The training dataset was refined by eliminating duplicated grayscale images, removing low-quality samples, and correcting prompt-image pair mismatches, resulting in increased robustness and reliability.

The dataset was further expanded by appending 300,000 new images, each selected on the basis of containing more than sixteen straight lines as determined by MLSD analysis. Data augmentation strategies, including random left-right flipping, were applied to enhance the model's generalization. Training resumed from the MLSD 1.0 checkpoint and involved an additional 200 GPU hours of computation using A100 80G GPUs.

The central training signal for this model derives from M-LSD Lines, ensuring that structural accuracy in generated outputs is prioritized.

Screenshot of ControlNet SD 1.5 MLSD batch output

Figure 2. Batch test output from the ControlNet 1.1 MLSD model using prompt 'room' and random seed 12345, demonstrating M-LSD line structure control.

Applications and Use Cases

ControlNet SD 1.5 MLSD is particularly well-suited to applications that require adherence to geometric structures, such as interior design visualizations, architectural sketches, and scenes where linearity and spatial coherence are vital. By using M-LSD as a preprocessor, the model enables users to infuse a high degree of shape guidance into image generation without sacrificing the creative flexibility afforded by Stable Diffusion 1.5. This approach empowers users to produce variations of visual content that are constrained by real or imagined sets of straight lines, facilitating tasks ranging from synthetic data generation for computer vision to design prototyping.

Comparative Models and Alternative Approaches

ControlNet 1.1 encompasses a broader suite of models, each optimized for different control signals. Other notable variants include models for Canny edge detection, depth maps, semantic segmentation, normal maps, and pose estimation, among others. Some models in the family, such as those for content shuffle or tile-based control, are marked as experimental and may require additional validation before use in production contexts.

Alongside ControlNet, the Control-LoRA approach provides an alternative mechanism for model control, achieving similar goals via low-rank parameter-efficient fine-tuning. Control-LoRAs enable model size reductions—down from 4.7GB for standard ControlNet models to approximately 738MB for Rank 256 variants and around 377MB for Rank 128—making them attractive for environments with limited resources.

Limitations and Operational Notes

While ControlNet SD 1.5 MLSD demonstrates robust performance in line-guided generation, certain limitations and caveats are noted. Experimental models within ControlNet 1.1, such as Shuffle, Instruct Pix2Pix, and Tile, may produce inconsistent results requiring selective curation.

For users seeking integration with the Automatic1111 (A1111) toolkit, it is recommended to use the dedicated sd-webui-controlnet extension, as the primary ControlNet 1.1 repository is not structured as an A1111 extension, and multi-ControlNet support is currently A1111-exclusive.

Some specialized models, such as Anime Lineart, impose further operational constraints, including the lack of support for Guess Mode and the requirement for external checkpoint files not bundled within the core release.

Release History and Documentation

ControlNet 1.1 was released as a nightly build, with eleven production-ready models and three experimental models announced in the suite. The official documentation, hosted on the project’s GitHub, is continuously updated as the project evolves.

External Resources

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 Canny

SD 1.5 ControlNet model to replicate the composion of a source image using edge-detection.
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 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.