nguyenp99 commited on
Commit
1c6f7e9
1 Parent(s): 5ae5318

Update stamp_processing/remover.py

Browse files
Files changed (1) hide show
  1. stamp_processing/remover.py +1 -1
stamp_processing/remover.py CHANGED
@@ -39,7 +39,7 @@ class StampRemover:
39
  )
40
  raise FileNotFoundError()
41
 
42
- self.detector = StampDetector(detection_weight, device=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]: