【Tensorflow踩过的坑儿】pb转pbtxt

 修改tf_text_graph_mask_rcnn.py文件,下载链接

parser.add_argument('--input', default='F:/tensorflow_object_detection/object_detection_12_29/pd_model/mask_rcnn_inception_v2_coco/frozen_inference_graph.pb', help='Path to frozen TensorFlow graph.')
parser.add_argument('--output', default='F:/tensorflow_object_detection/object_detection_12_29/pd_model/mask_rcnn_inception_v2_coco/mask_rcnn.pbtxt', help='Path to output text graph.')
parser.add_argument('--config', default='F:/tensorflow_object_detection/object_detection_12_29/samples/configs/mask_rcnn_inception_v2_coco.config', help='Path to a *.config file is used for training.')
args = parser.parse_args()

其中:input是转换后的.pb模型,output是输出的.pbtxt文件,config是mask_rcnn_inception_v2_coco.config配置文件

你可能感兴趣的:(机器学习)