Implementations
Included with this toolkit are a number of implementations for the interfaces described in the previous section. Unlike the interfaces, which declare operation and use case, implementations provide variations on how to satisfy the interface-defined use case, varying trade-offs, or results implications.
Image Perturbation
Implementation of MC-RISE perturbation mask generation |
|
RISE MIT License (https://github.com/eclique/RISE/blob/master/LICENSE): |
|
This module defines the SlidingRadial class, which implements a sliding radial perturbation on input images. |
|
This module defines the SlidingWindow class, which implements a sliding window perturbation on input images. |
Heatmap Generation
Implementation of DRISE scorer |
|
|
Implementation of MC-RISE scorer |
|
Implementation of OcclusionScoring scorer |
Implementation of RISEScoring scorer |
|
|
Implementation of SimilarityScoring scorer |
|
Implementation of SimilarityScoring scorer |
End-to-End Saliency Generation
Image Classification
|
Implementation of MC-RISE saliency stack |
|
This module defines the PerturbationOcclusion class, which implements a generator composed of modular perturbation and occlusion-based algorithms |
Encapsulation of the perturbation-occlusion method using specifically the RISE implementations of the component algorithms. |
|
|
Encapsulation of the perturbation-occlusion method using specifically sliding windows and the occlusion-scoring method. |
Image Similarity
|
This module defines the PerturbationOcclusion class, which implements a generator composed of modular perturbation and occlusion-based algorithms |
This module defines SBSMStack, which implements the perturbation-occlusion method using specifically the sliding window image perturbation and similarity scoring algorithms to generate similarity-based visual saliency maps |
Object Detection
|
This module defines the PerturbationOcclusion class, which implements a generator composed of modular perturbation and occlusion-based algorithms |
This module defines _BaseDRISE, DRISEStack, and RandomGridStack. |
Saliency Metric
Provides an implementation of the SaliencyMetric interface for computing entropy over a saliency map using scipy.stats.entropy. |