Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,8 +64,8 @@ model = Mask2FormerForUniversalSegmentation.from_pretrained("facebook/mask2forme
|
|
| 64 |
model = model.to(DEVICE)
|
| 65 |
|
| 66 |
# Load Depth model
|
| 67 |
-
depth_image_processor = AutoImageProcessor.from_pretrained("LiheYoung/depth-anything-large-hf", torch_dtype=
|
| 68 |
-
depth_model = AutoModelForDepthEstimation.from_pretrained("LiheYoung/depth-anything-large-hf", torch_dtype=
|
| 69 |
depth_model = depth_model.to(DEVICE)
|
| 70 |
|
| 71 |
def to_rgb(color: str) -> tuple:
|
|
|
|
| 64 |
model = model.to(DEVICE)
|
| 65 |
|
| 66 |
# Load Depth model
|
| 67 |
+
depth_image_processor = AutoImageProcessor.from_pretrained("LiheYoung/depth-anything-large-hf", torch_dtype=DTYPE)
|
| 68 |
+
depth_model = AutoModelForDepthEstimation.from_pretrained("LiheYoung/depth-anything-large-hf", torch_dtype=DTYPE)
|
| 69 |
depth_model = depth_model.to(DEVICE)
|
| 70 |
|
| 71 |
def to_rgb(color: str) -> tuple:
|