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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,12 +9,12 @@ from diffusers.utils import export_to_video
9
  pipe = DiffusionPipeline.from_pretrained("cerspense/zeroscope_v2_576w", torch_dtype=torch.float16)
10
  pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
11
  pipe.enable_model_cpu_offload()
12
-
13
  pipe_xl = DiffusionPipeline.from_pretrained("cerspense/zeroscope_v2_XL", torch_dtype=torch.float16, revision="refs/pr/17")
14
  pipe_xl.vae.enable_slicing()
15
  pipe_xl.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
16
  pipe_xl.enable_model_cpu_offload()
17
-
18
 
19
 
20
  def infer(prompt):
 
9
  pipe = DiffusionPipeline.from_pretrained("cerspense/zeroscope_v2_576w", torch_dtype=torch.float16)
10
  pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
11
  pipe.enable_model_cpu_offload()
12
+ pipe.to("cuda")
13
  pipe_xl = DiffusionPipeline.from_pretrained("cerspense/zeroscope_v2_XL", torch_dtype=torch.float16, revision="refs/pr/17")
14
  pipe_xl.vae.enable_slicing()
15
  pipe_xl.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
16
  pipe_xl.enable_model_cpu_offload()
17
+ pipe_xl.to("cpu")
18
 
19
 
20
  def infer(prompt):