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

How to compare a custom CNN model (and not only resnet) #78

Closed
tushar-semwal opened this issue Jun 20, 2020 · 2 comments
Closed

How to compare a custom CNN model (and not only resnet) #78

tushar-semwal opened this issue Jun 20, 2020 · 2 comments

Comments

@tushar-semwal
Copy link

tushar-semwal commented Jun 20, 2020

Is your feature request related to a problem? Please describe.
I would like to compare two simple vanilla CNN models trained on different datasets. How much changes do I need to do in the current code.

Describe the solution you'd like
Comparing two simple vanilla CNN models trained on different datasets (e.g., MNIST and SVHN)

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@shuaitang
Copy link
Contributor

Hi Tushar,

Thanks for your question!

The only function you need to change is forward_with_gradient_hooks. One can replace this function with the forward function in a customised neural network, and add a gradient hook to the feature map which one would like to compute the gradient map with respect to.

Let us know if you need more information.

@tushar-semwal
Copy link
Author

Hi Shuai,

I have sent you a google colab on my changes in the code. I am not sure if the results are correct. Please have a look. Thanks.

@adamian adamian closed this as completed Jul 5, 2020
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

3 participants