-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat(LoRA): support AI Toolkit LoRA for FLUX #8071
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
base: main
Are you sure you want to change the base?
Conversation
|
43e4b2e
to
0ca7a05
Compare
software = json.loads(metadata.get("software", "{}")) | ||
except json.JSONDecodeError: | ||
return False | ||
return software.get("name") == "ai-toolkit" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this might not be what we need, as I have another LoRA here that reports the same metadata 'software': '{"name": "ai-toolkit", "repo": "https://github.com/ostris/ai-toolkit", "version": "0.1.0"}',
but it uses transformer.single_transformer_blocks
keys instead of diffusion_model.single_blocks
keys.
to avoid disrupting already-working LoRA
Summary
https://github.com/ostris/ai-toolkit is "an all in one training suite for diffusion models."
and I guess LoRA saved by it don't look exactly like the ones we support already.
Related Issues / Discussions
QA Instructions
Merge Plan
N/A
Checklist
What's New
copy (if doing a release after this PR)