Instructions to use SG161222/Realistic_Vision_V1.4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SG161222/Realistic_Vision_V1.4 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/Realistic_Vision_V1.4", 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
Error Runtimeerror: expected all tensors to be on the same device
#2
by olivierchen1015 - opened
Hi community,
does anyone know how to fix this error?
runtimeerror: expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper__index_select)
(It seems this only happening on some models, but other models very well without any errors..) Thanks so much if anyone can help. :-)