Run this model with HF Jobs
Run stabilityai/stable-diffusion-3.5-large-controlnet-blur on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/stabilityai/stable-diffusion-3.5-large-controlnet-blur. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/stabilityai/stable-diffusion-3.5-large-controlnet-blur on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use stabilityai/stable-diffusion-3.5-large-controlnet-blur with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/stable-diffusion-3.5-large-controlnet-blur with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("stabilityai/stable-diffusion-3.5-large-controlnet-blur") pipe = StableDiffusionControlNetPipeline.from_pretrained( "fill-in-base-model", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
add diffusers weights
#1
by YiYiXu HF Staff - opened
Files changed (3)
- README.md+30
- config.jsonAdded+21
- diffusion_pytorch_model.safetensorsAdded+3
90 unmodified lines91929394959690 unmodified lines### Preprocessing90 unmodified lines91929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512690 unmodified lines### Using Controlnets in DiffusersMake sure you upgrade to the latest version of diffusers: `pip install -U diffusers`. And then you can run:```pythonimport torchfrom diffusers import StableDiffusion3ControlNetPipeline,SD3ControlNetModelfrom diffusers.utils import load_imagecontrolnet = SD3ControlNetModel.from_pretrained("stabilityai/stable-diffusion-3.5-large-controlnet-blur", torch_dtype=torch.float16)pipe = StableDiffusion3ControlNetPipeline.from_pretrained("stabilityai/stable-diffusion-3.5-large",controlnet=controlnet,torch_dtype=torch.float16).to("cuda")control_image = load_image("https://huggingface.co/datasets/diffusers/diffusers-images-docs/resolve/main/blur.png")prompt = "generated ai art, a tiny, lost rubber ducky in an action shot close-up, surfing the humongous waves, inside the tube, in the style of Kelly Slater"generator = torch.Generator(device="cpu").manual_seed(0)image = pipe(prompt,control_image=control_image,guidance_scale=3.5,num_inference_steps=60,generator=generator,max_sequence_length=77,).images[0]image.save('blur-8b.jpg')```### Preprocessing
123456789101112131415161718192021{ "_class_name": "SD3ControlNetModel", "_diffusers_version": "0.32.0.dev0", "attention_head_dim": 64, "caption_projection_dim": 2048, "dual_attention_layers": [], "extra_conditioning_channels": 0, "force_zeros_for_pooled_projection": false, "in_channels": 16, "joint_attention_dim": null, "num_attention_heads": 38, "num_layers": 19, "out_channels": 16, "patch_size": 2, "pooled_projection_dim": 2048, "pos_embed_max_size": null, "pos_embed_type": null, "qk_norm": null, "sample_size": 128, "use_pos_embed": false}123version https://git-lfs.github.com/spec/v1oid sha256:450c51542992407bd2b8c123f70d8958e04129fb1ff471d93fca6e0141a0d42dsize 8614110992README.md+30
config.jsonAdded+21
diffusion_pytorch_model.safetensorsAdded+3