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
bfbca310
Commit
bfbca310
authored
Jul 05, 2024
by
Kohaku-Blueleaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
possible fix of wrong scale
https://github.com/comfyanonymous/ComfyUI/pull/3922
parent
a30b19dd
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 @
bfbca310
...
@@ -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