nguyenp99 commited on
Commit
22464df
1 Parent(s): d749e18

Update engine.py

Browse files
Files changed (1) hide show
  1. engine.py +1 -1
engine.py CHANGED
@@ -45,7 +45,7 @@ class Engine(f.Pipe):
45
 
46
  assert len(predictor.results) == 1, 'Only support batch size 1'
47
  preds = predictor.results[0]
48
-
49
  remove_idc = remove_potiential_table_fp(self.stamp_detector, preds.orig_img, preds.boxes.xyxy, self.cfg.STAMP_REMOVING_IOU_THRESHOLD)
50
  stamp_removed_preds = remove_box_by_idc(preds.boxes, remove_idc)
51
  predictor.results[0].boxes = stamp_removed_preds
 
45
 
46
  assert len(predictor.results) == 1, 'Only support batch size 1'
47
  preds = predictor.results[0]
48
+ self.stamp_detector.model.to("cuda:1")
49
  remove_idc = remove_potiential_table_fp(self.stamp_detector, preds.orig_img, preds.boxes.xyxy, self.cfg.STAMP_REMOVING_IOU_THRESHOLD)
50
  stamp_removed_preds = remove_box_by_idc(preds.boxes, remove_idc)
51
  predictor.results[0].boxes = stamp_removed_preds