Skip to content

Pre-Softmax Analysis #5

@albermax

Description

@albermax

Hi Luisa,

I try to create visualizations for the pre-softmax activations. My understanding from the documentation and issue 4 is that I only need to change in line blobnames = ["prob"] to blobnames =["loss3/classifier"] (for Googlenet). Unfortunately this leads an "empty" visualization:

Pre-Softmax:
n02488291_1177jpg_langur_winsize10_condsampl_numsampl10_paddsize2_googlenet
n02917067_1599jpg_bullet train_winsize10_condsampl_numsampl10_paddsize2_googlenet
n01855672_8202jpg_goose_winsize10_condsampl_numsampl10_paddsize2_googlenet

compared to Post-Softmax:
n02488291_1177jpg_langur_winsize10_condsampl_numsampl10_paddsize2_googlenet
n02917067_1599jpg_bullet_train_winsize10_condsampl_numsampl10_paddsize2_googlenet
n01855672_8202jpg_goose_winsize10_condsampl_numsampl10_paddsize2_googlenet

Do I do something wrong?
One thing I noticed is:

/home/bbdc/alber/tmp/zintgraf/DeepVis-PredDiff2/prediction_difference_analysis.py:222: RuntimeWarning: invalid value encountered in log2
oddsTarVal = np.log2(tarVal_laplace/(1-tarVal_laplace))
/home/bbdc/alber/tmp/zintgraf/DeepVis-PredDiff2/prediction_difference_analysis.py:223: RuntimeWarning: invalid value encountered in log2
oddsAvgP = np.log2(avgP_laplace/(1-avgP_laplace))

A further questions regarding my understanding of the code/algorithm. The algorithm shows which parts of an image increase or lower the activation of a neuron, e.g., an output neuron for class c and in that case the the visualization indicates what speaks for and against a class. Where in the code is the neuron selected?
At line 125 for the sensitivity analysis the neuron with the largest activation in the pre-softmax activation is selected. Is there something similar for the prediction difference analysis? To me target_func in line 98 considers whole layers?

Thank you!
Cheers,
Max

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions