#10705·Paddle-Lite

由 TF1.x 导出的 pb 模型无法通过 x2paddle 转换为可运行的 paddlelite 模型

作者: combohehe创建于 2026年2月12日更新于 2026年2月12日

conda activate paddlelite37 pio uninstall requests -y pip install requests pip uninstall paddlepaddle -y

Download PaddlePaddle CPU 2.5.2 wheel

pip install paddlepaddle==2.5.2 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html Python -V pip uninstall protobuf -y pip install protobuf==3.20.3 pip uninstall tensorflow -y pip install tensorflow==1.15.5

pip install paddlelite==2.12

pip uninstall x2paddle -y pip install x2paddle pio uninstall six -y pip install six x2paddle --framework=tensorflow --model=hed_lite_model.pb --save_dir=pd_model_lite will cause an error: Python>=3.8 is required. However, even after using 3.8, the error still occurs: ERROR: No matching distribution found for tensorflow==1.15.5

内容来源: PaddlePaddle/Paddle-Lite