diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-23 07:26:00 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-23 07:26:00 +0000 |
commit | d4205e66fa50e6bed4ace11bc2236e834b7c560f (patch) | |
tree | e7f272f117b0b07a653d5c6be4f79d8d0e60030b /modules/shared.py | |
parent | d6fd71f36f33763f3a8d1d98f815e1e6a979e13e (diff) | |
download | stable-diffusion-webui-gfx803-d4205e66fa50e6bed4ace11bc2236e834b7c560f.tar.gz stable-diffusion-webui-gfx803-d4205e66fa50e6bed4ace11bc2236e834b7c560f.tar.bz2 stable-diffusion-webui-gfx803-d4205e66fa50e6bed4ace11bc2236e834b7c560f.zip |
gfpgan: just download the damn model
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/shared.py b/modules/shared.py index f30bef02..39681ed0 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -2,7 +2,6 @@ import sys import argparse
import json
import os
-from glob import glob
import gradio as gr
import tqdm
@@ -22,7 +21,7 @@ parser.add_argument("--config", type=str, default=os.path.join(sd_path, "configs parser.add_argument("--ckpt", type=str, default=sd_model_file, help="path to checkpoint of stable diffusion model; this checkpoint will be added to the list of checkpoints and loaded by default if you don't have a checkpoint selected in settings",)
parser.add_argument("--ckpt-dir", type=str, default=os.path.join(script_path, 'models'), help="path to directory with stable diffusion checkpoints",)
parser.add_argument("--gfpgan-dir", type=str, help="GFPGAN directory", default=('./src/gfpgan' if os.path.exists('./src/gfpgan') else './GFPGAN'))
-parser.add_argument("--gfpgan-model", type=str, help="GFPGAN model file name", default=next(iter(glob('GFPGAN*.pth')), ''))
+parser.add_argument("--gfpgan-model", type=str, help="GFPGAN model file name", default=None)
parser.add_argument("--no-half", action='store_true', help="do not switch the model to 16-bit floats")
parser.add_argument("--no-progressbar-hiding", action='store_true', help="do not hide progressbar in gradio UI (we hide it because it slows down ML if you have hardware acceleration in browser)")
parser.add_argument("--max-batch-count", type=int, default=16, help="maximum batch count value for the UI")
|