Instructions to use cerspense/zeroscope_v2_XL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use cerspense/zeroscope_v2_XL with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("cerspense/zeroscope_v2_XL", 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
V2V example encounter OOM in 80G A100.
#25
by guyuchao - opened
Does it need to run with xformer or some other techniques?
Same problem, apparently needs xformers, but I have no idea how to implement it to the python script.
Same problem, apparently needs xformers, but I have no idea how to implement it to the python script.
Just add pipe.enable_xformers_memory_efficient_attention() and the gpu memory usage will be reduced significantly.
For me, it takes ~20.1GB for rendering 1024x576 at 32 frames.

