Skip to content

do ipadapter_face and ipadapter together #45

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

Open
Laidawang opened this issue Sep 8, 2023 · 6 comments
Open

do ipadapter_face and ipadapter together #45

Laidawang opened this issue Sep 8, 2023 · 6 comments

Comments

@Laidawang
Copy link
Contributor

can we try to do ipadapter face and ipadapter together?
maybe like this
hidden_states = hidden_states + self.scale1 * ip_hidden_states + self.scale2 * ip_face_hidden_states

@Laidawang
Copy link
Contributor Author

or maybe a better way this using a class to handle multiple adapters.

@xiaohu2015
Copy link
Collaborator

can we try to do ipadapter face and ipadapter together? maybe like this hidden_states = hidden_states + self.scale1 * ip_hidden_states + self.scale2 * ip_face_hidden_states

I think it maybe work, you can have a try?

@Laidawang
Copy link
Contributor Author

ok,i'll have a try

@Laidawang
Copy link
Contributor Author

image
in this comfy extension https://github.com/cubiq/ComfyUI_IPAdapter_plus/blob/main/IPAdapterPlus.py .He has a similar implementation which I think works well.
style:
image
face:
image
output:
image

@xiaohu2015
Copy link
Collaborator

xiaohu2015 commented Nov 9, 2023

@cubiq it works well

@thibaudart
Copy link

can you share the code to do that without comfyui?

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

3 participants