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
a2f23f9d
Commit
a2f23f9d
authored
Dec 30, 2023
by
Learwin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code Style fixes
parent
bc5ae74c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
extensions-builtin/Lora/ui_extra_networks_lora.py
extensions-builtin/Lora/ui_extra_networks_lora.py
+2
-2
javascript/extraNetworks.js
javascript/extraNetworks.js
+3
-3
modules/upscaler_utils.py
modules/upscaler_utils.py
+1
-1
No files found.
extensions-builtin/Lora/ui_extra_networks_lora.py
View file @
a2f23f9d
...
@@ -52,8 +52,8 @@ class ExtraNetworksPageLora(ui_extra_networks.ExtraNetworksPage):
...
@@ -52,8 +52,8 @@ class ExtraNetworksPageLora(ui_extra_networks.ExtraNetworksPage):
neg_prompt
=
negative_prompt
neg_prompt
=
negative_prompt
if
(
preferred_negative_weight
>
0
):
if
(
preferred_negative_weight
>
0
):
neg_prompt
=
'('
+
negative_prompt
+
':'
+
str
(
preferred_negative_weight
)
+
')'
neg_prompt
=
'('
+
negative_prompt
+
':'
+
str
(
preferred_negative_weight
)
+
')'
item
[
"negative_prompt"
]
=
quote_js
(
neg_prompt
)
item
[
"negative_prompt"
]
=
quote_js
(
neg_prompt
)
sd_version
=
item
[
"user_metadata"
]
.
get
(
"sd version"
)
sd_version
=
item
[
"user_metadata"
]
.
get
(
"sd version"
)
if
sd_version
in
network
.
SdVersion
.
__members__
:
if
sd_version
in
network
.
SdVersion
.
__members__
:
item
[
"sd_version"
]
=
sd_version
item
[
"sd_version"
]
=
sd_version
...
...
javascript/extraNetworks.js
View file @
a2f23f9d
...
@@ -243,11 +243,11 @@ function updatePromptArea(text, textArea, isNeg) {
...
@@ -243,11 +243,11 @@ function updatePromptArea(text, textArea, isNeg) {
function
cardClicked
(
tabname
,
textToAdd
,
textToAddNegative
,
allowNegativePrompt
)
{
function
cardClicked
(
tabname
,
textToAdd
,
textToAddNegative
,
allowNegativePrompt
)
{
if
(
textToAddNegative
.
length
>
0
)
{
if
(
textToAddNegative
.
length
>
0
)
{
updatePromptArea
(
textToAdd
,
gradioApp
().
querySelector
(
"
#
"
+
tabname
+
"
_prompt > label > textarea
"
))
updatePromptArea
(
textToAdd
,
gradioApp
().
querySelector
(
"
#
"
+
tabname
+
"
_prompt > label > textarea
"
))
;
updatePromptArea
(
textToAddNegative
,
gradioApp
().
querySelector
(
"
#
"
+
tabname
+
"
_neg_prompt > label > textarea
"
),
true
)
updatePromptArea
(
textToAddNegative
,
gradioApp
().
querySelector
(
"
#
"
+
tabname
+
"
_neg_prompt > label > textarea
"
),
true
)
;
}
else
{
}
else
{
var
textarea
=
allowNegativePrompt
?
activePromptTextarea
[
tabname
]
:
gradioApp
().
querySelector
(
"
#
"
+
tabname
+
"
_prompt > label > textarea
"
);
var
textarea
=
allowNegativePrompt
?
activePromptTextarea
[
tabname
]
:
gradioApp
().
querySelector
(
"
#
"
+
tabname
+
"
_prompt > label > textarea
"
);
updatePromptArea
(
textToAdd
,
textarea
)
updatePromptArea
(
textToAdd
,
textarea
)
;
}
}
}
}
...
...
modules/upscaler_utils.py
View file @
a2f23f9d
...
@@ -6,7 +6,7 @@ import torch
...
@@ -6,7 +6,7 @@ import torch
import
tqdm
import
tqdm
from
PIL
import
Image
from
PIL
import
Image
from
modules
import
devices
,
images
from
modules
import
images
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
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