valhalla commited on
Commit
b5441a4
1 Parent(s): 26721d3

set lineart detect_resolution to 384

Browse files
Files changed (1) hide show
  1. model.py +1 -1
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=512, image_resolution=1024)
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):