Commit
·
2402636
1
Parent(s):
059ee50
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", torch_dtype=torch.float16, variant="fp16")
|
| 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", torch_dtype=torch.float16, variant="fp16")
|
| 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
|