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

add support for noisegrad #51

Closed
Mayukhdeb opened this issue Jan 19, 2022 · 2 comments
Closed

add support for noisegrad #51

Mayukhdeb opened this issue Jan 19, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@Mayukhdeb
Copy link
Owner

The paper can be found here: https://arxiv.org/pdf/2106.10185.pdf
The core idea is to add noise to the weights on each iteration, in proportion to the weights variance in each layer.

It can be added in as an argument in the render() method:

image_param = dreamy_boi.render(
    layers = [model.Mixed_5b],
    use_noisegrad = True
)
@Mayukhdeb Mayukhdeb added the enhancement New feature or request label Jan 19, 2022
@Mayukhdeb
Copy link
Owner Author

The process is formally described below ⬇️ :
Screenshot from 2022-01-22 11-49-06

@Mayukhdeb
Copy link
Owner Author

Fast Noisegrad:
The idea is just to add multiplicative noise to the model weights on each optimisation iteration -- but each time to the original model weights. Thus not stacking up any noise.

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

No branches or pull requests

1 participant