Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
2a4f8935
Unverified
Commit
2a4f8935
authored
Feb 19, 2023
by
AUTOMATIC1111
Committed by
GitHub
Feb 19, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7727 from missionfloyd/face-restore-setting
Fix face restorers setting
parents
fb2354cb
ceb8a4b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
shared.py
modules/shared.py
+1
-1
webui.py
webui.py
+0
-1
No files found.
modules/shared.py
View file @
2a4f8935
...
...
@@ -366,7 +366,7 @@ options_templates.update(options_section(('upscaling', "Upscaling"), {
}))
options_templates
.
update
(
options_section
((
'face-restoration'
,
"Face restoration"
),
{
"face_restoration_model"
:
OptionInfo
(
None
,
"Face restoration model"
,
gr
.
Radio
,
lambda
:
{
"choices"
:
[
x
.
name
()
for
x
in
face_restorers
]}),
"face_restoration_model"
:
OptionInfo
(
"CodeFormer"
,
"Face restoration model"
,
gr
.
Radio
,
lambda
:
{
"choices"
:
[
x
.
name
()
for
x
in
face_restorers
]}),
"code_former_weight"
:
OptionInfo
(
0.5
,
"CodeFormer weight parameter; 0 = maximum effect; 1 = minimum effect"
,
gr
.
Slider
,
{
"minimum"
:
0
,
"maximum"
:
1
,
"step"
:
0.01
}),
"face_restoration_unload"
:
OptionInfo
(
False
,
"Move face restoration model from VRAM into RAM after processing"
),
}))
...
...
webui.py
View file @
2a4f8935
...
...
@@ -98,7 +98,6 @@ def initialize():
modules
.
sd_models
.
setup_model
()
codeformer
.
setup_model
(
cmd_opts
.
codeformer_models_path
)
gfpgan
.
setup_model
(
cmd_opts
.
gfpgan_models_path
)
shared
.
face_restorers
.
append
(
modules
.
face_restoration
.
FaceRestoration
())
modelloader
.
list_builtin_upscalers
()
modules
.
scripts
.
load_scripts
()
...
...
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