suinleelab / vit-shapley

27 stars 6 forks source link

Update Benchmarking Notebook & Refactor Training Pipeline #12

Open JensRahnfeld opened 4 months ago

JensRahnfeld commented 4 months ago

As a token of gratitude for the great work, some updates to help people reading & running the code 🤗.

Below a list of all the changes. In addition to the committed changes, there were some potential changes that i could imagine improving the experimental setup. These are left as unchecked boxes. I separated changes to the training pipeline and the benchmarking notebook into 2 branches, just in case.

Training Pipeline

Benchmarking Notebook

Sanity Check

To make sure, refactoring the training pipeline didn't mess up the semantics, i re-ran the experiments on the Pets dataset. Here are the learning curves i got:

image image image

To save compute, i refrained from retraining on ImageNette and re-used the weights i got from back then. In both cases, evaluating Insertion, Deletion & Faithfulness did reproduce the results of the paper for vit_base_patch16_224.

Please let me know if you like it or have additional suggestions.