当前位置: 首页 > 工具软件 > X2Paddle > 使用案例 >

TensorFlow--PaddlePaddle/X2Paddle

应和悦
2023-12-01
pip install tensorflow-gpu==1.12.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install paddlepaddle-gpu==1.3.0.post97 -i https://pypi.tuna.tsinghua.edu.cn/simple

# 上述安装过程可能会提示protobuf版本问题
# 升级protobuf解决
pip install protobuf --upgrade
Requirement already satisfied: setuptools in ./anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (from protobuf==3.1->paddlepaddle-gpu==1.3.0.post97) (41.0.1)
ERROR: tensorflow-gpu 1.12.0 has requirement protobuf>=3.6.1, but you'll have protobuf 3.1.0 which is incompatible.
ERROR: tensorboard 1.12.2 has requirement protobuf>=3.4.0, but you'll have protobuf 3.1.0 which is incompatible.
Installing collected packages: decorator, kiwisolver, cycler, pyparsing, python-dateutil, pytz, matplotlib, requests, funcsigs, scipy, nltk, graphviz, rarfile, recordio, pyyaml, opencv-python, protobuf, Pillow, paddlepaddle-gpu
  Found existing installation: protobuf 3.8.0
    Uninstalling protobuf-3.8.0:
      Successfully uninstalled protobuf-3.8.0
Successfully installed Pillow-6.0.0 cycler-0.10.0 decorator-4.4.0 funcsigs-1.0.2 graphviz-0.11 kiwisolver-1.1.0 matplotlib-2.2.3 nltk-3.4.3 opencv-python-4.1.0.25 paddlepaddle-gpu-1.3.0.post97 protobuf-3.1.0 pyparsing-2.4.0 python-dateutil-2.8.0 pytz-2019.1 pyyaml-5.1.1 rarfile-3.0 recordio-0.1.7 requests-2.9.2 scipy-1.3.0
pip install protobuf --upgrade
Collecting protobuf
  Using cached https://files.pythonhosted.org/packages/d2/fb/29de8d08967f0cce1bb10b39846d836b0f3bf6776ddc36aed7c73498ca7e/protobuf-3.8.0-cp36-cp36m-manylinux1_x86_64.whl
Requirement already satisfied, skipping upgrade: six>=1.9 in ./anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (from protobuf) (1.12.0)
Requirement already satisfied, skipping upgrade: setuptools in ./anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (from protobuf) (41.0.1)
ERROR: paddlepaddle-gpu 1.3.0.post97 has requirement protobuf==3.1, but you'll have protobuf 3.8.0 which is incompatible.
Installing collected packages: protobuf
  Found existing installation: protobuf 3.1.0
    Uninstalling protobuf-3.1.0:
      Successfully uninstalled protobuf-3.1.0
Successfully installed protobuf-3.8.0
(tensorflow2Paddle) boyun@boyun:~/software/X2Paddle-master$ ./commit-prepare.sh 
Requirement already satisfied: pre-commit in /home/boyun/anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (1.17.0)
Requirement already satisfied: aspy.yaml in /home/boyun/anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (from pre-commit) (1.3.0)
Requirement already satisfied: pyyaml in /home/boyun/anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (from pre-commit) (5.1.1)
Requirement already satisfied: toml in /home/boyun/anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (from pre-commit) (0.10.0)
Requirement already satisfied: importlib-metadata in /home/boyun/anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (from pre-commit) (0.18)
Requirement already satisfied: cfgv>=2.0.0 in /home/boyun/anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (from pre-commit) (2.0.0)
Requirement already satisfied: six in /home/boyun/anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (from pre-commit) (1.12.0)
Requirement already satisfied: virtualenv>=15.2 in /home/boyun/anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (from pre-commit) (16.6.1)
Requirement already satisfied: importlib-resources; python_version < "3.7" in /home/boyun/anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (from pre-commit) (1.0.2)
Requirement already satisfied: nodeenv>=0.11.1 in /home/boyun/anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (from pre-commit) (1.3.3)
Requirement already satisfied: identify>=1.0.0 in /home/boyun/anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (from pre-commit) (1.4.5)
Requirement already satisfied: zipp>=0.5 in /home/boyun/anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (from importlib-metadata->pre-commit) (0.5.1)
Requirement already satisfied: yapf in /home/boyun/anaconda3/envs/tensorflow2Paddle/lib/python3.6/site-packages (0.27.0)
An error has occurred: FatalError: git failed. Is it installed, and are you in a Git repository directory?
Check the log at /home/boyun/.cache/pre-commit/pre-commit.log

An error has occurred: FatalError: git failed. Is it installed, and are you in a Git repository directory?
Check the log at /home/boyun/.cache/pre-commit/pre-commit.log

不知为何会报错

但是不管,我们先继续

2.下载预训练模型

 

 类似资料: