Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hi,I have a question about your paper?Could you give me some tips? #7

Closed
gogo03 opened this issue Nov 13, 2019 · 2 comments
Closed

Comments

@gogo03
Copy link

gogo03 commented Nov 13, 2019

First,thank you very much,You have done a very good job.
I don't unstand the following content in your paper
Figure 4: Magnitude of feature activations, sorted by descending value, and averaged over all test samples. A standard ResNet18 is compared with a ResNet18 trained with cutout at three different depths.

could your give me some tips how do you generate these figures?
and I don't know the means of the abscissa and ordinate values.
I need you help.thank you.

@TDeVries
Copy link
Collaborator

Hello, I've attached an old and messy script that I think was used to create the plots from the paper. You'll have to change the file extension from .txt back to .py if you want to use it.

In summary, we take the maximum value from each feature map, sort the values in the channel dimension, calculate the average across the batch dimension, and then sort again across channels.

visualize_activations.txt

@gogo03
Copy link
Author

gogo03 commented Nov 13, 2019

thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants