Instructions to use YishaoAI/controlnet-wc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use YishaoAI/controlnet-wc with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("YishaoAI/controlnet-wc", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Upload diffusion_pytorch_model.safetensors with huggingface_hub
Browse files123version https://git-lfs.github.com/spec/v1oid sha256:8674af89bc2183e40205e356065713b18cc83849d02d3ff8f5978087f0026e16size 3583232136123version https://git-lfs.github.com/spec/v1oid sha256:6a8f0bf51785355ae4f8715b6b25d5617500bca3ae7aa583080a09a0d91ad100size 3583232136
diffusion_pytorch_model.safetensors+1-1