Spaces:
Running
on
Zero
Running
on
Zero
JingShiang Yang
commited on
Commit
·
72e1ca6
1
Parent(s):
ed7e522
Set process_res to 1024 for higher quality
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def analyze_depth(image):
|
|
| 19 |
return None
|
| 20 |
|
| 21 |
# Run inference
|
| 22 |
-
prediction = model.inference([image])
|
| 23 |
|
| 24 |
# 取得深度圖 [H, W]
|
| 25 |
depth = prediction.depth[0]
|
|
|
|
| 19 |
return None
|
| 20 |
|
| 21 |
# Run inference
|
| 22 |
+
prediction = model.inference([image], process_res=1024)
|
| 23 |
|
| 24 |
# 取得深度圖 [H, W]
|
| 25 |
depth = prediction.depth[0]
|