patrickvonplaten commited on
Commit
007371f
1 Parent(s): d417829

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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.enable_cpu_model_offload()
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