Spaces:
Paused
Paused
Update app.py
Browse files
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):
|