Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
9287770c
Commit
9287770c
authored
Mar 25, 2023
by
comfyanonymous
Browse files
Allow negative Lora strengths.
parent
e651be55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
nodes.py
nodes.py
+2
-2
No files found.
nodes.py
View file @
9287770c
...
@@ -241,8 +241,8 @@ class LoraLoader:
...
@@ -241,8 +241,8 @@ class LoraLoader:
return
{
"required"
:
{
"model"
:
(
"MODEL"
,),
return
{
"required"
:
{
"model"
:
(
"MODEL"
,),
"clip"
:
(
"CLIP"
,
),
"clip"
:
(
"CLIP"
,
),
"lora_name"
:
(
folder_paths
.
get_filename_list
(
"loras"
),
),
"lora_name"
:
(
folder_paths
.
get_filename_list
(
"loras"
),
),
"strength_model"
:
(
"FLOAT"
,
{
"default"
:
1.0
,
"min"
:
0.0
,
"max"
:
10.0
,
"step"
:
0.01
}),
"strength_model"
:
(
"FLOAT"
,
{
"default"
:
1.0
,
"min"
:
-
1
0.0
,
"max"
:
10.0
,
"step"
:
0.01
}),
"strength_clip"
:
(
"FLOAT"
,
{
"default"
:
1.0
,
"min"
:
0.0
,
"max"
:
10.0
,
"step"
:
0.01
}),
"strength_clip"
:
(
"FLOAT"
,
{
"default"
:
1.0
,
"min"
:
-
1
0.0
,
"max"
:
10.0
,
"step"
:
0.01
}),
}}
}}
RETURN_TYPES
=
(
"MODEL"
,
"CLIP"
)
RETURN_TYPES
=
(
"MODEL"
,
"CLIP"
)
FUNCTION
=
"load_lora"
FUNCTION
=
"load_lora"
...
...
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