Update cmd_args.py
Browse files- cmd_args.py +22 -2
cmd_args.py
CHANGED
|
@@ -20,8 +20,8 @@ parser.add_argument("--dump-sysinfo", action='store_true', help="launch.py argum
|
|
| 20 |
parser.add_argument("--loglevel", type=str, help="log level; one of: CRITICAL, ERROR, WARNING, INFO, DEBUG", default=None)
|
| 21 |
parser.add_argument("--do-not-download-clip", action='store_true', help="do not download CLIP model even if it's not included in the checkpoint")
|
| 22 |
parser.add_argument("--data-dir", type=normalized_filepath, default=os.path.dirname(os.path.dirname(os.path.realpath(__file__))), help="base path where all user data is stored")
|
| 23 |
-
parser.add_argument("--models-dir", type=normalized_filepath, default=None, help="base path where models are stored; overrides --data-dir")
|
| 24 |
parser.add_argument("--extensions-dir", type=normalized_filepath, default=None, help="base path where extensions are stored; overrides default")
|
|
|
|
| 25 |
parser.add_argument("--config", type=normalized_filepath, default=sd_default_config, help="path to config which constructs model",)
|
| 26 |
parser.add_argument("--ckpt", type=normalized_filepath, default=sd_model_file, help="path to checkpoint of stable diffusion model; if specified, this checkpoint will be added to the list of checkpoints and loaded",)
|
| 27 |
parser.add_argument("--ckpt-dir", type=normalized_filepath, default=None, help="Path to directory with stable diffusion checkpoints")
|
|
@@ -106,4 +106,24 @@ parser.add_argument("--nowebui", action='store_true', help="use api=True to laun
|
|
| 106 |
parser.add_argument("--ui-debug-mode", action='store_true', help="Don't load model to quickly launch UI")
|
| 107 |
parser.add_argument("--device-id", type=str, help="Select the default CUDA device to use (export CUDA_VISIBLE_DEVICES=0,1,etc might be needed before)", default=None)
|
| 108 |
parser.add_argument("--administrator", action='store_true', help="Administrator rights", default=False)
|
| 109 |
-
parser.add_argument
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
parser.add_argument("--loglevel", type=str, help="log level; one of: CRITICAL, ERROR, WARNING, INFO, DEBUG", default=None)
|
| 21 |
parser.add_argument("--do-not-download-clip", action='store_true', help="do not download CLIP model even if it's not included in the checkpoint")
|
| 22 |
parser.add_argument("--data-dir", type=normalized_filepath, default=os.path.dirname(os.path.dirname(os.path.realpath(__file__))), help="base path where all user data is stored")
|
|
|
|
| 23 |
parser.add_argument("--extensions-dir", type=normalized_filepath, default=None, help="base path where extensions are stored; overrides default")
|
| 24 |
+
parser.add_argument("--models-dir", type=normalized_filepath, default=None, help="base path where models are stored; overrides --data-dir")
|
| 25 |
parser.add_argument("--config", type=normalized_filepath, default=sd_default_config, help="path to config which constructs model",)
|
| 26 |
parser.add_argument("--ckpt", type=normalized_filepath, default=sd_model_file, help="path to checkpoint of stable diffusion model; if specified, this checkpoint will be added to the list of checkpoints and loaded",)
|
| 27 |
parser.add_argument("--ckpt-dir", type=normalized_filepath, default=None, help="Path to directory with stable diffusion checkpoints")
|
|
|
|
| 106 |
parser.add_argument("--ui-debug-mode", action='store_true', help="Don't load model to quickly launch UI")
|
| 107 |
parser.add_argument("--device-id", type=str, help="Select the default CUDA device to use (export CUDA_VISIBLE_DEVICES=0,1,etc might be needed before)", default=None)
|
| 108 |
parser.add_argument("--administrator", action='store_true', help="Administrator rights", default=False)
|
| 109 |
+
parser.add_argument("--cors-allow-origins", type=str, help="Allowed CORS origin(s) in the form of a comma-separated list (no spaces)", default=None)
|
| 110 |
+
parser.add_argument("--cors-allow-origins-regex", type=str, help="Allowed CORS origin(s) in the form of a single regular expression", default=None)
|
| 111 |
+
parser.add_argument("--tls-keyfile", type=str, help="Partially enables TLS, requires --tls-certfile to fully function", default=None)
|
| 112 |
+
parser.add_argument("--tls-certfile", type=str, help="Partially enables TLS, requires --tls-keyfile to fully function", default=None)
|
| 113 |
+
parser.add_argument("--disable-tls-verify", action="store_false", help="When passed, enables the use of self-signed certificates.", default=None)
|
| 114 |
+
parser.add_argument("--server-name", type=str, help="Sets hostname of server", default=None)
|
| 115 |
+
parser.add_argument("--gradio-queue", action='store_true', help="does not do anything", default=True)
|
| 116 |
+
parser.add_argument("--no-gradio-queue", action='store_true', help="Disables gradio queue; causes the webpage to use http requests instead of websockets; was the default in earlier versions")
|
| 117 |
+
parser.add_argument("--skip-version-check", action='store_true', help="Do not check versions of torch and xformers")
|
| 118 |
+
parser.add_argument("--no-hashing", action='store_true', help="disable sha256 hashing of checkpoints to help loading performance", default=False)
|
| 119 |
+
parser.add_argument("--no-download-sd-model", action='store_true', help="don't download SD1.5 model even if no model is found in --ckpt-dir", default=False)
|
| 120 |
+
parser.add_argument('--subpath', type=str, help='customize the subpath for gradio, use with reverse proxy')
|
| 121 |
+
parser.add_argument('--add-stop-route', action='store_true', help='does not do anything')
|
| 122 |
+
parser.add_argument('--api-server-stop', action='store_true', help='enable server stop/restart/kill via api')
|
| 123 |
+
parser.add_argument('--timeout-keep-alive', type=int, default=30, help='set timeout_keep_alive for uvicorn')
|
| 124 |
+
parser.add_argument("--disable-all-extensions", action='store_true', help="prevent all extensions from running regardless of any other settings", default=False)
|
| 125 |
+
parser.add_argument("--disable-extra-extensions", action='store_true', help="prevent all extensions except built-in from running regardless of any other settings", default=False)
|
| 126 |
+
parser.add_argument("--skip-load-model-at-start", action='store_true', help="if load a model at web start, only take effect when --nowebui")
|
| 127 |
+
parser.add_argument("--unix-filenames-sanitization", action='store_true', help="allow any symbols except '/' in filenames. May conflict with your browser and file system")
|
| 128 |
+
parser.add_argument("--filenames-max-length", type=int, default=128, help='maximal length of filenames of saved images. If you override it, it can conflict with your file system')
|
| 129 |
+
parser.add_argument("--no-prompt-history", action='store_true', help="disable read prompt from last generation feature; settings this argument will not create '--data_path/params.txt' file")
|