Skip to content

Commit fee2d0a

Browse files
committed
init apex
1 parent 3f8f602 commit fee2d0a

File tree

22 files changed

+15879
-15193
lines changed

22 files changed

+15879
-15193
lines changed

README.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
1-
# Pytorch-segmentation-toolbox [DOC](https://weiyc.github.io/assets/pdf/toolbox.pdf)
1+
# Pytorch-segmentation-toolbox Pytorch-1.1 [DOC](https://weiyc.github.io/assets/pdf/toolbox.pdf)
22
Pytorch code for semantic segmentation. This is a minimal code to run PSPnet and Deeplabv3 on Cityscape dataset.
33
Shortly afterwards, the code will be reviewed and reorganized for convenience.
44

5-
**The new version toolbox is released on branch [Pytorch-1.1](https://github.com/speedinghzl/pytorch-segmentation-toolbox/tree/pytorch-1.1) which supports Pytorch 1.0 or later and distributed multiprocessing training and testing**
6-
75
### Highlights of Our Implementations
86
- Synchronous BN
97
- Fewness of Training Time
108
- Better Reproduced Performance
119

12-
### Requirements
13-
14-
To install PyTorch==0.4.0, please refer to https://github.com/pytorch/pytorch#installation.
10+
### Requirements && Install
11+
Python 3.7
1512

16-
4 x 12g GPUs (e.g. TITAN XP)
13+
4 x 12g GPUs (e.g. TITAN XP)
1714

18-
Python 3.6
15+
```bash
16+
# Install **Pytorch-1.1**
17+
$ conda install pytorch torchvision cudatoolkit=9.0 -c pytorch
1918

20-
### Compiling
19+
# Install **Apex**
20+
$ git clone https://github.com/NVIDIA/apex
21+
$ cd apex
22+
$ pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
2123

22-
Some parts of InPlace-ABN have a native CUDA implementation, which must be compiled with the following commands:
23-
```bash
24-
cd libs
25-
sh build.sh
26-
python build.py
27-
```
28-
The `build.sh` script assumes that the `nvcc` compiler is available in the current system search path.
29-
The CUDA kernels are compiled for `sm_50`, `sm_52` and `sm_61` by default.
30-
To change this (_e.g._ if you are using a Kepler GPU), please edit the `CUDA_GENCODE` variable in `build.sh`.
24+
# Install **Inplace-ABN**
25+
$ git clone https://github.com/mapillary/inplace_abn.git
26+
$ cd inplace_abn
27+
$ python setup.py install
28+
```
3129

3230
### Dataset and pretrained model
3331

@@ -37,7 +35,7 @@ Please download MIT imagenet pretrained [resnet101-imagenet.pth](http://scenepar
3735

3836
### Training and Evaluation
3937
```bash
40-
./run_local.sh YOUR_CS_PATH
38+
./run_local.sh YOUR_CS_PATH [pspnet|deeplabv3] 40000 769,769 0
4139
```
4240

4341
### Benefits
161 Bytes
Binary file not shown.
10.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)