Image-to-Image
Diffusers
Safetensors
stable-diffusion
stable-diffusion-diffusers
controlnet
jax-diffusers-event
Instructions to use SAMControlNet/sd-controlnet-sam-seg with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SAMControlNet/sd-controlnet-sam-seg with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("SAMControlNet/sd-controlnet-sam-seg") pipe = StableDiffusionControlNetPipeline.from_pretrained( "runwayml/stable-diffusion-v1-5", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
Download image_control.png from SAMControlNet/sd-controlnet-sam-seg: direct link, hf CLI and curl.
- Browser
- Download file 42.3 kB
-
https://huggingface.co/SAMControlNet/sd-controlnet-sam-seg/resolve/main/image_control.png
- Command line
-
hf download hf://SAMControlNet/sd-controlnet-sam-seg/image_control.png
-
curl -L -o image_control.png https://huggingface.co/SAMControlNet/sd-controlnet-sam-seg/resolve/main/image_control.png
42.3 kB
