fffiloni commited on
Commit
a3ca6a3
·
1 Parent(s): df9321d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,14 +19,14 @@ pipe_xl.enable_model_cpu_offload()
19
 
20
  def infer(prompt):
21
  #prompt = "Darth Vader is surfing on waves"
22
- pipe.to("cuda")
23
  video_frames = pipe(prompt, num_inference_steps=40, height=320, width=576, num_frames=24).frames
24
  video_path = export_to_video(video_frames)
25
  print(video_path)
26
 
27
  video = [Image.fromarray(frame).resize((1024, 576)) for frame in video_frames]
28
  del pipe
29
- pipe_xl.to("cuda")
30
  video_frames = pipe_xl(prompt, video=video, strength=0.6).frames
31
  video_path = export_to_video(video_frames, output_video_path="xl_result.mp4")
32
 
 
19
 
20
  def infer(prompt):
21
  #prompt = "Darth Vader is surfing on waves"
22
+ #pipe.to("cuda")
23
  video_frames = pipe(prompt, num_inference_steps=40, height=320, width=576, num_frames=24).frames
24
  video_path = export_to_video(video_frames)
25
  print(video_path)
26
 
27
  video = [Image.fromarray(frame).resize((1024, 576)) for frame in video_frames]
28
  del pipe
29
+ #pipe_xl.to("cuda")
30
  video_frames = pipe_xl(prompt, video=video, strength=0.6).frames
31
  video_path = export_to_video(video_frames, output_video_path="xl_result.mp4")
32