Skip to content

Commit a86d924

Browse files
authored
update installation in readme (#184)
1 parent eba6f78 commit a86d924

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,28 @@
4242

4343
## Installation
4444

45+
PLSC provides two usage methods: one is as an external third-party library, and users can use `import plsc` in their own projects; the other is to develop and use it locally based on this repository.
46+
47+
**Note**: As the PaddlePaddle version continues to iterate, PLSC v2.4 adapts to PaddlePaddle v2.4, and there may be API mismatches in higher versions of PaddlePaddle.
48+
49+
### Install plsc as a third-party library
50+
51+
```shell
52+
pip install plsc==2.4
53+
```
54+
55+
### Install plsc locally
56+
57+
```shell
58+
git clone https://github.com/PaddlePaddle/PLSC.git
59+
cd /path/to/PLSC/
60+
61+
git checkout -b release/2.4 remotes/origin/release/2.4
62+
63+
# [optional] pip install -r requirements.txt
64+
python setup.py develop
65+
```
66+
4567
See [Installation instructions](./tutorials/get_started/installation.md).
4668

4769

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ requests
88
prettytable
99
tqdm
1010
visualdl
11-
scikit-learn==0.23.2
12-
opencv-python==4.4.0.46
11+
scikit-learn>=0.23.2
12+
opencv-python>=4.2.0.32
1313
onnxruntime-gpu==1.10.0
1414
onnx==1.9.0
1515
paddle2onnx==0.9.4

tutorials/get_started/installation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ git clone https://github.com/PaddlePaddle/Paddle.git
1515

1616
cd /path/to/Paddle/
1717

18+
git checkout -b release/2.4 remotes/origin/release/2.4
19+
1820
mkdir build && cd build
1921

2022
cmake .. -DWITH_TESTING=OFF -DWITH_GPU=ON -DWITH_GOLANG=OFF -DWITH_STYLE_CHECK=ON -DCMAKE_INSTALL_PREFIX=$PWD/output -DWITH_DISTRIBUTE=ON -DCMAKE_BUILD_TYPE=Release -DPY_VERSION=3.7

0 commit comments

Comments
 (0)