Skip to content

Attend and Excite #2196

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

Closed
2 tasks done
patrickvonplaten opened this issue Feb 1, 2023 · 10 comments
Closed
2 tasks done

Attend and Excite #2196

patrickvonplaten opened this issue Feb 1, 2023 · 10 comments
Assignees

Comments

@patrickvonplaten
Copy link
Contributor

Model/Pipeline/Scheduler description

Based on Prompt-2-Prompt, Attend and Excite allows to generate better composite images by tweaking the text embeddings.

Code available: https://github.com/AttendAndExcite/Attend-and-Excite

Open source status

  • The model implementation is available
  • The model weights are available (Only relevant if addition is not a scheduler).

Provide useful links for the implementation

@AttendAndExcite

@patrickvonplaten
Copy link
Contributor Author

Related to: #2121

@evinpinar
Copy link
Contributor

I've created a pipeline for this method, following the author's implementation closely, and also using the attention processor, in half precision. See here: yuval-alaluf/Attend-and-Excite#11

Please let me know how to contribute to diffusers repo with this pipeline, also if any modifications are needed.

@patrickvonplaten
Copy link
Contributor Author

Super cool @evinpinar :-)

Could you maybe open a PR on diffusers? @yiyixuxu would you be interested in reviewing it maybe? :-)

@adhikjoshi
Copy link

This is awesome, looking forward to quick integration.

Will this support current schedulers and "custom_pipeline" ?

@evinpinar
Copy link
Contributor

Super cool @evinpinar :-)

Could you maybe open a PR on diffusers? @yiyixuxu would you be interested in reviewing it maybe? :-)

Now I started a PR here, but as I'm quite busy nowadays, open to collaborating with anyone!

@yiyixuxu
Copy link
Collaborator

yiyixuxu commented Feb 7, 2023

Super cool @evinpinar :-)
Could you maybe open a PR on diffusers? @yiyixuxu would you be interested in reviewing it maybe? :-)

Now I started a PR here, but as I'm quite busy nowadays, open to collaborating with anyone!

Thank you! will take a look soon:)

@hamzafar
Copy link

hamzafar commented Feb 8, 2023

I was wondering, Is it possible to integrate the attend and excite code with Hugging Face diffusers? I trained a stable diffusion model with the Hugging Face diffusers GitHub code and used the saved model with attend and excite, which worked flawlessly. Thought of, sharing the Colab notebook for the community showing the read model trained with Hugging Face diffusers with attend and excite: https://colab.research.google.com/drive/1xpgXZf0SxCxVw77GcgLxBr6XC8gItFMh?usp=sharing

@patrickvonplaten
Copy link
Contributor Author

That's great @hamzafar ! Thanks for sharing :-)

@adhikjoshi
Copy link

As i can see i can use pipeline for text2img,

Any example of how can i use with img2img as well? If it's possible at all?

@a-r-r-o-w
Copy link
Member

As SD attend-and-excite exists as a pipeline now, but also very outdated, marking this as closed. Thanks for looking into it when you did Patrick! It was super nice to learn and understand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants