nguyenp99 commited on
Commit
dbc73de
1 Parent(s): a8678ec

Update engine.py

Browse files
Files changed (1) hide show
  1. engine.py +0 -3
engine.py CHANGED
@@ -45,9 +45,6 @@ class Engine(f.Pipe):
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
- print(preds.orig_img)
50
- print(preds.boxes.xyxy)
51
  remove_idc = remove_potiential_table_fp(self.stamp_detector, preds.orig_img, preds.boxes.xyxy, self.cfg.STAMP_REMOVING_IOU_THRESHOLD)
52
  stamp_removed_preds = remove_box_by_idc(preds.boxes, remove_idc)
53
  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
  remove_idc = remove_potiential_table_fp(self.stamp_detector, preds.orig_img, preds.boxes.xyxy, self.cfg.STAMP_REMOVING_IOU_THRESHOLD)
49
  stamp_removed_preds = remove_box_by_idc(preds.boxes, remove_idc)
50
  predictor.results[0].boxes = stamp_removed_preds