spnv2 icon indicating copy to clipboard operation
spnv2 copied to clipboard

Inverted height and width in create_anchors

Open giovanni-violo opened this issue 2 months ago • 0 comments

The create_anchors() function assumes image_size=(H, W) while the rest of the code defines it as (W, H). This axis swap leaves part of the image without anchors, causing missing positives and NaN losses. It went unnoticed with the original dataset, where the satellite was always near the center, but appears with datasets covering a wider pose range.

giovanni-violo avatar Oct 26 '25 19:10 giovanni-violo