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
""" | |
Code to evaluate explanation methods (aka heatmaps/XAI methods) w.r.t. ground truths, as in: | |
Towards Ground Truth Evaluation of Visual Explanations, Osman et al. 2020 | |
https://arxiv.org/pdf/2003.07258.pdf | |
(code by Leila Arras, Fraunhofer HHI - Berlin, Germany) | |
""" | |
from typing import Dict, List | |
import os, json | |
import numpy as np |