matterport / Mask_RCNN

Mask R-CNN for object detection and instance segmentation on Keras and TensorFlow
Other
24.68k stars 11.7k forks source link

Why is validation step slower than training? #770

Open zungam opened 6 years ago

zungam commented 6 years ago

I am training on a dataset of 19 images. Also, I am doing validation on 17 images. Time training 19 images = 30 seconds. Time validating 17 images = 200 seconds. Why is this happening? Domains is completly similar.

Each image has about 100 masks. Yes, its alot. Maskrcnn is probably not made to handle so many, but I am trying to fix just that.

I see that during validation, it spend alot of time computing overlaps, its a bottleneck. But I dont understand why during training it does not consider this to be a bottle neck, why?

artisvirat commented 6 years ago

Hey Zungam, Can you please explain in detail how you converted your dataset into coco format? Much Appreciated Thanks

zungam commented 6 years ago

I recomend following this tutorial https://engineering.matterport.com/splash-of-color-instance-segmentation-with-mask-r-cnn-and-tensorflow-7c761e238b46