Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#7727 from missionfloyd/face-restore-…
Browse files Browse the repository at this point in the history
…setting

Fix face restorers setting
  • Loading branch information
AUTOMATIC1111 authored Feb 19, 2023
2 parents fb2354c + ceb8a4b commit 2a4f893
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion modules/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def list_samplers():
}))

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"),
}))
Expand Down
1 change: 0 additions & 1 deletion webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2a4f893

Please sign in to comment.