I\'m learning about MobileNet thesedays and i\'m new to tensorflow. After training with ssd-mobilenet model,i got checkpoint file , .meta file , graph.pbtxt file and so on.
Just for those who have the problem like wu ruize and CoupDeMistral:
But I got this error:
"The name 'image_tensor:0' refers to a Tensor which does not exist. The operation, 'image_tensor', does not exist in the graph."
You need to name your tensor first before using detection_graph.get_tensor_by_name.
For example, something like this:
accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.float32),name='accuracy')
Notice that the tensor above has been named as 'accuracy'.
After that you can enjoy the restore operation by:
detection_graph.get_tensor_by_name('accuracy:0')
Have fun now :P!