tf1提取网络中所有的名称
tensor_name_list = [tensor.name for tensor in tf.get_default_graph().as_graph_def().node]
for i in tensor_name_list:
print(i)
获取网络输出的特征图feature
out_tensor= sess.graph.get_operation_by_name('ssd300/conv5/conv5_3/Relu').outputs[0]
out_t = sess.run(out_tensor, feed_dict={image_input : np_image, shape_input : np_image.shape[:-1]})
print(out_t.shape)