You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, is there any code for interpretation to inference, for example, given a single photo, its classification results and top concepts related? The interpretability of the model is achieved by obtaining a set of concepts for each image. Is there specific implementation code available? Is it the method demonstrated in Figure 7 of the paper, where the weights corresponding to concepts in the fully connected (fc) layer are selected?
Thanks a lot!
The text was updated successfully, but these errors were encountered:
We didn't have a script for single photo inference, but it should be very easy to write, you just need to initialize the model from checkpoint like this, and following pytorch-lightning's doc to call the forward function of the model to get the logits on all classes, then do the argmax to make the prediction.
For getting class2concepts association from the weight matrix, we have a function in the model here.
hi, is there any code for interpretation to inference, for example, given a single photo, its classification results and top concepts related? The interpretability of the model is achieved by obtaining a set of concepts for each image. Is there specific implementation code available? Is it the method demonstrated in Figure 7 of the paper, where the weights corresponding to concepts in the fully connected (fc) layer are selected?
Thanks a lot!
The text was updated successfully, but these errors were encountered: