Spaces:
Running
on
Zero
Running
on
Zero
init
Browse files
app.py
CHANGED
|
@@ -112,7 +112,7 @@ def segment_image(
|
|
| 112 |
|
| 113 |
def get_depth_pipeline():
|
| 114 |
feature_extractor = AutoImageProcessor.from_pretrained("LiheYoung/depth-anything-large-hf",
|
| 115 |
-
torch_dtype=dtype)
|
| 116 |
depth_estimator = AutoModelForDepthEstimation.from_pretrained("LiheYoung/depth-anything-large-hf",
|
| 117 |
torch_dtype=dtype).to(device)
|
| 118 |
return feature_extractor, depth_estimator
|
|
|
|
| 112 |
|
| 113 |
def get_depth_pipeline():
|
| 114 |
feature_extractor = AutoImageProcessor.from_pretrained("LiheYoung/depth-anything-large-hf",
|
| 115 |
+
torch_dtype=dtype)
|
| 116 |
depth_estimator = AutoModelForDepthEstimation.from_pretrained("LiheYoung/depth-anything-large-hf",
|
| 117 |
torch_dtype=dtype).to(device)
|
| 118 |
return feature_extractor, depth_estimator
|