Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,10 +27,6 @@ pipe = diffusers.MarigoldDepthPipeline.from_pretrained(
|
|
| 27 |
"prs-eth/marigold-depth-lcm-v1-0", variant="fp16", torch_dtype=torch.float16
|
| 28 |
).to(device)
|
| 29 |
|
| 30 |
-
# Optimizations:
|
| 31 |
-
# 1. Compile the UNet model for performance improvement
|
| 32 |
-
pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
| 33 |
-
|
| 34 |
# 2. Load a custom VAE for potentially better results
|
| 35 |
pipe.vae = diffusers.AutoencoderTiny.from_pretrained(
|
| 36 |
"madebyollin/taesd", torch_dtype=torch.float16
|
|
|
|
| 27 |
"prs-eth/marigold-depth-lcm-v1-0", variant="fp16", torch_dtype=torch.float16
|
| 28 |
).to(device)
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
# 2. Load a custom VAE for potentially better results
|
| 31 |
pipe.vae = diffusers.AutoencoderTiny.from_pretrained(
|
| 32 |
"madebyollin/taesd", torch_dtype=torch.float16
|