ashutosh1919 / ashutosh1919/explainable-cnn

x_cnn = CNNExplainer(model, imagenet_class_labels) not working

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
234
Forks
33
PR merge metrics
No merged PRs in 30d

Description

i tried your library but it is giving error in line x_cnn = CNNExplainer(model, imagenet_class_labels)
the pkl file used is https://drive.google.com/file/d/14DPoXNCWqb8vr4AeqRVAcDzrPKlAQnpS/view?usp=sharing
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
----> 1 x_cnn = CNNExplainer(model, imagenet_class_labels)
2 # from explainable_cnn import CNNExplainer
3
4 # # Assuming you have a defaultdict, convert it to a regular dictionary
5 # imagenet_class_labels = dict(your_defaultdict_here)

Contributor guide

Open the contributing guide

Research direction

Reproduce the failing `CNNExplainer(model, imagenet_class_labels)` line using the linked `.pkl` file and capture the complete TypeError, since the issue does not include its message or name a source file or test. Trace the constructor inputs to identify the incompatibility; done means the provided model and ImageNet labels can initialize `CNNExplainer` successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.