Skip to content

Commit

Permalink
correct min_subgraph_size in ttfnet (#3088)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrywgz authored May 20, 2021
1 parent b274f7a commit fd49465
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deploy/python/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ def predict(self, image, threshold=0.5, warmup=0, repeats=1):
MaskRCNN's results include 'masks': np.ndarray:
shape: [N, im_h, im_w]
'''
self.det_times.postprocess_time_s.start()
self.det_times.preprocess_time_s.start()
inputs = self.preprocess(image)
np_boxes, np_masks = None, None
input_names = self.predictor.get_input_names()
for i in range(len(input_names)):
input_tensor = self.predictor.get_input_handle(input_names[i])
input_tensor.copy_from_cpu(inputs[input_names[i]])
self.det_times.postprocess_time_s.end()
self.det_times.preprocess_time_s.end()
for i in range(warmup):
self.predictor.run()
output_names = self.predictor.get_output_names()
Expand Down
2 changes: 1 addition & 1 deletion ppdet/engine/export_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
'S2ANet': 40,
'EfficientDet': 40,
'Face': 3,
'TTFNet': 3,
'TTFNet': 60,
'FCOS': 16,
'SOLOv2': 60,
'HigherHRNet': 3,
Expand Down

0 comments on commit fd49465

Please sign in to comment.