diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-09 09:15:36 +0300 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-09 09:15:36 +0300 |
commit | 003b60b94e42e21e9213b286b6a51a222db1076a (patch) | |
tree | f3d01347aec0c2fdbc0927a4e3c8a4629f54d165 /modules/shared.py | |
parent | 41434ba3cd228fe9fc533e21302fac410f879f31 (diff) |
add an option to show negative prompt
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index 89e44f3d..280c07ff 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -37,6 +37,8 @@ parser.add_argument("--esrgan-models-path", type=str, help="path to directory wi parser.add_argument("--opt-split-attention", action='store_true', help="enable optimization that reduce vram usage by a lot for about 10%% decrease in performance")
parser.add_argument("--listen", action='store_true', help="launch gradio with 0.0.0.0 as server name, allowing to respond to network requests")
parser.add_argument("--port", type=int, help="launch gradio with given server port, you need root/admin rights for ports < 1024, defaults to 7860 if available", default=None)
+parser.add_argument("--show-negative-prompt", action='store_true', help="enable the field that lets you input negative prompt", default=False)
+
cmd_opts = parser.parse_args()
if torch.has_cuda:
@@ -76,6 +78,7 @@ artist_db = modules.artists.ArtistsDatabase(os.path.join(script_path, 'artists.c face_restorers = []
+
def find_any_font():
fonts = ['/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf']
|