Spaces:
Running
on
Zero
Running
on
Zero
wondervictor
commited on
Commit
•
dfb2df7
1
Parent(s):
4038a0d
Update preprocessor.py
Browse files- preprocessor.py +2 -2
preprocessor.py
CHANGED
@@ -74,8 +74,8 @@ class Preprocessor:
|
|
74 |
elif name == "Canny":
|
75 |
self.model = CannyDetector()
|
76 |
elif name == "Depth":
|
77 |
-
self.model = DepthEstimator()
|
78 |
-
|
79 |
else:
|
80 |
raise ValueError
|
81 |
torch.cuda.empty_cache()
|
|
|
74 |
elif name == "Canny":
|
75 |
self.model = CannyDetector()
|
76 |
elif name == "Depth":
|
77 |
+
# self.model = DepthEstimator()
|
78 |
+
self.model = MidasDetector.from_pretrained(self.MODEL_ID)
|
79 |
else:
|
80 |
raise ValueError
|
81 |
torch.cuda.empty_cache()
|