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
- Draw Things
- DiffusionBee
I am a beginner, why do I encounter an error when loading the SG161222/RealVisXL_V5.0 model
#4
by michaelj - opened
pipeline = StableDiffusionXLPipeline.from_pretrained(
"SG161222/RealVisXL_V5.0",
torch_dtype=torch.float16,
variant="fp16",
use_safetensors=True,
cache_dir=cache_dir,
).to(self.device)
The reason for the error is
OSError: Error no file named scheduler_config.json found in directory
Is there an example about loading ControlNet and IP Adapter in Safetensors
!
Will you upload code similar to this architecture
ε±ι¨ζͺε_20240903_234040.png
Hi! I'll upload it soon.