Please ensure that the version of diffusers >= 0.30.0.dev0.
Demo
import torch
from diffusers import StableDiffusion3ControlNetPipeline
from diffusers.models import SD3ControlNetModel, SD3MultiControlNetModel
from diffusers.utils import load_image
# load pipeline
controlnet = SD3ControlNetModel.from_pretrained("InstantX/SD3-Controlnet-Canny")
pipe = StableDiffusion3ControlNetPipeline.from_pretrained(
"stabilityai/stable-diffusion-3-medium-diffusers",
controlnet=controlnet
)
pipe.to("cuda", torch.float16)
# config
control_image = load_image("https://huggingface.co/InstantX/SD3-Controlnet-Canny/resolve/main/canny.jpg")
prompt = 'Anime style illustration of a girl wearing a suit. A moon in sky. In the background we see a big rain approaching. text "InstantX" on image'
n_prompt = 'NSFW, nude, naked, porn, ugly'
image = pipe(
prompt,
negative_prompt=n_prompt,
control_image=control_image,
controlnet_conditioning_scale=0.5,
).images[0]
image.save('image.jpg')
Limitation
Due to the fact that only 1024*1024 pixel resolution was used during the training phase,
the inference performs best at this size, with other sizes yielding suboptimal results.
We will initiate multi-resolution training in the future, and at that time, we will open-source the new weights.
Runs of InstantX SD3-Controlnet-Canny on huggingface.co
338
Total runs
-10
24-hour runs
-30
3-day runs
-41
7-day runs
79
30-day runs
More Information About SD3-Controlnet-Canny huggingface.co Model
SD3-Controlnet-Canny huggingface.co
SD3-Controlnet-Canny huggingface.co is an AI model on huggingface.co that provides SD3-Controlnet-Canny's model effect (), which can be used instantly with this InstantX SD3-Controlnet-Canny model. huggingface.co supports a free trial of the SD3-Controlnet-Canny model, and also provides paid use of the SD3-Controlnet-Canny. Support call SD3-Controlnet-Canny model through api, including Node.js, Python, http.
SD3-Controlnet-Canny huggingface.co is an online trial and call api platform, which integrates SD3-Controlnet-Canny's modeling effects, including api services, and provides a free online trial of SD3-Controlnet-Canny, you can try SD3-Controlnet-Canny online for free by clicking the link below.
InstantX SD3-Controlnet-Canny online free url in huggingface.co:
SD3-Controlnet-Canny is an open source model from GitHub that offers a free installation service, and any user can find SD3-Controlnet-Canny on GitHub to install. At the same time, huggingface.co provides the effect of SD3-Controlnet-Canny install, users can directly use SD3-Controlnet-Canny installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
SD3-Controlnet-Canny install url in huggingface.co: