From 29f9399cb600a393fcfcf9cb9f29a103c574846c Mon Sep 17 00:00:00 2001 From: lorenzkautzsch <62888627+lorenzkautzsch@users.noreply.github.com> Date: Fri, 11 Sep 2026 11:01:04 +0200 Subject: [PATCH] Update in ipt.py (Explanation from perturbed images) Previously, the perturbed images were only used in metric score calculation, however localisation metrics for example do not consider the input image, but only the reference mask and the attribution. Therefore, the IPT only assesses the stability of the considered explanation methods. According to the paper, the explanations are regenerated on the perturbed images. --- metaquantus/perturbation_tests/ipt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metaquantus/perturbation_tests/ipt.py b/metaquantus/perturbation_tests/ipt.py index 692dada..d99d33c 100644 --- a/metaquantus/perturbation_tests/ipt.py +++ b/metaquantus/perturbation_tests/ipt.py @@ -153,7 +153,7 @@ def __call__( # Generate explanations based on predictions. a_batch_preds = generate_explanations( model=model, - x_batch=x_batch, + x_batch=x_batch_perturbed, y_batch=y_batch, explain_func=explain_func, explain_func_kwargs=explain_func_kwargs,