Instructions to use AndreiUrsu/finetuned-stable-diffusion-2-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AndreiUrsu/finetuned-stable-diffusion-2-1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("AndreiUrsu/finetuned-stable-diffusion-2-1", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Download model_index.json from AndreiUrsu/finetuned-stable-diffusion-2-1: direct link, hf CLI and curl.
- Browser
- Download file 822 Bytes
-
https://huggingface.co/AndreiUrsu/finetuned-stable-diffusion-2-1/resolve/main/model_index.json
- Command line
-
hf download hf://AndreiUrsu/finetuned-stable-diffusion-2-1/model_index.json
-
curl -L -o model_index.json https://huggingface.co/AndreiUrsu/finetuned-stable-diffusion-2-1/resolve/main/model_index.json
822 Bytes
| { | |
| "_class_name": "StableDiffusionPipeline", | |
| "model_type": "stable-diffusion", | |
| "unet": { | |
| "_class_name": "UNet2DConditionModel", | |
| "config": "unet/config.json", | |
| "weights": "unet/diffusion_pytorch_model.safetensors" | |
| }, | |
| "vae": { | |
| "_class_name": "AutoencoderKL", | |
| "config": "vae/config.json", | |
| "weights": "vae/diffusion_pytorch_model.safetensors" | |
| }, | |
| "text_encoder": { | |
| "_class_name": "CLIPTextModel", | |
| "config": "text_encoder/config.json", | |
| "weights": "text_encoder/pytorch_model.bin" | |
| }, | |
| "tokenizer": { | |
| "_class_name": "CLIPTokenizer", | |
| "config": "tokenizer/tokenizer_config.json", | |
| "merges": "tokenizer/merges.txt", | |
| "vocab": "tokenizer/vocab.json" | |
| }, | |
| "scheduler": { | |
| "_class_name": "LMSDiscreteScheduler", | |
| "config": "scheduler/scheduler_config.json" | |
| } | |
| } | |