mvoelk / ssd_detectors

SSD-based object and text detection with Keras, SSD, DSOD, TextBoxes, SegLink, TextBoxes++, CRNN
MIT License
302 stars 85 forks source link

Location of padding operation #22

Closed eggcracker closed 5 years ago

eggcracker commented 5 years ago

Thanks for sharing your code. I have a comment regarding the location of the padding operation in ssd_data.py. https://github.com/mvoelk/ssd_detectors/blob/3329c2e182f782bc36bd41e5b070483a378e7bd5/ssd_data.py#L538

I think it should be done before resizing the input image, not after, as we would like to preserve the aspect ratio of the original image. So, I think this version of the code has no effect on preserving the aspect ratio.

mvoelk commented 5 years ago

Fixed, thanks :)