Update stamp_processing/remover.py
Browse files
stamp_processing/remover.py
CHANGED
@@ -39,7 +39,7 @@ class StampRemover:
|
|
39 |
)
|
40 |
raise FileNotFoundError()
|
41 |
|
42 |
-
self.detector = StampDetector(detection_weight, device=
|
43 |
self.padding = 3
|
44 |
|
45 |
def __call__(self, image_list: Union[List[npt.NDArray], npt.NDArray], batch_size: int = 16) -> List[npt.NDArray]:
|
|
|
39 |
)
|
40 |
raise FileNotFoundError()
|
41 |
|
42 |
+
self.detector = StampDetector(detection_weight, device="cpu")
|
43 |
self.padding = 3
|
44 |
|
45 |
def __call__(self, image_list: Union[List[npt.NDArray], npt.NDArray], batch_size: int = 16) -> List[npt.NDArray]:
|