@@ -50,6 +50,7 @@ parser.add_argument("--no-half", action='store_true', help="do not switch the mo
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")
cmd_opts=parser.parse_args()
...
...
@@ -132,6 +133,7 @@ class Options:
"grid_extended_filename":OptionInfo(False,"Add extended info (seed, prompt) to filename when saving grid"),
"n_rows":OptionInfo(-1,"Grid row count; use -1 for autodetect and 0 for it to be same as batch size",gr.Slider,{"minimum":-1,"maximum":16,"step":1}),
"jpeg_quality":OptionInfo(80,"Quality for saved jpeg images",gr.Slider,{"minimum":1,"maximum":100,"step":1}),
"export_for_4chan":OptionInfo(True,"If PNG image is larger than 4MB or any dimension is larger than 4000, downscale and save copy as JPG"),
"enable_pnginfo":OptionInfo(True,"Save text information about generation parameters as chunks to png files"),
"prompt_matrix_add_to_start":OptionInfo(True,"In prompt matrix, add the variable combination of text to the start of the prompt, rather than the end"),
"sd_upscale_upscaler_index":OptionInfo("RealESRGAN","Upscaler to use for SD upscale",gr.Radio,{"choices":list(sd_upscalers.keys())}),