forked from Vladkryvoruchko/PSPNet-Keras-tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added current result images
- Loading branch information
Showing
9 changed files
with
82 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,46 @@ | ||
# Keras implementation of [PSPNet(caffe)](https://github.com/hszhao/PSPNet) | ||
|
||
Implemented Architecture of pyramid scene parsing network in Keras | ||
Implemented Architecture of Pyramid Scene Parsing Network in Keras. | ||
|
||
Converted trained weights needed to run the network. | ||
Converted trained weights are needed to run the network. | ||
|
||
Weights of the original caffemodel can be converted with weight_converter.py as follows: | ||
|
||
Download converted weights here: | ||
[link:pspnet50_ade20k.npy](https://www.dropbox.com/s/ms8afun494dlh1t/pspnet50_ade20k.npy?dl=0) | ||
|
||
And place in directory with pspnet50_ade20k.npy | ||
|
||
Weights from caffemodel were converted by, weight_converter.py. The usage of this file is | ||
```bash | ||
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" | ||
Running this needs the compiled original PSPNet caffe code and pycaffe. | ||
Already converted weights can be downloaded here: | ||
|
||
[pspnet50_ade20k.npy](https://www.dropbox.com/s/ms8afun494dlh1t/pspnet50_ade20k.npy?dl=0) | ||
[pspnet101_cityscapes.npy](https://www.dropbox.com/s/b21j6hi6qql90l0/pspnet101_cityscapes.npy?dl=0) | ||
[pspnet101_voc2012.npy](https://www.dropbox.com/s/xkjmghsbn6sfj9k/pspnet101_voc2012.npy?dl=0) | ||
|
||
weights should be placed in the directory with pspnet.py | ||
|
||
The interpolation layer is implemented as custom layer "Interp" | ||
|
||
## Important | ||
|
||
Results Keras: | ||
 | ||
|
||
 | ||
 | ||
 | ||
 | ||
 | ||
|
||
## Pycaffe result | ||
 | ||
## Dependencies: | ||
1. Tensorflow | ||
2. Keras | ||
3. numpy | ||
4. pycaffe(PSPNet)(optional) | ||
4. pycaffe(PSPNet)(optional for converting the weights) | ||
|
||
|
||
## Usage: | ||
## Usage: | ||
|
||
```bash | ||
python pspnet.py --input-path INPUT_PATH --output-path OUTPUT_PATH | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters