-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add implementation of LyCORIS LoKr (KronA-like adapter) for SD&SDXL models #978
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
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
41a71e3
Initial commit for LoKr implementation
kovalexal 1762d10
Merged 'main' into 'lokr'
kovalexal 0f60893
Added current implementation of LoKr
kovalexal e7d6e23
Fixed setting requires_grad for lokr modules
kovalexal bb45764
Updated initialization of LoKr adapter weights
kovalexal 0c33d8c
Updated docstrings for LoKr params
kovalexal 84b890b
Removed unneccessary comments
kovalexal fd4a754
Modified sd dreambooth script to be able to train LoRA, LoHa, LoKr ad…
kovalexal ddfae52
Updated conversion script to incorporate LoKr
kovalexal 7526aa2
Added simple tests for LoKr adapter
kovalexal fd5daad
Merge branch 'main' into lokr
kovalexal 8dc5e98
Modified 'merged' property
kovalexal c1cef38
Removed duplicated comments
kovalexal ad525e4
Replaced wrong keys for LoKr
kovalexal ba45881
Refactored LoHaModel and LoKrModel
kovalexal 2401bf1
Refactored LoHaModel and LoKrModel again
kovalexal 1fad986
Refactored LoHaLayer and LoKrLayer a bit
kovalexal 39e87ce
Removed unnecessary comments
kovalexal 4171c64
Addressed comments on _available_adapters property
kovalexal b24bdbf
Replaced te with text_encoder
kovalexal d8f2a83
Apply suggestions from code review
kovalexal 6465597
Changed exception type raised when creating adapter for unsupported l…
kovalexal a63d249
Added additional tests for use_effective_conv2d/decompose_both/decomp…
kovalexal 2b70fc0
Removed classmethod
kovalexal 30a5a85
Merge branch 'main' into lokr
kovalexal 3033a75
Addressed conversion script review comments
kovalexal 299de88
Replaced factorization docstring
kovalexal d518728
LyCORIS -> Lycoris
kovalexal c9a8457
Merged 'main' into 'lokr'
kovalexal 63aba4e
Updated README to include LoKr adapter
kovalexal 6700baf
Addressed some code review comments
kovalexal fa6b522
Addressed some code review comments
kovalexal e76182f
Addressed some code review comments
kovalexal 25077b2
Updated check_target_modules docstring, increased test coverage
kovalexal 9f05024
Added delete_adapter method for LoKr and LoHa
kovalexal f6e7335
Fixed typo in delete_adapter
kovalexal 69ae74c
Provide default value for
kovalexal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.