Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 2.37 KB

install.md

File metadata and controls

65 lines (48 loc) · 2.37 KB

English|简体中文

Instruction of Installation

Environment Requirements

  • PaddlePaddle 2.1 (Get API support)
  • OS: 64-bit(Going to run 64-bit programs)
  • Python 3(3.5.1+/3.6/3.7/3.8/3.9),64-bit version
  • pip/pip3(9.0.1+),64-bit version (Get environment support)
  • CUDA >= 10.1 (NVIDIA GPU Parallel Computing Framework)
  • cuDNN >= 7.6 (NVIDIA GPU acceleration library)

Instruction of Installation

1. Install PaddlePaddle

# CUDA10.1
python -m pip install paddlepaddle-gpu==2.1.0.post101 -i https://paddlepaddle.org.cn/whl/mkl/stable.html

# CPU
python -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple

-For quick installation of more CUDA versions or environments, please refer to PaddlePaddle Quick Installation Document -For more installation methods such as conda or source code compilation and installation methods, please refer to PaddlePaddle Installation Document

Please make sure that your PaddlePaddle is installed successfully and the version is not lower than the required version. Use the following command to verify.

# Confirm that PaddlePaddle is installed successfully in your Python interpreter
>>> import paddle
>>> paddle.utils.run_check()

# Confirm PaddlePaddle version
python -c "import paddle; print(paddle.__version__)"

# If the following prompt appears on the command line, the PaddlePaddle installation is successful.
# PaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now.

2.Install PaddlePaddle Code

git clone https://github.com/PaddlePaddle/PaddleSeg

3.Install PaddleSeg Requirements

cd PaddleSeg
pip install -r requirements.txt

#If a version error occurs during installation, you can try to delete the old version and re-run the script.

4.Confirm Installation

Execute the following command, and the predicted result appears in the PaddleSeg/output folder, it proves that the installation is successful.

python predict.py \
       --config configs/quick_start/bisenet_optic_disc_512x512_1k.yml \
       --model_path https://bj.bcebos.com/paddleseg/dygraph/optic_disc/bisenet_optic_disc_512x512_1k/model.pdparams\
       --image_path docs/images/optic_test_image.jpg \
       --save_dir output/result