Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
372a8e06
Commit
372a8e06
authored
Jul 06, 2024
by
AUTOMATIC1111
Committed by
GitHub
Jul 06, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16151 from AUTOMATIC1111/dora-fix
Possible fix of wrong scale in weight decomposition
parents
b8c36649
bfbca310
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
extensions-builtin/Lora/network.py
extensions-builtin/Lora/network.py
+3
-1
No files found.
extensions-builtin/Lora/network.py
View file @
372a8e06
...
@@ -204,10 +204,12 @@ class NetworkModule:
...
@@ -204,10 +204,12 @@ class NetworkModule:
if
ex_bias
is
not
None
:
if
ex_bias
is
not
None
:
ex_bias
=
ex_bias
*
self
.
multiplier
()
ex_bias
=
ex_bias
*
self
.
multiplier
()
updown
=
updown
*
self
.
calc_scale
()
if
self
.
dora_scale
is
not
None
:
if
self
.
dora_scale
is
not
None
:
updown
=
self
.
apply_weight_decompose
(
updown
,
orig_weight
)
updown
=
self
.
apply_weight_decompose
(
updown
,
orig_weight
)
return
updown
*
self
.
calc_scale
()
*
self
.
multiplier
(),
ex_bias
return
updown
*
self
.
multiplier
(),
ex_bias
def
calc_updown
(
self
,
target
):
def
calc_updown
(
self
,
target
):
raise
NotImplementedError
()
raise
NotImplementedError
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment