Iammuratc / satellitepy

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

completed rescaling patches #192

Closed Iammuratc closed 5 months ago

Iammuratc commented 5 months ago

Rescaling patches is added. The images are resized and the relevant tasks ('obboxes', 'hbboxes', 'masks', 'attributes_fuselage_length', 'attributes_wings_wing-span') are also adjusted according to the rescaling factor. 'obboxes' and 'hbboxes' are tested. The others are not.

Iammuratc commented 5 months ago

For example, if you want to scale an image with the spatial resolution 0.8 to 0.5, in tools.data.create_patches, rescaling should be 1.6 (=0.8/0.5).