patrickvonplaten
commited on
Commit
•
007371f
1
Parent(s):
d417829
Update README.md
Browse files
README.md
CHANGED
@@ -45,7 +45,7 @@ from diffusers.utils import export_to_video
|
|
45 |
|
46 |
pipe = DiffusionPipeline.from_pretrained("damo-vilab/text-to-video-ms-1.7b-legacy", torch_dtype=torch.float16)
|
47 |
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
48 |
-
pipe.
|
49 |
|
50 |
prompt = "Spiderman is surfing"
|
51 |
video_frames = pipe(prompt, num_inference_steps=25).frames
|
|
|
45 |
|
46 |
pipe = DiffusionPipeline.from_pretrained("damo-vilab/text-to-video-ms-1.7b-legacy", torch_dtype=torch.float16)
|
47 |
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
48 |
+
pipe.enable_model_cpu_offload()
|
49 |
|
50 |
prompt = "Spiderman is surfing"
|
51 |
video_frames = pipe(prompt, num_inference_steps=25).frames
|