Skip to main content

Stable Diffusion ControlNet Canny Model Plugin for dashAI

This plugin integrates Stability AI's Stable Diffusion 3.5 with a ControlNet Canny conditioning into the dashAI platform using the Hugging Face diffusers backend. It enables structure-guided image generation, where a Canny edge map extracted from an input image steers the generated output, and supports private access using a Hugging Face API token.

Included Models

1. Stable Diffusion 3.5 Large

Base text-to-image diffusion model, based on stabilityai/stable-diffusion-3.5-large.

2. ControlNet Canny (SD 3.5 Large)

Canny edge conditioning model, based on stabilityai/stable-diffusion-3.5-large-controlnet-canny.

The two models work together: the input image is converted to a Canny edge map, which conditions the SD 3.5 Large pipeline to follow the original structure while regenerating content from the text prompt. Compatible with CPU or GPU inference through diffusers.

About ControlNet

ControlNet is a neural network architecture that adds spatial conditioning to text-to-image diffusion models. By extracting a control signal (here, Canny edges) from a reference image, it constrains generation to follow that structure.

Key features of this ControlNet Canny plugin:

  • Structure-guided generation: output follows the edges of the input image
  • Canny preprocessing: automatic edge detection applied to the input
  • Text-conditioned: content is guided by natural language prompts
  • Negative prompting: steer the model away from unwanted elements
  • Adjustable conditioning strength via controlnet_conditioning_scale
  • Gated weights with access control via Hugging Face

ControlNet is designed for deployment on laptops, desktops, and cloud infrastructure, making controllable image generation more accessible.

Features

  • Structure-guided image generation from an input image plus text prompt
  • Automatic Canny edge extraction from the input image
  • Reproducible generation via fixed random seeds
  • Automatic login to Hugging Face to access gated models
  • Configurable generation parameters:
    • negative_prompt: elements to avoid in the image
    • num_inference_steps: number of denoising steps
    • guidance_scale: how strongly the model follows the prompt
    • controlnet_conditioning_scale: how closely output follows the control edges
    • num_images_per_prompt: number of images per prompt
    • device: detected GPU (e.g. "GPU 0: NVIDIA RTX 3090 - Compute Capability 8.6") or "CPU"

Model Parameters

Parameter Description Default
huggingface_key Hugging Face API token to access restricted models Required
negative_prompt Text prompt for elements to avoid in the image "" (optional)
num_inference_steps Number of denoising steps (higher = better quality, slower) 15
guidance_scale How strongly the model follows the prompt 3.5
controlnet_conditioning_scale How closely the output follows the ControlNet edges 1.0
seed Random seed for reproducibility (negative = random) -1
num_images_per_prompt Number of images to generate per prompt 1
device Inference device — a detected GPU by name (e.g. "GPU 0: NVIDIA RTX 3090 - Compute Capability 8.6") or "CPU" First detected GPU if available, else "CPU"

Requirements

Access Notice: You must accept the model terms on Hugging Face and use a valid Hugging Face token. This repository is publicly accessible, but gated. You need to agree to share your contact information to access the model files.

Notes

This plugin extracts Canny edges from the input image using OpenCV, then conditions the SD 3.5 Large pipeline on that edge map.

The models are pretrained for inference and are not designed for fine-tuning through this plugin. Image dimensions are automatically adjusted to multiples of 8.

Metadata

Release files for dashai-stable-diffusion-controlnet-canny-model 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dashai-stable-diffusion-controlnet-canny-model 0.0.5
File Size Uploaded Provenance
dashai_stable_diffusion_controlnet_canny_model-0.0.5.tar.gz 4.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dashai-stable-diffusion-controlnet-canny-model 0.0.5
File Interpreter ABI Platform
dashai_stable_diffusion_controlnet_canny_model-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / dashai_stable_diffusion_controlnet_canny_model-0.0.5.tar.gz

Download URL dashai_stable_diffusion_controlnet_canny_model-0.0.5.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cda562d582e66113094f65005f0ceb203767141682f4fbe372168e346ed5b18f
BLAKE2b-256 checksum
How to use checksums
5622d416b49b644e26f7c2ccd171f2d33663fba5faae644a9a93f0b40c412586
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release files / dashai_stable_diffusion_controlnet_canny_model-0.0.5-py3-none-any.whl

Download URL dashai_stable_diffusion_controlnet_canny_model-0.0.5-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48eb8c97cc24dce5129f18e7a8c9a99646c8ffb75bee57e891ac956e0375a378
BLAKE2b-256 checksum
How to use checksums
e0dc2b8f0c82b142bab39c1c642c15ea733e25534c16cfa6ddfd4899b5502739
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Security for dashai-stable-diffusion-controlnet-canny-model 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page