houqb / SalMetric

C++ code (with python wrapper) for measuring the F-measure and MAE scores for salient object detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SalMetric

This is the evaluation code for DSS

Requirements

OpenCV (version 3)
Cyphon

Install

For python user

python setup.py build_ext --inplace

or

python setup.py install

For C++ user

mkdir build && cd build
cmake .. && make

Usage

For app user

./build/salmetric dataset_list [num_thread]

dataset_list should have the following format:
1_sal.png 1.png
2_sal.png 2.png
3_sal.png 3.png
...

For python user

import salmetric
salmetric.do_evalution(num_thread, sal_lst, gt_lst)

sal_lst: a list that stores all the saliency maps
gt_lst : a list that stores all the annotation maps

About

C++ code (with python wrapper) for measuring the F-measure and MAE scores for salient object detection


Languages

Language:C++ 57.9%Language:Jupyter Notebook 24.6%Language:Python 11.8%Language:CMake 5.7%