2
$\begingroup$

I am using tensorflow object detection API to train my own custom dataset and I am preparing annotations for the same. I see from the config file of my pre trained ssd inception net, the size of the image is reduced to 300 x 300 during training. My doubt is whether the resize would now change the position of my object according to annotation? I mean now the xmin, ymin width and height of the bouding box would be different since it resized. should i annotate on the resized images(resize them myslef before training?) or original one that i give to training?

$\endgroup$
2
$\begingroup$

My doubt is whether the resize would now change the position of my object according to annotation?

Yes, it will.

should i annotate on the resized images(resize them myslef before training?)

No, you should annotate at the original size.

You solve this by applying the corresponding transformations on your bounding boxas well. So if you resize your image, you rescale your bounding box. This allows you to expand to different image augmentations without redoing annotations for all of them.

I recommend you to chose a library that has to ability to apply transformations on both images and their bounding boxes. I use albumentations but there are others such as imaug.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.