lucent icon indicating copy to clipboard operation
lucent copied to clipboard

show() and export() give different images

Open HTalNachmani opened this issue 2 years ago • 0 comments

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

HTalNachmani avatar Mar 25 '24 08:03 HTalNachmani