Generate Saliency maps for Pyramid Feature Attention Network for Saliency Detection, CVPR 2019
The code is written in Python 3.6 using the following libraries:
numpy
tqdm
opencv-python
torch==1.1.0
torchvision==0.3.0
Install the libraries using requirements.txt as:
pip install -r requirements.txt
We use ImageNet dataset.
Download the pre-trained model from Google Drive.
Use the command below to generate and save saliency maps with different thresholds:
python inference.py --save_img --sal_threshold 0.1
Keras implementation : LINK