aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-08 11:25:47 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-10-08 11:25:47 +0000
commit4999eb2ef9b30e8c42ca7e4a94d4bbffe4d1f015 (patch)
treedbedb75c84751c4111e078b58f6f29ddababb009 /modules/shared.py
parent00117a07efbbe8482add12262a179326541467de (diff)
downloadstable-diffusion-webui-gfx803-4999eb2ef9b30e8c42ca7e4a94d4bbffe4d1f015.tar.gz
stable-diffusion-webui-gfx803-4999eb2ef9b30e8c42ca7e4a94d4bbffe4d1f015.tar.bz2
stable-diffusion-webui-gfx803-4999eb2ef9b30e8c42ca7e4a94d4bbffe4d1f015.zip
do not let user choose his own prompt token count limit
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/shared.py b/modules/shared.py
index ca462628..475d7e52 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -123,8 +123,6 @@ interrogator = modules.interrogate.InterrogateModels("interrogate")
face_restorers = []
-vanilla_max_prompt_tokens = 77
-
def realesrgan_models_names():
import modules.realesrgan_model
@@ -225,7 +223,6 @@ options_templates.update(options_section(('sd', "Stable Diffusion"), {
"use_old_emphasis_implementation": OptionInfo(False, "Use old emphasis implementation. Can be useful to reproduce old seeds."),
"enable_batch_seeds": OptionInfo(True, "Make K-diffusion samplers produce same images in a batch as when making a single image"),
"filter_nsfw": OptionInfo(False, "Filter NSFW content"),
- "max_prompt_tokens": OptionInfo(vanilla_max_prompt_tokens, f"Max prompt token count. Two tokens are reserved for for start and end. Default is {vanilla_max_prompt_tokens}. Setting this to a different value will result in different pictures for same seed.", gr.Number, {"precision": 0}),
"random_artist_categories": OptionInfo([], "Allowed categories for random artists selection when using the Roll button", gr.CheckboxGroup, {"choices": artist_db.categories()}),
}))