This project is using pipenv
to manage and organize the libraries. Before being up and running, please make sure to have pipenv
in your system and do the following:
pipenv shell
pipenv install
from feature_extraction.CAMs import CAM
from utils.visualization import CAMFeatureMaps
feature_maps = CAMFeatureMaps(CAM)
feature_maps.load(extracting_model,extracting_module,targeting_layer)
mask = feature_maps.show(X_test[0], None)
feature_maps.map_activation_to_input(mask)