This is an unofficial implementation of Pyramid Scene Parsing Network (PSPNet) in Chainer.
- Python 3.4.4+
- Chainer 3.0.0b1+
- ChainerMN master@distributed-batch-normalization
pip install git+git://github.com/chainer/chainermn.git@distributed-batch-normalization
- CuPy 2.0.0b1+
- ChainerCV 0.6.0+
- NumPy 1.12.0+
- tqdm 4.11.0+
- Python 3.4.4+
- Chainer 3.0.0b1+
- ChainerCV 0.6.0+
- Matplotlib 2.0.0+
- CuPy 2.0.0b1+
- tqdm 4.11.0+
$ bash download.sh
$ python demo.py -g 0 -m Cityscapes -f aachen_000000_000019_leftImg8bit.png
Caffe is NOT needed to convert .caffemodel
to Chainer model. Use caffe_pb2.py
.
- Python 3.4.4+
- protobuf 3.2.0+
- Chainer 3.0.0b1+
Please download the weights below from the author's repository:
- pspnet50_ADE20K.caffemodel: GoogleDrive
- pspnet101_VOC2012.caffemodel: GoogleDrive
- pspnet101_cityscapes.caffemodel: GoogleDrive
and then put them into weights
directory.
$ python convert.py