From 5e12c23a67034a73cd3d9af5c6b7c194e0862e66 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Wed, 7 Sep 2022 12:57:12 +0300 Subject: [PATCH] clarification for settings; another comment about copied files --- modules/codeformer/codeformer_arch.py | 2 ++ modules/codeformer/vqgan_arch.py | 2 ++ modules/shared.py | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/codeformer/codeformer_arch.py b/modules/codeformer/codeformer_arch.py index 0eff93dc..11dcc3ee 100644 --- a/modules/codeformer/codeformer_arch.py +++ b/modules/codeformer/codeformer_arch.py @@ -1,3 +1,5 @@ +# this file is copied from CodeFormer repository. Please see comment in modules/codeformer_model.py + import math import numpy as np import torch diff --git a/modules/codeformer/vqgan_arch.py b/modules/codeformer/vqgan_arch.py index f6dfcf4c..c06c590c 100644 --- a/modules/codeformer/vqgan_arch.py +++ b/modules/codeformer/vqgan_arch.py @@ -1,3 +1,5 @@ +# this file is copied from CodeFormer repository. Please see comment in modules/codeformer_model.py + ''' VQGAN code, adapted from the original created by the Unleashing Transformers authors: https://github.com/samb-t/unleashing-transformers/blob/master/models/vqgan.py diff --git a/modules/shared.py b/modules/shared.py index 12082895..a16b0069 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -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", gr.Slider, {"minimum": 0, "maximum": 1, "step": 0.01}), + "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}), } def __init__(self):