Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] rename forward_test to predict #1561

Merged
merged 1 commit into from
Dec 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mmdeploy/codebase/mmdet/deploy/object_detection_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ class labels of shape [N, num_det].
ret = [r.cpu() for r in ret]
return ret

def forward_test(self, imgs: Tensor, *args, **kwargs):
def predict(self, imgs: Tensor, *args, **kwargs):
"""Implement forward test.

Args:
Expand Down Expand Up @@ -517,8 +517,8 @@ def partition1_postprocess(self, rois: Tensor, cls_score: Tensor,
img_metas[0][0]['scale_factor'],
cfg=rcnn_test_cfg)

def forward_test(self, imgs: Tensor, img_metas: Sequence[dict], *args,
**kwargs):
def predict(self, imgs: Tensor, img_metas: Sequence[dict], *args,
**kwargs):
"""Implement forward test.

Args:
Expand Down