Skip to content

[Feat]: Support Lora Weight#38

Open
kimx3966 wants to merge 1 commit into
showlab:mainfrom
kimx3966:add-lora-weight
Open

[Feat]: Support Lora Weight#38
kimx3966 wants to merge 1 commit into
showlab:mainfrom
kimx3966:add-lora-weight

Conversation

@kimx3966

Copy link
Copy Markdown

What does this PR do?

This PR takes the lora weight values and scales the learned weights of lora. The reason these weight values are needed is that some LoRA models require weight values lower than 1 to ensure the images do not break and are properly rendered. Adjusting the adapter_condition_scale value was not a solution.

@TomLucidor

TomLucidor commented May 2, 2025

Copy link
Copy Markdown

What other stuff do you think needs to be added to X-Adapter? I am suspect they might not be updating this again

@kimx3966

Copy link
Copy Markdown
Author

I also think my PR might not get merged at this point. Other than that, I don't think I have anything additional to add yet. I included it because, in many cases, lowering the LoRA weight slightly results in images that look better and don't break.

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

Successfully merging this pull request may close these issues.

2 participants