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

SD 2.x model merge broken (or just not implemented yet) #38

Open
gxmikvid opened this issue Jul 23, 2023 · 3 comments
Open

SD 2.x model merge broken (or just not implemented yet) #38

gxmikvid opened this issue Jul 23, 2023 · 3 comments

Comments

@gxmikvid
Copy link

First of all, great work, used this back then to screw around with models.

Got back into SD, tried to merge 2.x models, got this error:
KeyError: 'cond_stage_model.model.transformer.text_model.embeddings.position_ids'
Any 2.x model does this!
Removed ema as per this issue.

Tried some of the fixes proposed. This was the closest to my problem, proposed solutions did nothing, i assumed the code was not made to handle SD 2.x.
Perhaps it has a different/no clip model. There was an issue that detailed it but can't find it at the moment.

Are you planning on supporting 2.x models any time soon? There was an issue that asked a similar question but about 1.x-2.x cross merging, and i feel like my request is different enough.

Love this repo. No rush.

@ogkalu2
Copy link
Owner

ogkalu2 commented Jul 30, 2023

@gxmikvid

Hi. Merging 2.x models can be done but it's something I'd have to support in the code first. To be honest, I didn't really have any particular plans to support it since the models seem to be used much less than 1.5 but I'll see what I can do.

@gxmikvid
Copy link
Author

gxmikvid commented Aug 1, 2023

Thank you so much.
Also, I saw your answer to this too late, so my question might have been redundant. Sorry for that, my bad.

@6DammK9
Copy link
Contributor

6DammK9 commented Apr 28, 2024

Write the permutation spec dedicate for the SD2.X will be good.
I may have a try since SD2 is a subset of SDXL, but the layer name is different
Also I need some more trick to detect a SD2.X model.

Edit: PR has been made

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