Instructions to use doji-tech/tiny-stable-diffusion-xl-controlnet-pipe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use doji-tech/tiny-stable-diffusion-xl-controlnet-pipe with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("doji-tech/tiny-stable-diffusion-xl-controlnet-pipe") pipe = StableDiffusionControlNetPipeline.from_pretrained( "fill-in-base-model", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline
controlnet = ControlNetModel.from_pretrained("doji-tech/tiny-stable-diffusion-xl-controlnet-pipe")
pipe = StableDiffusionControlNetPipeline.from_pretrained(
"fill-in-base-model", controlnet=controlnet
)Tiny random Stable Diffusion XL ControlNet pipeline
Random weights, for tests only. Its outputs are noise.
The components are the dummy components of the official diffusers 0.43.0 test
tests/pipelines/controlnet/test_controlnet_sdxl.py (get_dummy_components, seeded with torch.manual_seed(0)), saved with save_pretrained.
The zero convolutions of the ControlNet have random values (torch.manual_seed(1), std 0.2) instead of zeros,
so that the ControlNet changes the image.
The regression tests of tools.doji.diffusers use it.
tools/tiny_pipelines/make_tiny_safetensors.py in that repository makes it.
- Downloads last month
- 14