parser.add_argument("--config",type=str,default=os.path.join(sd_path,"configs/stable-diffusion/v1-inference.yaml"),help="path to config which constructs model",)
parser.add_argument("--ckpt",type=str,default=os.path.join(sd_path,sd_model_file),help="path to checkpoint of model",)
parser.add_argument("--gfpgan-model",type=str,help="GFPGAN model file name",default='GFPGANv1.3.pth')
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("--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("--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("--opt-split-attention",action='store_true',help="enable optimization that reduced vram usage by a lot for about 10% decrease in performance")
"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'),
"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"),
"random_artist_categories":OptionInfo([],"Allowed categories for random artists selection when using the Roll button",gr.CheckboxGroup,{"choices":artist_db.categories()}),
"upscale_at_full_resolution_padding":OptionInfo(16,"Inpainting at full resolution: padding, in pixels, for the masked region.",gr.Slider,{"minimum":0,"maximum":128,"step":4}),