From 31f5e707a67eb68dfe05c42323f7bf9541549b4c Mon Sep 17 00:00:00 2001 From: Haoming Date: Tue, 5 Aug 2025 09:47:40 +0800 Subject: [PATCH] option - face --- modules/shared_options.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/shared_options.py b/modules/shared_options.py index e5f9137b..d1b111ef 100644 --- a/modules/shared_options.py +++ b/modules/shared_options.py @@ -132,12 +132,12 @@ options_templates.update( options_templates.update( options_section( - ("face-restoration", "Face restoration", "postprocessing"), + ("face-restoration", "Face Restoration", "postprocessing"), { - "face_restoration": OptionInfo(False, "Restore faces", infotext="Face restoration").info("will use a third-party model on generation result to reconstruct faces"), - "face_restoration_model": OptionInfo("CodeFormer", "Face restoration model", gr.Radio, lambda: {"choices": [x.name() for x in shared.face_restorers]}), - "code_former_weight": OptionInfo(0.5, "CodeFormer weight", gr.Slider, {"minimum": 0, "maximum": 1, "step": 0.01}).info("0 = maximum effect; 1 = minimum effect"), - "face_restoration_unload": OptionInfo(False, "Move face restoration model from VRAM into RAM after processing"), + "face_restoration": OptionInfo(False, "Restore Faces", infotext="Face restoration").info("after each generation, process the face(s) with a 3rd-party model"), + "face_restoration_model": OptionInfo("CodeFormer", "Face Restoration Model", gr.Radio, lambda: {"choices": [x.name() for x in shared.face_restorers]}), + "code_former_weight": OptionInfo(0.5, "CodeFormer Strength", gr.Slider, {"minimum": 0, "maximum": 1, "step": 0.05}).info("0 = max effect; 1 = min effect"), + "face_restoration_unload": OptionInfo(False, "Move the model to CPU after restoration"), }, ) )