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

[Community] Hypernetworks #1140

Open
dblunk88 opened this issue Nov 4, 2022 · 15 comments
Open

[Community] Hypernetworks #1140

dblunk88 opened this issue Nov 4, 2022 · 15 comments

Comments

@dblunk88
Copy link
Contributor

dblunk88 commented Nov 4, 2022

Is your feature request related to a problem? Please describe.
Support for hypernetworks since they seem to yield great results. An example can be seen here:
https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/master/modules/hypernetworks/hypernetwork.py

info: AUTOMATIC1111/stable-diffusion-webui#2670

Describe the solution you'd like
A diffusers hypernetwork implementation that is compatible with Automatic's implementation

Describe alternatives you've considered
Switching back and forth between different repos, but a one-stop shop is preferred.

@WASasquatch
Copy link

This is a really cool feature, and would be awesome in diffusers.

@patrickvonplaten
Copy link
Contributor

Very much agree - we should definitely add this. In general there are multiple features that come out recently that require to modify the attentions for each layer - maybe we could support all of them in one go:

@patrickvonplaten
Copy link
Contributor

@patil-suraj maybe if you already have a good idea here on how to implement hypernetworks you could share here?

@aungkhant0911
Copy link

@patrickvonplaten unrelated: would be nice to have Google's Prompt2Prompt feature. https://prompt-to-prompt.github.io/

@patil-suraj
Copy link
Contributor

This one also https://github.com/google/prompt-to-prompt

It would cool to have these, haven't looked deeply into it, will assign some time for it soon and reply here :)

@patrickvonplaten
Copy link
Contributor

@aungkhant0911 - we're also always happy about community contributions :-)

@duongna21
Copy link
Contributor

duongna21 commented Nov 11, 2022

Happy to work on prompt-to-prompt. Maybe next week.

21/11 update: Sorry, I haven't made time for this yet. Will try in the next 1-2 weeks.
14/12 update: Sorry, still can't assign a time for this.

@dblunk88
Copy link
Contributor Author

Any updates on this and/or any help needed?

@patrickvonplaten
Copy link
Contributor

Hey @dblunk88,

In short we would really like to support prompt-to-prompt! So far we haven't found time to dive into it.

The best approach IMO would be to add the functionality of the paper: https://github.com/google/prompt-to-prompt/tree/main by providing a nice API to change the attention_weights and then creating a prompt-to-prompt example pipeline. Would this be interesting for you maybe?

We'll eventually look into this, but I can currently not say whether it will take 1 or 4 weeks - it depends also a bit on how much the community asks for it

@jinwonkim93
Copy link
Contributor

Hi @patrickvonplaten . Are you planning to implement only prompt-to-prompt or general method for modifying layer? I think https://github.com/cloneofsimo/paint-with-words-sd is also very cool feature and does not require much of modification.

@patrickvonplaten
Copy link
Contributor

Yes in a first step the plan was to look into prompt-to-prompt. I'm a bit behind on this. Hoping to get to it by next week

@dblunk88
Copy link
Contributor Author

any updates on this?

@patil-suraj
Copy link
Contributor

Not yet. We recently added a feature to be able to easily tweak cross attention (cf #1639), which would make it easy to implement. Let us know if anyone from the community is interested in this, happy to help :)

@patrickvonplaten
Copy link
Contributor

We're currently adding LoRA: #1884 which should be very similar to how hypernetworks are done.

@github-actions github-actions bot added the stale Issues that haven't received updates label Jan 27, 2023
@huggingface huggingface deleted a comment from github-actions bot Jan 27, 2023
@patrickvonplaten patrickvonplaten added the good first issue Good for newcomers label Jan 31, 2023
@patrickvonplaten patrickvonplaten changed the title Hypernetworks [Community] Hypernetworks Jan 31, 2023
@patrickvonplaten patrickvonplaten added Good second issue and removed good first issue Good for newcomers labels Mar 18, 2023
@ballenvironment
Copy link

Please add this, and hypernetwork training as well!

@github-actions github-actions bot removed the stale Issues that haven't received updates label Mar 2, 2024
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

8 participants