models icon indicating copy to clipboard operation
models copied to clipboard

[object_detection] Mask RCNN Conv2D double inference time

Open gustavz opened this issue 8 years ago • 2 comments

System information

  • What is the top-level directory of the model you are using: object_detection
  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes and No
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04)
  • TensorFlow installed from (source or binary): Source
  • TensorFlow version (use command below): 1.7
  • Python version: 2.7
  • Bazel version (if compiling from source): 0.13.0
  • GCC/Compiler version (if compiling from source): gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
  • CUDA/cuDNN version: 9 / 7
  • GPU model and memory: 4GB GTX 1050
  • Exact command to reproduce:

I trained a mask_rcnn model with mobilenet_v1 as backbone (I took the inception_v2 config as templatet). Currently I achieve decent accuracy (around 22mAP compared to 25mAP of Inception) but inference time stayed the same, although the model is less than half the size.

Therefore i created json timeline files for both models timing each operation of the graph. What jumps the eye is the fact that among other ops "SecondStageBoxPredictor_1/Conv/Conv2D" takes more then twice the time for the mobilenet version.

What could be the reason? I dont understand it from the technical and mathematical side. Any hints, thoughts or explanations are highly appreciated.

timeline_mask_rcnn_inceptionVSmobilenet.zip

screenshot from 2018-05-30 11-13-39 screenshot from 2018-05-30 11-13-25

gustavz avatar May 30 '18 09:05 gustavz

@GustavZ Hello. Have you solved issue like this (https://github.com/tensorflow/models/issues/4689) ?

SpiralBeing avatar Jul 04 '18 07:07 SpiralBeing

Hi There, We are checking to see if you still need help on this, as this seems to be considerably old issue. Please update this issue with the latest information, code snippet to reproduce your issue and error you are seeing. If we don't hear from you in the next 7 days, this issue will be closed automatically. If you don't need help on this issue any more, please consider closing this.

tensorflowbutler avatar Jan 29 '20 23:01 tensorflowbutler