Skip to content

Commit

Permalink
mmdet showresult add *args
Browse files Browse the repository at this point in the history
  • Loading branch information
whhuang committed Sep 5, 2022
1 parent 93ef8a3 commit 82265a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mmdeploy/codebase/mmdet/deploy/object_detection_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ def forward_test(self, imgs: torch.Tensor, *args, **kwargs) -> \
return outputs

def show_result(self,
*args,
img: np.ndarray,
result: list,
win_name: str = '',
Expand All @@ -285,6 +286,7 @@ def show_result(self,
**kwargs):
return BaseDetector.show_result(
self,
*args,
img=img,
result=result,
score_thr=score_thr,
Expand Down

0 comments on commit 82265a3

Please sign in to comment.