Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

VOC for image with no objects is fatal #13

Open
mikefrandsen opened this issue Feb 12, 2019 · 3 comments
Open

VOC for image with no objects is fatal #13

mikefrandsen opened this issue Feb 12, 2019 · 3 comments

Comments

@mikefrandsen
Copy link

mikefrandsen commented Feb 12, 2019

I don't think it should be a requirement that every image has 1 or more labelled objects.

Code works fine (and outputs a 0-length YOLO output) simply by changing Format.py from returning error condition to printing a warning:

                 if len(objects) == 0:
-                    return False, "number object zero"
+                    #return False, "number object zero"
+                    print("WARNING: no objects in file: {}".format(filename))
@AbodSinan
Copy link

@mikefrandsen Thanks so much, that solved an issue I was having

@ssaru
Copy link
Owner

ssaru commented Jun 28, 2019

thank for your comment.
I will reflect that

@ghost
Copy link

ghost commented Apr 8, 2020

Thanks so much, that helps me a lot

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

No branches or pull requests

3 participants