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

yolo_to_bbox function discards bounding boxes #50

Open
aelnouby opened this issue Jan 22, 2018 · 2 comments
Open

yolo_to_bbox function discards bounding boxes #50

aelnouby opened this issue Jan 22, 2018 · 2 comments

Comments

@aelnouby
Copy link

Hi,

When I try the demo I always get
Traceback (most recent call last): File "demo.py", line 63, in <module> bbox_pred, iou_pred, prob_pred, image.shape, cfg, thresh) File "/export/mlrg/aelnouby/projects/3rdParty/yolo2-pytorch/utils/yolo.py", line 108, in postprocess num_classes = cfg.num_classes IndexError: index 571 is out of bounds for axis 0 with size 500

When I started debugging I found that yolo_to_bbox function call discards bounding boxes, while the input shape is (1, 165, 5, 4) , the output shape is (1, 100, 5, 4), which causes an out of index error as shown above. How to fix this issue ?

@hadikazemi
Copy link

Same issue here ... any solution?

@aelnouby
Copy link
Author

aelnouby commented Feb 6, 2018

Try to change This
W, H = cfg.multi_scale_out_size[size_index]

To that
W, H = cfg.out_size

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

No branches or pull requests

2 participants