Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Image size for training Mask Rcnn #86

Closed
vsd550 opened this issue Jun 14, 2018 · 2 comments
Closed

Image size for training Mask Rcnn #86

vsd550 opened this issue Jun 14, 2018 · 2 comments

Comments

@vsd550
Copy link

vsd550 commented Jun 14, 2018

My image dataset has images of different sizes ranging from 600 x 600 to 3000 x 3000. Does the Mask Rcnn take a fixed size input image i.e. do I need any preprocessing before passing the images for training. I have made the coco-like json file for training with my dataset.
Thanks in advance

@roytseng-tw
Copy link
Owner

The preprocessing about image size is controlled by the flags: TRAIN.SCALES, TRAIN.MAX_SIZE.
An image is resized to make the smaller side as in one of the scale randomly chosen from TRAIN.SCALES, if the resized longer side doesn't exceed TRAIN.MAX_SIZE. Otherwise, image is resized to make the longer side equals to TRAIN.MAX_SIZE.

@vsd550
Copy link
Author

vsd550 commented Jun 27, 2018

Thanks a lot

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants