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

new explain_image notebook #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

claforte
Copy link

@claforte claforte commented Feb 7, 2023

also:

  • pass latent through run_on_prompt
  • add more scaling options to show_cross_attention, etc.
  • puppy image generated using StableDiffusion 2.1 in DreamStudio
  • need latest pytorch (in requirements.txt) for RTX4090

Screenshot:
image

also:
- pass latent through run_on_prompt
- add more scaling options to show_cross_attention, etc.
- puppy image generated using StableDiffusion 2.1 in DreamStudio
- need latest pytorch (in requirements.txt) for RTX4090
@claforte
Copy link
Author

claforte commented Feb 7, 2023

Hi, I adapted your (very useful!) code into a new notebook to make it easier to visualize the attention maps of an arbitrary image and a specified text prompt. Maybe this can help others too.

@claforte
Copy link
Author

claforte commented Feb 7, 2023

I also verified that the explain.ipynb notebook runs correctly after this change.

@AttendAndExcite
Copy link
Collaborator

Thanks @claforte for the neat visualizations! There are some things we noticed that we want to consider before merging the pull request.

First, the code does not seem to work with the new diffusers version (0.12.1) and we want to make sure our code remains updated with its latest versions.

We also noticed that you updated the torch version, and we want to make sure that there are no compatibility issues with the updated torch version and the other packages.

Finally, our code does not official support Stable Diffusion 2.1 and since the image you provided here is outputted with SD2, we prefer to wait until we officially add support for SD2 and ensure that our code works with the new model.

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

Successfully merging this pull request may close these issues.

2 participants