2021-12-13 15:31:05 +08:00
|
|
|
# Install PaddleClas
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2021-12-21 19:23:29 +08:00
|
|
|
## Catalogue
|
2021-12-13 15:31:05 +08:00
|
|
|
|
|
|
|
* [1. Clone PaddleClas source code](#1)
|
|
|
|
* [2. Install requirements](#2)
|
|
|
|
|
|
|
|
<a name='1'></a>
|
|
|
|
|
|
|
|
### 1. Clone PaddleClas source code
|
|
|
|
|
|
|
|
```shell
|
|
|
|
git clone https://github.com/PaddlePaddle/PaddleClas.git -b develop
|
|
|
|
```
|
|
|
|
|
|
|
|
If it is too slow for you to download from github, you can download PaddleClas from gitee. The command is as follows.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
git clone https://gitee.com/paddlepaddle/PaddleClas.git -b develop
|
|
|
|
```
|
|
|
|
|
|
|
|
<a name='2'></a>
|
|
|
|
|
|
|
|
## 2. Install requirements
|
|
|
|
|
|
|
|
PaddleClas dependencies are listed in file `requirements.txt`, you can use the following command to install the dependencies.
|
|
|
|
|
|
|
|
```
|
|
|
|
pip install --upgrade -r requirements.txt -i https://mirror.baidu.com/pypi/simple
|
|
|
|
```
|