CNN-baded visibility metric which estimate visibile differences between two images.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

CNN visibility metric

CNN-baded visibility metric which estimate visibile differences between two images. Please find more information here:


The metric was implemented using python (v 3.5.2) and Tensorflow (v 1.4.0) library. Additionally, numpy and openCV libraries need to be installed.

Preapring metric

To run the metric, please proceed with following steps:

  1. Clone or download and unpack the repository.
  2. Download the network blob from:
  3. Unpack file to repository root directory.
  4. Done! The directory structure should look like this:
├── .git
└── NetworkModel
    ├── checkpoint
    ├── model.ckpt-2400000.index
    └── model.ckpt-2400000.meta


Only a python interface of our metric is provided. The interface takes reference and distorted images as inputs and returns a visibility map. The visibility map values correspond to probability of detection by population, where higher value means the more likly detection.

The interface supports both, PNG and JPG, images as inputs. To get the visibility map, run:

python -r referenceImage.{png|jpg} -t distortedImage.{png|jpg}

It is also possible to run metric using more files at the same time. If the corresponding reference and distorted images have the same names and are located in two sepatare directories run:

python -r referenceDirectory/* -t distortedDirectory/*

The metric will autmatically pair images and process all of them. It is highly recommended to process more than one image same time, since libraries import and network loading processes take significant amount of time.

By default, the results will be saved in 'vismaps' directory, which is created automatically and located in metric root directory. To direct the output to the custom directory use the third argument as shown below:

The tool can also produce a heatmap of differences between images. The heatmap will be output as a PNM image. To produce one, run:

python -r referenceDirectory/* -t distortedDirectory/* -d customDirectoryName