Open zbarry opened 5 months ago
Hi! Thanks for giving YOGO a go! I just have a phone right now so it'll be difficult for me to debug. Maybe this can be fixed w some cast before that draw command? But something tells me that something else is up.
I'll be able to properly address this in about a week, or maybe @i-jey can take a look?
Thanks
Hi @zbarry, starting to dig into this now. Out of curiosity, what are the dimensions of the images you're using?
My images are 512x512 - bounding boxes are originally based on pixel locations of cells before conversion to the normalized coordinates. The precision of the resulting floating point values is definitely overkill for the original image size.
@zbarry , can you tell us more about the system you're running? OverflowError should only relate to integer size and whether you're on a 32-bit or 64-bit OS. I don't know enough about torch is doing things under the hood, but if they are converting your floats to integer math it makes sense that you'd get an overflow if you specify too many sigfigs. On our end we usually have 11, which is also vastly overkill.
also looking at this. I have a hunch it is a result of the bit-ness of the OS or something else. Note that we want to fix this s.t. the precision doesn't matter, many tools output normalized coords just by writing float(coord)
. It would be bad to have the user reduce the number of digits
@Axel-Jacobsen I definitely agree, it was more of a diagnostic question.
It's a google cloud deep learning VM on 64 bit architecture running 64 bit python in a pretty standard environment. I'm not sure there's anything particularly weird about the general env itself rather than there maybe being a bug w.r.t. particular package versions I'm using. I've attached the output of a conda env export
for the package versions I'm using (renamed .yml extension so github would accept it).
Hi! Thanks for putting together this awesome tool. I wanted to flag this for you, as I encountered it when creating a new dataset:
When your coordinates have too many decimal points, you get this error when drawing the yogo predictions:
In this case, my labels looked like:
0 0.05694444291293621 0.04537036921828985 0.037962961941957474 0.037962960079312325
When I truncated them to just 5 decimal points, this issue went away.