TensorFlow的对象检测模型中的image_tensor:0是什么?

时间:2019-08-07 16:04:09

标签: python tensorflow object-detection inference sess.run

我从Tensorflow Zoo下载了预训练的对象检测模型(ssd_mobilenet_v2_coco),我正在开箱即用地进行推断。

在Tensorflow notebook tutorial之后,我看到了:

image_tensor = tf.get_default_graph().get_tensor_by_name('image_tensor:0')

我试图了解这个张量是什么。鉴于我以后使用它来传递要在其上进行推断的图像,它是网络第一层的输入吗?如果网络不是来自标准的Tensorflow Object Detection Zoo,那么应该怎么知道有人这样称呼它呢?有办法检查吗?

我想这个问题对于网络的输出(即“ num_detections”,“ detection_classes”等)也是有效的。

0 个答案:

没有答案
相关问题