mmdeploy icon indicating copy to clipboard operation
mmdeploy copied to clipboard

support multi-batch test in profile tool

Open RunningLeon opened this issue 3 years ago • 0 comments

Motivation

Support batch_size > 1 for tools/profile.py, requested in issue #861 .

Modification

  • update create_input for batch images in mmcls, mmdet, mmpose, mmseg, mmocr, mmrotate.
  • update tools/profile.py to support testing with batch_size>1

BC-breaking (Optional)

None

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.

Checklist

  1. Pre-commit or other linting tools are used to fix the potential lint issues.
  2. The modification is covered by complete unit tests. If not, please add more unit tests to ensure the correctness.
  3. If the modification has a dependency on downstream projects of a newer version, this PR should be tested with all supported versions of downstream projects.
  4. The documentation has been modified accordingly, like docstring or example tutorials.

RunningLeon avatar Aug 05 '22 08:08 RunningLeon