diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-09 04:21:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 04:21:34 +0000 |
commit | 116a2b89c009abd942c3521a412364421a7c447c (patch) | |
tree | 7f5690bc81942f21f177a09cc30a9df9fe65c2e7 | |
parent | 93524bfb739b003063c870f2e63a0e583f6c049a (diff) | |
parent | 764a64b02e42d2249f8d57542a1dff6b1d647188 (diff) | |
download | stable-diffusion-webui-gfx803-116a2b89c009abd942c3521a412364421a7c447c.tar.gz stable-diffusion-webui-gfx803-116a2b89c009abd942c3521a412364421a7c447c.tar.bz2 stable-diffusion-webui-gfx803-116a2b89c009abd942c3521a412364421a7c447c.zip |
Merge pull request #167 from orionaskatu/patch-1
Some typos
-rw-r--r-- | modules/shared.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/modules/shared.py b/modules/shared.py index 07b288c2..a51d9ba6 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -25,16 +25,16 @@ parser.add_argument("--gfpgan-model", type=str, help="GFPGAN model file name", d 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 accleration in browser)")
parser.add_argument("--max-batch-count", type=int, default=16, help="maximum batch count value for the UI")
-parser.add_argument("--embeddings-dir", type=str, default='embeddings', help="embeddings dirtectory for textual inversion (default: embeddings)")
+parser.add_argument("--embeddings-dir", type=str, default='embeddings', help="embeddings directory for textual inversion (default: embeddings)")
parser.add_argument("--allow-code", action='store_true', help="allow custom script execution from webui")
-parser.add_argument("--medvram", action='store_true', help="enable stable diffusion model optimizations for sacrficing a little speed for low VRM usage")
-parser.add_argument("--lowvram", action='store_true', help="enable stable diffusion model optimizations for sacrficing a lot of speed for very low VRM usage")
-parser.add_argument("--always-batch-cond-uncond", action='store_true', help="a workaround test; may help with speed in you use --lowvram")
+parser.add_argument("--medvram", action='store_true', help="enable stable diffusion model optimizations for sacrificing a little speed for low VRM usage")
+parser.add_argument("--lowvram", action='store_true', help="enable stable diffusion model optimizations for sacrificing a lot of speed for very low VRM usage")
+parser.add_argument("--always-batch-cond-uncond", action='store_true', help="a workaround test; may help with speed if you use --lowvram")
parser.add_argument("--unload-gfpgan", action='store_true', help="unload GFPGAN every time after processing images. Warning: seems to cause memory leaks")
parser.add_argument("--precision", type=str, help="evaluate at this precision", choices=["full", "autocast"], default="autocast")
parser.add_argument("--share", action='store_true', help="use share=True for gradio and make the UI accessible through their site (doesn't work for me but you might have better luck)")
parser.add_argument("--esrgan-models-path", type=str, help="path to directory with ESRGAN models", default=os.path.join(script_path, 'ESRGAN'))
-parser.add_argument("--opt-split-attention", action='store_true', help="enable optimization that reduced vram usage by a lot for about 10%% decrease in performance")
+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)
cmd_opts = parser.parse_args()
@@ -96,13 +96,13 @@ class Options: data = None
data_labels = {
- "outdir_samples": OptionInfo("", "Output dictectory for images; if empty, defaults to two directories below"),
- "outdir_txt2img_samples": OptionInfo("outputs/txt2img-images", 'Output dictectory for txt2img images'),
- "outdir_img2img_samples": OptionInfo("outputs/img2img-images", 'Output dictectory for img2img images'),
- "outdir_extras_samples": OptionInfo("outputs/extras-images", 'Output dictectory for images from extras tab'),
- "outdir_grids": OptionInfo("", "Output dictectory for grids; if empty, defaults to two directories below"),
- "outdir_txt2img_grids": OptionInfo("outputs/txt2img-grids", 'Output dictectory for txt2img grids'),
- "outdir_img2img_grids": OptionInfo("outputs/img2img-grids", 'Output dictectory for img2img grids'),
+ "outdir_samples": OptionInfo("", "Output directory for images; if empty, defaults to two directories below"),
+ "outdir_txt2img_samples": OptionInfo("outputs/txt2img-images", 'Output directory for txt2img images'),
+ "outdir_img2img_samples": OptionInfo("outputs/img2img-images", 'Output directory for img2img images'),
+ "outdir_extras_samples": OptionInfo("outputs/extras-images", 'Output directory for images from extras tab'),
+ "outdir_grids": OptionInfo("", "Output directory for grids; if empty, defaults to two directories below"),
+ "outdir_txt2img_grids": OptionInfo("outputs/txt2img-grids", 'Output directory for txt2img grids'),
+ "outdir_img2img_grids": OptionInfo("outputs/img2img-grids", 'Output directory for img2img grids'),
"save_to_dirs": OptionInfo(False, "When writing images/grids, create a directory with name derived from the prompt"),
"save_to_dirs_prompt_len": OptionInfo(10, "When using above, how many words from prompt to put into directory name", gr.Slider, {"minimum": 1, "maximum": 32, "step": 1}),
"outdir_save": OptionInfo("log/images", "Directory for saving images using the Save button"),
|