Iammuratc / satellitepy

Fine-grained object detection in satellite images
MIT License
2 stars 0 forks source link

dbboxes added #198

Closed Iammuratc closed 5 months ago

Iammuratc commented 5 months ago

LGTM otherwise, I can take care of the FR24 obboxes in a separate PR

Let's get done with the dbboxes calculations in this branch.

LNdr28 commented 5 months ago

I fixed the obboxes for fr24. I went for a very easy approach that may not be the most elegant but only needed one additional line of code and works perfect. I get the BBox with the diamand_corners, which creates the crooked obboxes. From them, I get the params, which I use to get a new BBox. Because the corners are calculated with the params, the resulting obboxes are perfect rectangles. I checked it both visually and trained a model (only with the patches of a single image), and now the loss looks good again.