I was recommended to use LabelImg to create annotation labels for YOLOv2. However, the annotations look something like this:

4 0.517500 0.597500 0.915000 0.735000 (classes and 4 coordinates x,y,w,h)

Now, the labels for YOLOv2 are also unit-scaled and between 0 and 1, but they are calculated for each grid cell, and only the grid cell which contains the center of the object is used to calculate the loss. However, the above annotation doesn't include information about the grid cells.

So, how could the above annotation be converted to the true labels?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.