Skip to content

Fix the OFT/BOFT bugs when using new LyCORIS implementation#14973

Merged
AUTOMATIC1111 merged 4 commits intodevfrom
Fix-new-oft-boft
Feb 26, 2024
Merged

Fix the OFT/BOFT bugs when using new LyCORIS implementation#14973
AUTOMATIC1111 merged 4 commits intodevfrom
Fix-new-oft-boft

Conversation

@KohakuBlueleaf
Copy link
Copy Markdown
Collaborator

Checklist:


if self.is_kohya:
if not self.is_R:
block_Q = oft_blocks - oft_blocks.transpose(1, 2) # ensure skew-symmetric orthogonal matrix
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KohakuBlueleaf I used 2.1.0.post3 to train a new boft and diag-oft
boft got an error during inference
56M0QF 3B{W$IZR~9I%YMG3

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KohakuBlueleaf I used 2.1.0.post3 to train a new boft and diag-oft boft got an error during inference 56M0QF 3B{W$IZR~9I%YMG3

Got it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KohakuBlueleaf I used 2.1.0.post3 to train a new boft and diag-oft boft got an error during inference 56M0QF 3B{W$IZR~9I%YMG3

Try new Commit

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks , boft looks like work,
And I found that diag-oft needs to specify "constrain" in training, otherwise it doesn’t take effect.
Is it a bug?
xyz_grid-0000-528576219

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks , boft looks like work, And I found that diag-oft needs to specify "constrain" in training, otherwise it doesn’t take effect. Is it a bug? xyz_grid-0000-528576219

It is bug

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Exist-c fixed

Copy link
Copy Markdown

@Enferlain Enferlain Feb 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed the same thing with my diag-oft so went to find if anything has been updated, but after pulling the changes there is an error about 'MultiHeadAttention' object has no attribute 'weight'

send help pls image

edit just don't train TE, works fine

@AUTOMATIC1111 AUTOMATIC1111 merged commit 900419e into dev Feb 26, 2024
@AUTOMATIC1111 AUTOMATIC1111 deleted the Fix-new-oft-boft branch February 26, 2024 04:12
AUTOMATIC1111 added a commit that referenced this pull request Feb 26, 2024
Fix the OFT/BOFT bugs when using new LyCORIS implementation
@pawel665j pawel665j mentioned this pull request Apr 16, 2024
ruchej pushed a commit to ruchej/stable-diffusion-webui that referenced this pull request Sep 30, 2024
…-boft

Fix the OFT/BOFT bugs when using new LyCORIS implementation
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.

4 participants