-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: Perpendicular add #46
base: dev
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
I'll open a new PR when I find a good candidate for negative weights clipping. |
@Clybius (apologies if I got the wrong handle!) came up with a more appropriate approach for the projection part of the formulae, which I just implemented. It seems to work much better on models that have a low cosine similarity from one another. On models that are similar, it resembles a weighted sum. I updated the formulae above in the OP to reflect this. I tested rebasin with add perpendicular difference and it works really well. Since plain add difference doesn't work with rebasin, I think this method might be a valuable replacement in some cases. It also doesn't need weights clipping to crank alpha up to 1. More tests needed with dj cats I guess. |
Perpendicular add:
model A: https://civitai.com/models/81359?modelVersionId=86337
model B: https://civitai.com/models/108882/ink-prt
model C: SD1.5 base model from runwayml
alpha: 1.0
[image]