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
15bb8e80
Commit
15bb8e80
authored
Sep 07, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
labeling updates according to anon's feedback
parent
8dcd3e57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/shared.py
modules/shared.py
+1
-1
modules/ui.py
modules/ui.py
+1
-1
No files found.
modules/shared.py
View file @
15bb8e80
...
...
@@ -121,7 +121,7 @@ class Options:
"show_progressbar"
:
OptionInfo
(
True
,
"Show progressbar"
),
"show_progress_every_n_steps"
:
OptionInfo
(
0
,
"Show show image creation progress every N sampling steps. Set 0 to disable."
,
gr
.
Slider
,
{
"minimum"
:
0
,
"maximum"
:
32
,
"step"
:
1
}),
"face_restoration_model"
:
OptionInfo
(
None
,
"Face restoration model"
,
gr
.
Radio
,
lambda
:
{
"choices"
:
[
x
.
name
()
for
x
in
face_restorers
]}),
"code_former_weight"
:
OptionInfo
(
0.5
,
"CodeFormer weight parameter; 0 =
fix face completely; 1 = do nothing
"
,
gr
.
Slider
,
{
"minimum"
:
0
,
"maximum"
:
1
,
"step"
:
0.01
}),
"code_former_weight"
:
OptionInfo
(
0.5
,
"CodeFormer weight parameter; 0 =
maximum effect; 1 = minimum effect
"
,
gr
.
Slider
,
{
"minimum"
:
0
,
"maximum"
:
1
,
"step"
:
0.01
}),
}
def
__init__
(
self
):
...
...
modules/ui.py
View file @
15bb8e80
...
...
@@ -526,7 +526,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
with
gr
.
Group
():
codeformer_visibility
=
gr
.
Slider
(
minimum
=
0.0
,
maximum
=
1.0
,
step
=
0.001
,
label
=
"CodeFormer visibility"
,
value
=
0
,
interactive
=
modules
.
codeformer_model
.
have_codeformer
)
codeformer_weight
=
gr
.
Slider
(
minimum
=
0.0
,
maximum
=
1.0
,
step
=
0.001
,
label
=
"CodeFormer weight (0
=max, 1=none
)"
,
value
=
0
,
interactive
=
modules
.
codeformer_model
.
have_codeformer
)
codeformer_weight
=
gr
.
Slider
(
minimum
=
0.0
,
maximum
=
1.0
,
step
=
0.001
,
label
=
"CodeFormer weight (0
= maximum effect, 1 = minimum effect
)"
,
value
=
0
,
interactive
=
modules
.
codeformer_model
.
have_codeformer
)
submit
=
gr
.
Button
(
'Generate'
,
elem_id
=
"extras_generate"
,
variant
=
'primary'
)
...
...
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