models icon indicating copy to clipboard operation
models copied to clipboard

Cannot run exported graph on cloud instance for tensorflow object detection API trained on Cloud ML Engine

Open jashshopin opened this issue 8 years ago • 2 comments

We have trained an object detection model using Cloud ML Engine by following the documentation mentioned here.

After training we have exported the graph and then we are trying to visualise the results using the Frozen Inference Graph as mentioned in the notebook.

We are able to see the results on our local systems but when we try to run it on a cloud server e.g. EC2 instance we run into the following error:

InvalidArgumentError: NodeDef mentions attr 'index_type' not in Op<name=Fill; signature=dims:int32, value:T -> output:T; attr=T:type>; NodeDef: MultipleGridAnchorGenerator/Meshgrid/ExpandedShape/ones = Fill[T=DT_INT32, index_type=DT_INT32, _device="/job:localhost/replica:0/task:0/device:CPU:0"](MultipleGridAnchorGenerator/Meshgrid/ExpandedShape/Reshape, Postprocessor/BatchMultiClassNonMaxSuppression/map/TensorArrayUnstack_1/range/delta). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).
	 [[Node: MultipleGridAnchorGenerator/Meshgrid/ExpandedShape/ones = Fill[T=DT_INT32, index_type=DT_INT32, _device="/job:localhost/replica:0/task:0/device:CPU:0"](MultipleGridAnchorGenerator/Meshgrid/ExpandedShape/Reshape, Postprocessor/BatchMultiClassNonMaxSuppression/map/TensorArrayUnstack_1/range/delta)]]

Any help would be greatly appreciated.

jashshopin avatar Apr 24 '18 17:04 jashshopin

Thanks for reaching out! We'd recommend starting with stackoverflow (e.g. https://stackoverflow.com/tags/tensorflow) to work on debugging this. If debugging on stackoverflow points towards a specific bug, please feel do let us know and we will tackle it.

Best, Victor

bitfort avatar Apr 27 '18 16:04 bitfort

I have the same problem with tf 1.9.0 and tensorflow serving 1.7.0 in docker.

yijun-li-20 avatar Jul 19 '18 16:07 yijun-li-20