Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -9,11 +9,11 @@ model_depth = DepthAnythingV2("depth-anything/Depth-Anything-V2-Large-hf")
|
|
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 = []
|
12 |
-
for n in range(10):
|
13 |
url = f"https://huggingface.co/spaces/depth-anything/Depth-Anything-V2/resolve/main/assets/examples/demo{n:0>2}.jpg"
|
14 |
print(url)
|
15 |
-
load_image(url).save(
|
16 |
-
|
17 |
|
18 |
|
19 |
@spaces.GPU
|
|
|
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 = []
|
12 |
+
for n in range(1, 10):
|
13 |
url = f"https://huggingface.co/spaces/depth-anything/Depth-Anything-V2/resolve/main/assets/examples/demo{n:0>2}.jpg"
|
14 |
print(url)
|
15 |
+
load_image(url).save(f"demo{n:0>2}.jpg")
|
16 |
+
|
17 |
|
18 |
|
19 |
@spaces.GPU
|