Spaces:
Runtime error
Runtime error
set lineart detect_resolution to 384
#3
by
valhalla
- opened
model.py
CHANGED
@@ -117,7 +117,7 @@ class LineartPreprocessor(Preprocessor):
|
|
117 |
return self.model.to(device)
|
118 |
|
119 |
def __call__(self, image: PIL.Image.Image) -> PIL.Image.Image:
|
120 |
-
return self.model(image, detect_resolution=
|
121 |
|
122 |
|
123 |
class MidasPreprocessor(Preprocessor):
|
|
|
117 |
return self.model.to(device)
|
118 |
|
119 |
def __call__(self, image: PIL.Image.Image) -> PIL.Image.Image:
|
120 |
+
return self.model(image, detect_resolution=384, image_resolution=1024)
|
121 |
|
122 |
|
123 |
class MidasPreprocessor(Preprocessor):
|