nguyenp99 commited on
Commit
4002914
1 Parent(s): 7023de6

Update engine.py

Browse files
Files changed (1) hide show
  1. engine.py +1 -1
engine.py CHANGED
@@ -23,7 +23,7 @@ class Engine(f.Pipe):
23
  self.post_processor = TableRestore()
24
  self.table_detector = self._build_table_detector(cfg, table_checkpoint)
25
  self.stamp_detector = StampDetector(model_path=cfg.STAMP_DETECTION_CHECKPOINT, device=cfg.DEVICE)
26
- self.stamp_detector.to(cfg.DEVICE)
27
 
28
  def run(self, image):
29
  # ratio = 1.0*self.standard_width/image.shape[1]
 
23
  self.post_processor = TableRestore()
24
  self.table_detector = self._build_table_detector(cfg, table_checkpoint)
25
  self.stamp_detector = StampDetector(model_path=cfg.STAMP_DETECTION_CHECKPOINT, device=cfg.DEVICE)
26
+ self.stamp_detector.model.to(cfg.DEVICE)
27
 
28
  def run(self, image):
29
  # ratio = 1.0*self.standard_width/image.shape[1]