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

Anyway to extract the lora weights into diffuser types? #7

Closed
tingxueronghua opened this issue Jan 28, 2025 · 2 comments
Closed

Anyway to extract the lora weights into diffuser types? #7

tingxueronghua opened this issue Jan 28, 2025 · 2 comments

Comments

@tingxueronghua
Copy link

Thanks for your efforts and contributions.

My question is that, it is quite hard to use scepter because all the modules are deeply encapsulated and it is really hard to modify it without any documents. I really want to find out how to load the model weights by peft.

Is there any suggestions on how to convert it to convenient formats?

@tingxueronghua
Copy link
Author

By the way, it seems that the module names are not aligned with Flux-dev-fill, which makes it hard to convert.

@maochaojie
Copy link
Collaborator

Please refer to function ‘merge_comfyui_lora’ in ‘https://github.com/ali-vilab/ACE_plus/blob/main/modules/flux.py’ to complete the conversion of LoRA weights to the original parameter format. The correspondence between the names of diffusers and Flux-dev-fill weights can be referenced in the merge_diffuser_lora function found in https://github.com/ali-vilab/ACE_plus/blob/main/modules/flux.py. In fact, diffusers are already compatible with models that use different parameter names such as comfyui and blackforest.

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

2 participants