Skip to content

Commit

Permalink
fix mmdet showresult (#999)
Browse files Browse the repository at this point in the history
* fix mmdet showresult

* Consider compatibility

* mmdet showresult add *args

* Revert "mmdet showresult add *args"

This reverts commit 82265a3.

Co-authored-by: whhuang <[email protected]>
  • Loading branch information
munhou and whhuang authored Sep 5, 2022
1 parent 9541be9 commit 3d092bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mmdeploy/codebase/mmdet/deploy/object_detection_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,15 +281,17 @@ def show_result(self,
win_name: str = '',
show: bool = True,
score_thr: float = 0.3,
out_file=None):
out_file=None,
**kwargs):
return BaseDetector.show_result(
self,
img=img,
result=result,
score_thr=score_thr,
show=show,
win_name=win_name,
out_file=out_file)
out_file=out_file,
**kwargs)


@__BACKEND_MODEL.register_module('single_stage')
Expand Down

0 comments on commit 3d092bf

Please sign in to comment.