Skip to content

Commit 327b4a8

Browse files
committed
instruction for code mofication
1 parent 3e56397 commit 327b4a8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

INSTALL.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,16 @@ Just for reference, [Here](https://gist.github.com/hellock/bf23cd7348c727d69d486
6262
a script for setting up mmdetection with conda.
6363

6464
### Notice
65-
You need to rerun `python(3) setup.py install` once you made any modifications to mmdetection.
66-
As alternative approaches, you can also insert following code to the main file
65+
You can run `python(3) setup.py develop` or `pip install -e .` to install mmdetection if you want to make modifications to it frequently.
66+
67+
If there are more than one mmdetection on your machine, and you want to use them alternatively.
68+
Please insert the following code to the main file
6769
```python
68-
import os, sys
69-
sys.path.insert(0, os.path.join(os.getcwd(), '../'))
70+
import os.path as osp
71+
import sys
72+
sys.path.insert(0, osp.join(osp.dirname(osp.abspath(__file__)), '../'))
7073
```
71-
or run following command in the terminal of corresponding folder.
74+
or run the following command in the terminal of corresponding folder.
7275
```shell
7376
export PYTHONPATH=`pwd`:$PYTHONPATH
7477
```

0 commit comments

Comments
 (0)