Instructions to use SG161222/RealVisXL_V5.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SG161222/RealVisXL_V5.0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("SG161222/RealVisXL_V5.0", 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 SG161222/RealVisXL_V5.0: direct link, hf CLI and curl.
- Browser
- Download file 708 Bytes
-
https://huggingface.co/SG161222/RealVisXL_V5.0/resolve/b59b7bf8c7eab0a887eb6993a98df22a68b95ad2/model_index.json
- Command line
-
hf download hf://SG161222/RealVisXL_V5.0@b59b7bf8c7eab0a887eb6993a98df22a68b95ad2/model_index.json
-
curl -L -o model_index.json https://huggingface.co/SG161222/RealVisXL_V5.0/resolve/b59b7bf8c7eab0a887eb6993a98df22a68b95ad2/model_index.json
708 Bytes
| { | |
| "_class_name": "StableDiffusionXLPipeline", | |
| "_diffusers_version": "0.30.0.dev0", | |
| "feature_extractor": [ | |
| null, | |
| null | |
| ], | |
| "force_zeros_for_empty_prompt": true, | |
| "image_encoder": [ | |
| null, | |
| null | |
| ], | |
| "scheduler": [ | |
| "diffusers", | |
| "DDIMScheduler" | |
| ], | |
| "text_encoder": [ | |
| "transformers", | |
| "CLIPTextModel" | |
| ], | |
| "text_encoder_2": [ | |
| "transformers", | |
| "CLIPTextModelWithProjection" | |
| ], | |
| "tokenizer": [ | |
| "transformers", | |
| "CLIPTokenizer" | |
| ], | |
| "tokenizer_2": [ | |
| "transformers", | |
| "CLIPTokenizer" | |
| ], | |
| "unet": [ | |
| "diffusers", | |
| "UNet2DConditionModel" | |
| ], | |
| "vae": [ | |
| "diffusers", | |
| "AutoencoderKL" | |
| ] | |
| } | |