Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,8 @@ import os
|
|
| 9 |
|
| 10 |
# 1. Load Model
|
| 11 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 12 |
-
|
|
|
|
| 13 |
processor = AutoImageProcessor.from_pretrained(checkpoint)
|
| 14 |
model = AutoModelForDepthEstimation.from_pretrained(checkpoint).to(DEVICE)
|
| 15 |
|
|
|
|
| 9 |
|
| 10 |
# 1. Load Model
|
| 11 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 12 |
+
# Change this line in your app.py
|
| 13 |
+
checkpoint = "depth-anything/Depth-Anything-V3-Small"
|
| 14 |
processor = AutoImageProcessor.from_pretrained(checkpoint)
|
| 15 |
model = AutoModelForDepthEstimation.from_pretrained(checkpoint).to(DEVICE)
|
| 16 |
|