How to use from the
Use from the
Diffusers library
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
)

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
Safetensors
Model size
1.98M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support