Total nodes: 0 ;ValueError: 'target_vars' should be a list of Variable.
Created by: iceriver97
自己训练的模型,图像分割,deeplabv3; 以下是转换信息: paddle.version = 1.8.3 Now translating model from tensorflow to paddle. Total nodes: 0
Done! d:\anaconda\envs\py35-pp\lib\site-packages\paddle\fluid\executor.py:1093: UserWarning: There are no operators in the program to be executed. If you pass Program manually, please use fluid.program_guard to ensure the current Program is being used. warnings.warn(error_info) Traceback (most recent call last): File "d:\anaconda\envs\py35-pp\lib\site-packages\x2paddle\core\op_mapper.py", line 193, in save_inference_model params_filename=None) File "d:\anaconda\envs\py35-pp\lib\site-packages\paddle\fluid\io.py", line 1177, in save_inference_model raise ValueError("'target_vars' should be a list of Variable.") ValueError: 'target_vars' should be a list of Variable.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "d:\anaconda\envs\py35-pp\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "d:\anaconda\envs\py35-pp\lib\runpy.py", line 85, in run_code exec(code, run_globals) File "D:\Anaconda\envs\py35-pp\Scripts\x2paddle.exe_main.py", line 9, in File "d:\anaconda\envs\py35-pp\lib\site-packages\x2paddle\convert.py", line 253, in main define_input_shape, params_merge) File "d:\anaconda\envs\py35-pp\lib\site-packages\x2paddle\convert.py", line 145, in tf2paddle mapper.save_inference_model(save_dir, params_merge) File "d:\anaconda\envs\py35-pp\lib\site-packages\x2paddle\core\op_mapper.py", line 197, in save_inference_model .format(py_code_dir)) Exception: Paddle code was saved in ./pd_model\model_with_code/model.py, but seems there's wrong exist, please check model.py manually.