Skip to content

Commit

Permalink
Fix OV Inference issues (tiling tests & detection tests) (#1361)
Browse files Browse the repository at this point in the history
* update submodule

* add shape check

Co-authored-by: harimkan <[email protected]>
  • Loading branch information
eugene123tw and harimkang authored Nov 14, 2022
1 parent e9aa688 commit 57d0c54
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def post_process(self, prediction: Dict[str, np.ndarray], metadata: Dict[str, An
detections = np.array(detections)
if isinstance(self.converter, MaskToAnnotationConverter):
return self.converter.convert_to_annotation(detections, metadata)
detections[:, 2:] /= np.tile(metadata["original_shape"][1::-1], 2)
if len(detections):
detections[:, 2:] /= np.tile(metadata["original_shape"][1::-1], 2)
return self.converter.convert_to_annotation(detections)

@check_input_parameters_type()
Expand Down

0 comments on commit 57d0c54

Please sign in to comment.