aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-07 09:57:12 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-07 09:57:12 +0000
commit5e12c23a67034a73cd3d9af5c6b7c194e0862e66 (patch)
tree5b86d4e4bf095ccf4127e223024144eb015059e3 /modules
parent6a9b33c848281cb02f38764e4f91ef767f5e3edd (diff)
downloadstable-diffusion-webui-gfx803-5e12c23a67034a73cd3d9af5c6b7c194e0862e66.tar.gz
stable-diffusion-webui-gfx803-5e12c23a67034a73cd3d9af5c6b7c194e0862e66.tar.bz2
stable-diffusion-webui-gfx803-5e12c23a67034a73cd3d9af5c6b7c194e0862e66.zip
clarification for settings; another comment about copied files
Diffstat (limited to 'modules')
-rw-r--r--modules/codeformer/codeformer_arch.py2
-rw-r--r--modules/codeformer/vqgan_arch.py2
-rw-r--r--modules/shared.py2
3 files changed, 5 insertions, 1 deletions
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):