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

bug with DefaultFormatBundle in test_pipeline when running image_demo.py #4091

Closed
hyz-xmaster opened this issue Nov 11, 2020 · 2 comments · Fixed by #4400
Closed

bug with DefaultFormatBundle in test_pipeline when running image_demo.py #4091

hyz-xmaster opened this issue Nov 11, 2020 · 2 comments · Fixed by #4400
Assignees

Comments

@hyz-xmaster
Copy link
Contributor

hyz-xmaster commented Nov 11, 2020

Thanks for your error report and we appreciate it a lot.

Checklist

  1. I have searched related issues but cannot get the expected help.
  2. The bug has not been fixed in the latest version.

Describe the bug
See here run demo. I think this bug is caused by changing ImageToTensor to DefaultFormatBundle in the config file. Something wrong with DefaultFormatBundle in test_pipeline. The actual bug happens in mmcv and here

Reproduction

  1. What command or script did you run?
 python demo/image_demo.py demo/demo.jpg configs/vfnet/vfnet_r50_fpn_1x_coco.py checkpoints/vfnet_r50_1x_41.6.pth
  1. Did you make any modifications on the code or config? Did you understand what you have modified?

    Change ImageToTensor to DefaultFormatBundle in the config file.

  2. What dataset did you use?

    COCO

Environment

  1. Please run python mmdet/utils/collect_env.py to collect necessary environment information and paste it here.

    mmcv = 1.1.5 pytorch = 1.6.0 mmdet=2.6.0

Error traceback

see here

Bug fix

Something wrong with DefaultFormatBundle in test_pipeline. Changing it back to ImageToTensor solves the problem.

@ZwwWayne
Copy link
Collaborator

ZwwWayne commented Jan 2, 2021

Hi @hyz-xmaster,
Thanks for your bug report. Would you like to create a PR to fix that?

@hyz-xmaster
Copy link
Contributor Author

Just back from holiday. It seems this bug has been fixed by #4381.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants