Instructions to use JCTN/controlnet-segment-anything with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use JCTN/controlnet-segment-anything with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("JCTN/controlnet-segment-anything", 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
- Xet hash:
- c046b7b2dce7090e94974e43f826b846fa9bd26c382c0f02db667f4b80e82f74
- Size of remote file:
- 1.45 GB
- SHA256:
- becf85417133938f83635565984420aa6def6549853f90c4b4dba6c7856089cc
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.