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

training with own dataset resize issue #55

Closed pai-dy closed 3 years ago

pai-dy commented 3 years ago

hi, I'm trying to train ssd with COCO dataset using your "SSD_train.ipynb" script.

I have my own image dataset and made annotation as COCO Json format.

My image dataset size is 1920X1080.

If resize 1920X1080 to (512,512) is it okay with annotation?

I mean that would resizing image affect training?

I thought that I have to calculate resize ratio and apply ratio to annotation as well.

mvoelk commented 3 years ago

Ground truth bounding boxes are resized by the preprocessing to the input size (512x512) and prediction is done in range (0,1). You have to resize the boxes by scaling them with the original image size. Just try to understand what the code is doing, it's not that hard ;)