mmdeploy icon indicating copy to clipboard operation
mmdeploy copied to clipboard

Error about test.py

Open Audrey528 opened this issue 1 year ago • 5 comments

image How can I reshape the test images?

Audrey528 avatar Jul 20 '22 07:07 Audrey528

Hi, @Audrey528. There are two methods.

  1. The test pipeline of model_cfg can be modified to your preference.
  2. You can also modify the function create_input of mmdeploy/codebase/mmdet/deploy/object_detection.py to change the shape.

AllentDan avatar Jul 20 '22 09:07 AllentDan

@AllentDan Thanks for your reply. as shown below, the test pipeline of model_cfg is set. And I change (1333, 800) to (1344,800), but the error is the same as before. image And I don't know how to modify the functioin create_input, can you speak clearly. Thank you very much.

Audrey528 avatar Jul 20 '22 10:07 Audrey528

Set keep_ratio=False please

AllentDan avatar Jul 21 '22 02:07 AllentDan

I set keep_ratio=False in model_cfg, but the error still exists

Audrey528 avatar Jul 22 '22 02:07 Audrey528

Hi, could you try debugging create_input function of mmdeploy/codebase/mmdet/deploy/object_detection.py and check what step is not expected?

AllentDan avatar Jul 22 '22 02:07 AllentDan

Closing it for no activity for a long time, feel free to reopen it if it is still an issue for you.

AllentDan avatar Sep 29 '22 09:09 AllentDan