Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ import spaces
|
|
4 |
import torch
|
5 |
from panna import Depth2Image, DepthAnythingV2
|
6 |
|
7 |
-
|
8 |
-
|
9 |
title = ("# [Depth2Image](https://huggingface.co/stabilityai/stable-diffusion-2-depth) with [DepthAnythingV2](https://huggingface.co/depth-anything/Depth-Anything-V2-Large-hf)\n"
|
10 |
"Depth2Image with depth map predicted by DepthAnything V2. The demo is part of [panna](https://github.com/abacws-abacus/panna) project.")
|
11 |
example_files = []
|
|
|
4 |
import torch
|
5 |
from panna import Depth2Image, DepthAnythingV2
|
6 |
|
7 |
+
model_depth = DepthAnythingV2("depth-anything/Depth-Anything-V2-Large-hf", torch_dtype=torch.float32)
|
8 |
+
model_image = Depth2Image("stabilityai/stable-diffusion-2-depth")
|
9 |
title = ("# [Depth2Image](https://huggingface.co/stabilityai/stable-diffusion-2-depth) with [DepthAnythingV2](https://huggingface.co/depth-anything/Depth-Anything-V2-Large-hf)\n"
|
10 |
"Depth2Image with depth map predicted by DepthAnything V2. The demo is part of [panna](https://github.com/abacws-abacus/panna) project.")
|
11 |
example_files = []
|