-
Notifications
You must be signed in to change notification settings - Fork 4
/
SDModels.ts
1940 lines (1940 loc) · 41.5 KB
/
SDModels.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/** ArtistItem */
export interface ArtistItem {
/**
* Name
*/
name: string;
/**
* Score
*/
score: number;
/**
* Category
*/
category: string;
}
/** Body_login_login__post */
export interface Body_login_login__post {
/**
* Grant Type
*/
grant_type?: string;
/**
* Username
*/
username: string;
/**
* Password
*/
password: string;
/**
* Scope
* default Value ""
*/
scope?: string;
/**
* Client Id
*/
client_id?: string;
/**
* Client Secret
*/
client_secret?: string;
}
/** Body_login_login_post */
export interface Body_login_login_post {
/**
* Grant Type
*/
grant_type?: string;
/**
* Username
*/
username: string;
/**
* Password
*/
password: string;
/**
* Scope
* default Value ""
*/
scope?: string;
/**
* Client Id
*/
client_id?: string;
/**
* Client Secret
*/
client_secret?: string;
}
/** Estimation */
export interface Estimation {
/**
* Msg
* default Value "estimation"
*/
msg?: string;
/**
* Rank
*/
rank?: number;
/**
* Queue Size
*/
queue_size: number;
/**
* Avg Event Process Time
*/
avg_event_process_time?: number;
/**
* Avg Event Concurrent Process Time
*/
avg_event_concurrent_process_time?: number;
/**
* Rank Eta
*/
rank_eta?: number;
/**
* Queue Eta
*/
queue_eta: number;
}
/** ExtrasBatchImagesRequest */
export interface ExtrasBatchImagesRequest {
/**
* Resize Mode
* Sets the resize mode: 0 to upscale by upscaling_resize amount, 1 to upscale up to upscaling_resize_h x upscaling_resize_w.
*/
resize_mode?: 0 | 1;
/**
* Show results
* Should the backend return the generated image?
* default Value true
*/
show_extras_results?: boolean;
/**
* GFPGAN Visibility
* Sets the visibility of GFPGAN, values should be between 0 and 1.
* Min Value 0
* Max Value 1
* default Value 0
*/
gfpgan_visibility?: number;
/**
* CodeFormer Visibility
* Sets the visibility of CodeFormer, values should be between 0 and 1.
* Min Value 0
* Max Value 1
* default Value 0
*/
codeformer_visibility?: number;
/**
* CodeFormer Weight
* Sets the weight of CodeFormer, values should be between 0 and 1.
* Min Value 0
* Max Value 1
* default Value 0
*/
codeformer_weight?: number;
/**
* Upscaling Factor
* By how much to upscale the image, only used when resize_mode=0.
* Min Value 1
* Max Value 4
* default Value 2
*/
upscaling_resize?: number;
/**
* Target Width
* Target width for the upscaler to hit. Only used when resize_mode=1.
* Min Value 1
*/
upscaling_resize_w?: number;
/**
* Target Height
* Target height for the upscaler to hit. Only used when resize_mode=1.
* Min Value 1
*/
upscaling_resize_h?: number;
/**
* Crop to fit
* Should the upscaler crop the image to fit in the choosen size?
* default Value true
*/
upscaling_crop?: boolean;
/**
* Main upscaler
* The name of the main upscaler to use, it has to be one of this list: None , Lanczos , Nearest , LDSR , ScuNET GAN , ScuNET PSNR , SwinIR 4x , ESRGAN_4x , R-ESRGAN 4x+ , R-ESRGAN 4x+ Anime6B
* default Value "None"
*/
upscaler_1?: string;
/**
* Secondary upscaler
* The name of the secondary upscaler to use, it has to be one of this list: None , Lanczos , Nearest , LDSR , ScuNET GAN , ScuNET PSNR , SwinIR 4x , ESRGAN_4x , R-ESRGAN 4x+ , R-ESRGAN 4x+ Anime6B
* default Value "None"
*/
upscaler_2?: string;
/**
* Secondary upscaler visibility
* Sets the visibility of secondary upscaler, values should be between 0 and 1.
* Min Value 0
* Max Value 1
* default Value 0
*/
extras_upscaler_2_visibility?: number;
/**
* Upscale first
* Should the upscaler run before restoring faces?
* default Value false
*/
upscale_first?: boolean;
/**
* Images
* List of images to work on. Must be Base64 strings
*/
imageList: Array<FileData>;
}
/** ExtrasBatchImagesResponse */
export interface ExtrasBatchImagesResponse {
/**
* HTML info
* A series of HTML tags containing the process info.
*/
html_info: string;
/**
* Images
* The generated images in base64 format.
*/
images: string[];
}
/** ExtrasSingleImageRequest */
export interface ExtrasSingleImageRequest {
/**
* Resize Mode
* Sets the resize mode: 0 to upscale by upscaling_resize amount, 1 to upscale up to upscaling_resize_h x upscaling_resize_w.
*/
resize_mode?: 0 | 1;
/**
* Show results
* Should the backend return the generated image?
* default Value true
*/
show_extras_results?: boolean;
/**
* GFPGAN Visibility
* Sets the visibility of GFPGAN, values should be between 0 and 1.
* Min Value 0
* Max Value 1
* default Value 0
*/
gfpgan_visibility?: number;
/**
* CodeFormer Visibility
* Sets the visibility of CodeFormer, values should be between 0 and 1.
* Min Value 0
* Max Value 1
* default Value 0
*/
codeformer_visibility?: number;
/**
* CodeFormer Weight
* Sets the weight of CodeFormer, values should be between 0 and 1.
* Min Value 0
* Max Value 1
* default Value 0
*/
codeformer_weight?: number;
/**
* Upscaling Factor
* By how much to upscale the image, only used when resize_mode=0.
* Min Value 1
* Max Value 4
* default Value 2
*/
upscaling_resize?: number;
/**
* Target Width
* Target width for the upscaler to hit. Only used when resize_mode=1.
* Min Value 1
*/
upscaling_resize_w?: number;
/**
* Target Height
* Target height for the upscaler to hit. Only used when resize_mode=1.
* Min Value 1
*/
upscaling_resize_h?: number;
/**
* Crop to fit
* Should the upscaler crop the image to fit in the choosen size?
* default Value true
*/
upscaling_crop?: boolean;
/**
* Main upscaler
* The name of the main upscaler to use, it has to be one of this list: None , Lanczos , Nearest , LDSR , ScuNET GAN , ScuNET PSNR , SwinIR 4x , ESRGAN_4x , R-ESRGAN 4x+ , R-ESRGAN 4x+ Anime6B
* default Value "None"
*/
upscaler_1?: string;
/**
* Secondary upscaler
* The name of the secondary upscaler to use, it has to be one of this list: None , Lanczos , Nearest , LDSR , ScuNET GAN , ScuNET PSNR , SwinIR 4x , ESRGAN_4x , R-ESRGAN 4x+ , R-ESRGAN 4x+ Anime6B
* default Value "None"
*/
upscaler_2?: string;
/**
* Secondary upscaler visibility
* Sets the visibility of secondary upscaler, values should be between 0 and 1.
* Min Value 0
* Max Value 1
* default Value 0
*/
extras_upscaler_2_visibility?: number;
/**
* Upscale first
* Should the upscaler run before restoring faces?
* default Value false
*/
upscale_first?: boolean;
/**
* Image
* Image to work on, must be a Base64 string containing the image's data.
* default Value ""
*/
image?: string;
}
/** ExtrasSingleImageResponse */
export interface ExtrasSingleImageResponse {
/**
* HTML info
* A series of HTML tags containing the process info.
*/
html_info: string;
/**
* Image
* The generated image in base64 format.
*/
image?: string;
}
/** FaceRestorerItem */
export interface FaceRestorerItem {
/**
* Name
*/
name: string;
/**
* Path
*/
cmd_dir?: string;
}
/** FileData */
export interface FileData {
/**
* File data
* Base64 representation of the file
*/
data: string;
/**
* File name
*/
name: string;
}
/** Flags */
export interface Flags {
/**
* Config
* path to config which constructs model
* default Value "[set_fullPath]v1-inference.yaml"
*/
config?: string;
/**
* Ckpt
* path to checkpoint of stable diffusion model; if specified, this checkpoint will be added to the list of checkpoints and loaded
* default Value "[set_fullPath]model.ckpt"
*/
ckpt?: string;
/**
* Ckpt Dir
* Path to directory with stable diffusion checkpoints
*/
ckpt_dir?: string;
/**
* Gfpgan Dir
* GFPGAN directory
* default Value "./GFPGAN"
*/
gfpgan_dir?: string;
/**
* Gfpgan Model
* GFPGAN model file name
*/
gfpgan_model?: string;
/**
* No Half
* do not switch the model to 16-bit floats
* default Value false
*/
no_half?: boolean;
/**
* No Half Vae
* do not switch the VAE model to 16-bit floats
* default Value false
*/
no_half_vae?: boolean;
/**
* No Progressbar Hiding
* do not hide progressbar in gradio UI (we hide it because it slows down ML if you have hardware acceleration in browser)
* default Value false
*/
no_progressbar_hiding?: boolean;
/**
* Max Batch Count
* maximum batch count value for the UI
*/
max_batch_count?: number;
/**
* Embeddings Dir
* embeddings directory for textual inversion (default: embeddings)
* default Value "[set_fullPath]embeddings"
*/
embeddings_dir?: string;
/**
* Hypernetwork Dir
* hypernetwork directory
* default Value "[set_fullPath]models\hypernetworks"
*/
hypernetwork_dir?: string;
/**
* Localizations Dir
* localizations directory
* default Value "[set_fullPath]localizations"
*/
localizations_dir?: string;
/**
* Allow Code
* allow custom script execution from webui
* default Value false
*/
allow_code?: boolean;
/**
* Medvram
* enable stable diffusion model optimizations for sacrificing a little speed for low VRM usage
* default Value false
*/
medvram?: boolean;
/**
* Lowvram
* enable stable diffusion model optimizations for sacrificing a lot of speed for very low VRM usage
* default Value false
*/
lowvram?: boolean;
/**
* Lowram
* load stable diffusion checkpoint weights to VRAM instead of RAM
* default Value false
*/
lowram?: boolean;
/**
* Always Batch Cond Uncond
* disables cond/uncond batching that is enabled to save memory with --medvram or --lowvram
* default Value false
*/
always_batch_cond_uncond?: boolean;
/**
* Unload Gfpgan
* does not do anything.
* default Value false
*/
unload_gfpgan?: boolean;
/**
* Precision
* evaluate at this precision
* default Value "autocast"
*/
precision?: string;
/**
* Share
* use share=True for gradio and make the UI accessible through their site
* default Value false
*/
share?: boolean;
/**
* Ngrok
* ngrok authtoken, alternative to gradio --share
*/
ngrok?: string;
/**
* Ngrok Region
* The region in which ngrok should start.
* default Value "us"
*/
ngrok_region?: string;
/**
* Enable Insecure Extension Access
* enable extensions tab regardless of other options
* default Value false
*/
enable_insecure_extension_access?: boolean;
/**
* Codeformer Models Path
* Path to directory with codeformer model file(s).
* default Value "[set_fullPath]models\Codeformer"
*/
codeformer_models_path?: string;
/**
* Gfpgan Models Path
* Path to directory with GFPGAN model file(s).
* default Value "[set_fullPath]models\GFPGAN"
*/
gfpgan_models_path?: string;
/**
* Esrgan Models Path
* Path to directory with ESRGAN model file(s).
* default Value "[set_fullPath]models\ESRGAN"
*/
esrgan_models_path?: string;
/**
* Bsrgan Models Path
* Path to directory with BSRGAN model file(s).
* default Value "[set_fullPath]models\BSRGAN"
*/
bsrgan_models_path?: string;
/**
* Realesrgan Models Path
* Path to directory with RealESRGAN model file(s).
* default Value "[set_fullPath]models\RealESRGAN"
*/
realesrgan_models_path?: string;
/**
* Clip Models Path
* Path to directory with CLIP model file(s).
*/
clip_models_path?: string;
/**
* Xformers
* enable xformers for cross attention layers
* default Value false
*/
xformers?: boolean;
/**
* Force Enable Xformers
* enable xformers for cross attention layers regardless of whether the checking code thinks you can run it; do not make bug reports if this fails to work
* default Value false
*/
force_enable_xformers?: boolean;
/**
* Deepdanbooru
* does not do anything
* default Value false
*/
deepdanbooru?: boolean;
/**
* Opt Split Attention
* force-enables Doggettx's cross-attention layer optimization. By default, it's on for torch cuda.
* default Value false
*/
opt_split_attention?: boolean;
/**
* Opt Split Attention Invokeai
* force-enables InvokeAI's cross-attention layer optimization. By default, it's on when cuda is unavailable.
* default Value false
*/
opt_split_attention_invokeai?: boolean;
/**
* Opt Split Attention V1
* enable older version of split attention optimization that does not consume all the VRAM it can find
* default Value false
*/
opt_split_attention_v1?: boolean;
/**
* Disable Opt Split Attention
* force-disables cross-attention layer optimization
* default Value false
*/
disable_opt_split_attention?: boolean;
/**
* Use Cpu
* use CPU as torch device for specified modules
* default Value []
*/
use_cpu?: string[];
/**
* Listen
* launch gradio with 0.0.0.0 as server name, allowing to respond to network requests
* default Value false
*/
listen?: boolean;
/**
* Port
* launch gradio with given server port, you need root/admin rights for ports < 1024, defaults to 7860 if available
*/
port?: string;
/**
* Show Negative Prompt
* does not do anything
* default Value false
*/
show_negative_prompt?: boolean;
/**
* Ui Config File
* filename to use for ui configuration
* default Value "[set_fullPath]ui-config.json"
*/
ui_config_file?: string;
/**
* Hide Ui Dir Config
* hide directory configuration from webui
* default Value false
*/
hide_ui_dir_config?: boolean;
/**
* Freeze Settings
* disable editing settings
* default Value false
*/
freeze_settings?: boolean;
/**
* Ui Settings File
* filename to use for ui settings
* default Value "[set_fullPath]config.json"
*/
ui_settings_file?: string;
/**
* Gradio Debug
* launch gradio with --debug option
* default Value false
*/
gradio_debug?: boolean;
/**
* Gradio Auth
* set gradio authentication like "username:password"; or comma-delimit multiple like "u1:p1,u2:p2,u3:p3"
*/
gradio_auth?: string;
/**
* Gradio Img2Img Tool
* gradio image uploader tool: can be either editor for ctopping, or color-sketch for drawing
* default Value "editor"
*/
gradio_img2img_tool?: string;
/**
* Gradio Inpaint Tool
* gradio inpainting editor: can be either sketch to only blur/noise the input, or color-sketch to paint over it
* default Value "sketch"
*/
gradio_inpaint_tool?: string;
/**
* Opt Channelslast
* change memory type for stable diffusion to channels last
* default Value false
*/
opt_channelslast?: boolean;
/**
* Styles File
* filename to use for styles
* default Value "[set_fullPath]styles.csv"
*/
styles_file?: string;
/**
* Autolaunch
* open the webui URL in the system's default browser upon launch
* default Value false
*/
autolaunch?: boolean;
/**
* Theme
* launches the UI with light or dark theme
*/
theme?: string;
/**
* Use Textbox Seed
* use textbox for seeds in UI (no up/down, but possible to input long seeds)
* default Value false
*/
use_textbox_seed?: boolean;
/**
* Disable Console Progressbars
* do not output progressbars to console
* default Value false
*/
disable_console_progressbars?: boolean;
/**
* Enable Console Prompts
* print prompts to console when generating with txt2img and img2img
* default Value false
*/
enable_console_prompts?: boolean;
/**
* Vae Path
* Path to Variational Autoencoders model
*/
vae_path?: string;
/**
* Disable Safe Unpickle
* disable checking pytorch models for malicious code
* default Value false
*/
disable_safe_unpickle?: boolean;
/**
* Api
* use api=True to launch the API together with the webui (use --nowebui instead for only the API)
* default Value false
*/
api?: boolean;
/**
* Api Auth
* Set authentication for API like "username:password"; or comma-delimit multiple like "u1:p1,u2:p2,u3:p3"
*/
api_auth?: string;
/**
* Nowebui
* use api=True to launch the API instead of the webui
* default Value false
*/
nowebui?: boolean;
/**
* Ui Debug Mode
* Don't load model to quickly launch UI
* default Value false
*/
ui_debug_mode?: boolean;
/**
* Device Id
* Select the default CUDA device to use (export CUDA_VISIBLE_DEVICES=0,1,etc might be needed before)
*/
device_id?: string;
/**
* Administrator
* Administrator rights
* default Value false
*/
administrator?: boolean;
/**
* Cors Allow Origins
* Allowed CORS origin(s) in the form of a comma-separated list (no spaces)
*/
cors_allow_origins?: string;
/**
* Cors Allow Origins Regex
* Allowed CORS origin(s) in the form of a single regular expression
*/
cors_allow_origins_regex?: string;
/**
* Tls Keyfile
* Partially enables TLS, requires --tls-certfile to fully function
*/
tls_keyfile?: string;
/**
* Tls Certfile
* Partially enables TLS, requires --tls-keyfile to fully function
*/
tls_certfile?: string;
/**
* Server Name
* Sets hostname of server
*/
server_name?: string;
/**
* Dreambooth Models Path
* Path to directory to store Dreambooth model file(s).
*/
dreambooth_models_path?: string;
/**
* Ckptfix
* (Dreambooth) Enable fix for OOM errors when extracting checkpoints.
* default Value false
*/
ckptfix?: boolean;
/**
* Ldsr Models Path
* Path to directory with LDSR model file(s).
* default Value "[set_fullPath]models\LDSR"
*/
ldsr_models_path?: string;
/**
* Scunet Models Path
* Path to directory with ScuNET model file(s).
* default Value "[set_fullPath]models\ScuNET"
*/
scunet_models_path?: string;
/**
* Swinir Models Path
* Path to directory with SwinIR model file(s).
* default Value "[set_fullPath]models\SwinIR"
*/
swinir_models_path?: string;
}
/** HTTPValidationError */
export interface HTTPValidationError {
/**
* Detail
*/
detail?: Array<ValidationError>;
}
/** HypernetworkItem */
export interface HypernetworkItem {
/**
* Name
*/
name: string;
/**
* Path
*/
path?: string;
}
/** ImageToImageResponse */
export interface ImageToImageResponse {
/**
* Image
* The generated image in base64 format.
*/
images?: string[];
/**
* Parameters
*/
// deno-lint-ignore no-explicit-any
parameters: any;
/**
* Info
*/
info: string;
}
/** InterrogateRequest */
export interface InterrogateRequest {
/**
* Image
* Image to work on, must be a Base64 string containing the image's data.
* default Value ""
*/
image?: string;
/**
* Model
* The interrogate model used.
* default Value "clip"
*/
model?: string;
}
/** Options */
export interface Options {
/**
* Samples Save
* Always save all generated images
* default Value true
*/
samples_save?: boolean;
/**
* Samples Format
* File format for images
* default Value "png"
*/
samples_format?: string;
/**
* Samples Filename Pattern
* Images filename pattern
* default Value ""
*/
samples_filename_pattern?: string;
/**
* Save Images Add Number
* Add number to filename when saving
* default Value true
*/
save_images_add_number?: boolean;
/**
* Grid Save
* Always save all generated image grids
* default Value true
*/
grid_save?: boolean;
/**
* Grid Format
* File format for grids
* default Value "png"
*/
grid_format?: string;
/**
* Grid Extended Filename
* Add extended info (seed, prompt) to filename when saving grid
* default Value false
*/
grid_extended_filename?: boolean;
/**
* Grid Only If Multiple
* Do not save grids consisting of one picture
* default Value true
*/
grid_only_if_multiple?: boolean;
/**
* Grid Prevent Empty Spots
* Prevent empty spots in grid (when set to autodetect)
* default Value false
*/
grid_prevent_empty_spots?: boolean;
/**
* N Rows
* Grid row count; use -1 for autodetect and 0 for it to be same as batch size
* default Value -1
*/
n_rows?: number;
/**
* Enable Pnginfo
* Save text information about generation parameters as chunks to png files
* default Value true
*/
enable_pnginfo?: boolean;
/**
* Save Txt
* Create a text file next to every image with generation parameters.
* default Value false
*/
save_txt?: boolean;
/**
* Save Images Before Face Restoration
* Save a copy of image before doing face restoration.
* default Value false
*/
save_images_before_face_restoration?: boolean;
/**
* Save Images Before Highres Fix
* Save a copy of image before applying highres fix.
* default Value false
*/
save_images_before_highres_fix?: boolean;
/**
* Save Images Before Color Correction
* Save a copy of image before applying color correction to img2img results
* default Value false
*/
save_images_before_color_correction?: boolean;
/**
* Jpeg Quality
* Quality for saved jpeg images
* default Value 80
*/
jpeg_quality?: number;
/**
* Export For 4Chan
* If PNG image is larger than 4MB or any dimension is larger than 4000, downscale and save copy as JPG
* default Value true
*/
export_for_4chan?: boolean;
/**
* Use Original Name Batch
* Use original name for output filename during batch process in extras tab
* default Value false
*/
use_original_name_batch?: boolean;
/**
* Save Selected Only
* When using 'Save' button, only save a single selected image
* default Value true
*/
save_selected_only?: boolean;
/**
* Do Not Add Watermark
* Do not add watermark to images
* default Value false
*/
do_not_add_watermark?: boolean;
/**
* Temp Dir
* Directory for temporary images; leave empty for default
* default Value ""
*/
temp_dir?: string;
/**
* Clean Temp Dir At Start
* Cleanup non-default temporary directory when starting webui
* default Value false
*/
clean_temp_dir_at_start?: boolean;
/**
* Outdir Samples
* Output directory for images; if empty, defaults to three directories below
* default Value ""
*/
outdir_samples?: string;
/**
* Outdir Txt2Img Samples
* Output directory for txt2img images
* default Value "outputs/txt2img-images"
*/
outdir_txt2img_samples?: string;
/**
* Outdir Img2Img Samples
* Output directory for img2img images
* default Value "outputs/img2img-images"
*/
outdir_img2img_samples?: string;
/**
* Outdir Extras Samples
* Output directory for images from extras tab
* default Value "outputs/extras-images"
*/
outdir_extras_samples?: string;
/**
* Outdir Grids
* Output directory for grids; if empty, defaults to two directories below
* default Value ""
*/
outdir_grids?: string;
/**
* Outdir Txt2Img Grids
* Output directory for txt2img grids
* default Value "outputs/txt2img-grids"
*/
outdir_txt2img_grids?: string;
/**
* Outdir Img2Img Grids
* Output directory for img2img grids
* default Value "outputs/img2img-grids"
*/
outdir_img2img_grids?: string;
/**
* Outdir Save
* Directory for saving images using the Save button
* default Value "log/images"
*/
outdir_save?: string;
/**