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

show() and export() give different images #50

Open
HTalNachmani opened this issue Mar 25, 2024 · 0 comments
Open

show() and export() give different images #50

HTalNachmani opened this issue Mar 25, 2024 · 0 comments

Comments

@HTalNachmani
Copy link

HTalNachmani commented Mar 25, 2024

I am working on visualising a custom model with Lucent, and need to save the images for my research. When setting save_image and show_inline to true in the render_vis function, I get different results:

  • Save_image saves a gaussian noisy image
    image
  • show_inline displays a nice feature visualisation
    image

Has anyone encountered this problem too, and how did you fix it?

Edit: for now, what I have done is take the code from Lucid (saving.py and associated files). If you then use the save function like the following, it saves the image, albeit a bit differently than the one being displayed by lucent:

save(rendered_image[-1], "image.png)

The export function from lucent still does not save the images properly though

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

1 participant