Instructions to use cerspense/zeroscope_v2_576w with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use cerspense/zeroscope_v2_576w 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_576w", 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
Cannot find the created video, how to change path to final video?
#14
by lostbodhi - opened
Hi, I want to change
video_path = export_to_video(video_frames)
how can i put in my own path?
the default video path is "video_path = /tmp/xxxx.mp4", and you can change the path as "export_to_video(video_frames, f'your/output/videopath.mp4')"
video_path = export_to_video(video_frames)
!mkdir /content/videos
import shutil
file_name=video_path.split("/")[-1]
new_path=f"/content/videos/{file_name}"
shutil.copy(video_path,new_path)