未验证 提交 763a8f2d 编写于 作者: G Guanghua Yu 提交者: GitHub

fix windows python path (#480)

上级 3fa01f10
...@@ -86,14 +86,21 @@ Required python packages are specified in [requirements.txt](https://github.com/ ...@@ -86,14 +86,21 @@ Required python packages are specified in [requirements.txt](https://github.com/
pip install -r requirements.txt pip install -r requirements.txt
``` ```
**Make sure the tests pass:** **Specify the current Python path:**
```shell
# In Linux/Mac
export PYTHONPATH=$PYTHONPATH:.
# In windows
set PYTHONPATH=%PYTHONPATH%;.
``` ```
export PYTHONPATH=`pwd`:$PYTHONPATH
**Make sure the tests pass:**
```shell
python ppdet/modeling/tests/test_architectures.py python ppdet/modeling/tests/test_architectures.py
``` ```
## Datasets ## Datasets
PaddleDetection includes support for [COCO](http://cocodataset.org) and [Pascal VOC](http://host.robots.ox.ac.uk/pascal/VOC/) by default, please follow these instructions to set up the dataset. PaddleDetection includes support for [COCO](http://cocodataset.org) and [Pascal VOC](http://host.robots.ox.ac.uk/pascal/VOC/) by default, please follow these instructions to set up the dataset.
......
...@@ -82,14 +82,21 @@ Python依赖库在[requirements.txt](https://github.com/PaddlePaddle/PaddleDetec ...@@ -82,14 +82,21 @@ Python依赖库在[requirements.txt](https://github.com/PaddlePaddle/PaddleDetec
pip install -r requirements.txt pip install -r requirements.txt
``` ```
**指定当前Python路径:**
```shell
# 在Linux/Mac系统下运行:
export PYTHONPATH=$PYTHONPATH:.
# 在windows系统下运行:
set PYTHONPATH=%PYTHONPATH%;.
```
**确认测试通过:** **确认测试通过:**
``` ```
export PYTHONPATH=`pwd`:$PYTHONPATH
python ppdet/modeling/tests/test_architectures.py python ppdet/modeling/tests/test_architectures.py
``` ```
## 数据集 ## 数据集
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册