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

get_boxes: exception needed when no object is detected at the particular object threshold given #94

Open
dlusseau opened this issue Jul 1, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dlusseau
Copy link

dlusseau commented Jul 1, 2021

Describe the bug
at the moment if there is no object detected in an image at a particular obj_threshold, then get_boxes throws the following error:

"Error: nm must be NULL or a character vector the same length as 'x'"

this is because the fixed name array given to set_names in clean_boxes is not the same length as the values array (there are no coordinates available for that particular image).
#line 172 of yolo3_predict.R

I suggest subsetting out the 'empty' images between lines 32 and 33 to treat them separately (return "none" label for example?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants