使用x2paddle转换mobilenet(tensorflow),报错
Created by: lantuxin
转换命令:x2paddle -f tensorflow -m frozen_inference_graph.pb -s pd_model/ --without_data_format_optimization --define_input_shape 报错情况: Now translating model from tensorflow to paddle. Define shape[now is [-1L, -1L, -1L, 3L]] for input tensor[tensor name: "image_tensor'] Use your keyboard type the shape of input tensor below :) Shape of Input(e.g. None,224,224,3): None,224,224,3 Traceback (most recent call last): File "/usr/local/bin/x2paddle", line 11, in load_entry_point('x2paddle==0.6.0', 'console_scripts', 'x2paddle')() File "/usr/local/lib/python2.7/dist-packages/x2paddle-0.6.0-py2.7.egg/x2paddle/convert.py", line 219, in main define_input_shape, params_merge) File "/usr/local/lib/python2.7/dist-packages/x2paddle-0.6.0-py2.7.egg/x2paddle/convert.py", line 106, in tf2paddle model = TFDecoder(model_path, define_input_shape=define_input_shape) File "/usr/local/lib/python2.7/dist-packages/x2paddle-0.6.0-py2.7.egg/x2paddle/decoder/tf_decoder.py", line 263, in init self.tf_graph.build() File "/usr/local/lib/python2.7/dist-packages/x2paddle-0.6.0-py2.7.egg/x2paddle/decoder/tf_decoder.py", line 123, in build format(in_node, layer_name)) Exception: input[^Preprocessor_map_while_Identity] of node[Preprocessor_map_while_add_y] does not exist in node_map
测试模型及环境配置说明见百度网盘: 链接:https://pan.baidu.com/s/1LTRQdLbGk35KZGL7Mloy_g 提取码:jm0u 复制这段内容后打开百度网盘手机App,操作更方便哦