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

Update engine.py

Browse files
Files changed (1) hide show
  1. engine.py +2 -0
engine.py CHANGED
@@ -46,6 +46,8 @@ class Engine(f.Pipe):
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
 
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