Skip to content

wcy940418/PSPNet-tf-keras

Repository files navigation

Keras implementation of PSPNet(caffe)

Implemented Architecture of pyramid scene parsing network in Keras

Converted trained weights needed to run the network.

Download converted weights here: link:pspnet.hd5

And place in directory with pspnet50_ade20k.npy

Weights from caffemodel were converted by, weight_converter.py. The usage of this file is

python weight_converter.py <path to .prototxt> <path to .caffemodel>

Running this need to compile the original PSPNet caffe code and pycaffe.

Interpolation layer is implemented in code as custom layer "Interp"

Important

Results Keras: Original

New

Annotations

Dependencies:

  1. Tensorflow
  2. Keras
  3. numpy
  4. pycaffe(PSPNet)(optional)

Usage:

python pspnet.py --input-path INPUT_PATH --output-path OUTPUT_PATH --load_weight pspnet.hd5

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages