YOLO predicts a box centre relative to the cell that owns it. A sigmoid keeps the predicted offset between zero and one, so the centre cannot leave its cell, and the offset is converted back to image pixels.
Implement decode_xy(sx, sy, col, row, S, img), returning the box centre in pixels.
Apply the sigmoid to each raw offset, add the cell index, then multiply by the cell size in pixels.
No results yet
Run your code to check it against the examples, or submit to run every test.