Update engine.py
Browse files
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]
|