import { type SDModels } from "https://deno.land/x/stable_diffusion_client@0.0.2/mod.ts";
const { Options } = SDModels;
Options
Properties
Grid Extended Filename Add extended info (seed, prompt) to filename when saving grid default Value false
Enable Pnginfo Save text information about generation parameters as chunks to png files default Value true
Save Images Before Face Restoration Save a copy of image before doing face restoration. default Value false
Save Images Before Highres Fix Save a copy of image before applying highres fix. default Value false
Save Images Before Color Correction Save a copy of image before applying color correction to img2img results default Value false
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
Use Original Name Batch Use original name for output filename during batch process in extras tab default Value false
Clean Temp Dir At Start Cleanup non-default temporary directory when starting webui default Value false
Outdir Samples Output directory for images; if empty, defaults to three directories below default Value ""
Outdir Extras Samples Output directory for images from extras tab default Value "outputs/extras-images"
Outdir Grids Output directory for grids; if empty, defaults to two directories below default Value ""
Esrgan Tile Overlap Tile overlap, in pixels for ESRGAN upscalers. Low values = visible seam. default Value 8
Realesrgan Enabled Models Select which Real-ESRGAN models to show in the web UI. (Requires restart) default Value ["R-ESRGAN 4x+","R-ESRGAN 4x+ Anime6B"]
Code Former Weight CodeFormer weight parameter; 0 = maximum effect; 1 = minimum effect default Value 0.5
Face Restoration Unload Move face restoration model from VRAM into RAM after processing default Value false
Memmon Poll Rate VRAM usage polls per second during generation. Set to 0 to disable. default Value 8
Multiple Tqdm Add a second progress bar to the console that shows progress for an entire job. default Value true
Unload Models When Training Move VAE and CLIP to RAM when training if possible. Saves VRAM. default Value false
Pin Memory Turn on pin_memory for DataLoader. Makes training slightly faster but can increase memory usage. default Value false
Save Optimizer State Saves Optimizer state as separate *.optim file. Training can be resumed with HN itself and matching optim file. default Value false
Training Image Repeats Per Epoch Number of repeats for a single input image per epoch; used only for displaying epoch number default Value 1
Training Write Csv Every Save an csv containing the loss to log directory every N steps, 0 to disable default Value 500
Training Xattention Optimizations Use cross attention optimizations while training default Value false
Sd Vae As Default Ignore selected VAE for stable diffusion checkpoints that have their own .vae.pt next to them default Value false
Img2Img Color Correction Apply color correction to img2img results to match original colors. default Value false
Img2Img Fix Steps With img2img, do exactly the amount of steps the slider specifies (normally you'd do less with less denoising). default Value false
Enable Quantization Enable quantization in K samplers for sharper and cleaner results. This may change existing seeds. Requires restart to apply. default Value false
Enable Emphasis Emphasis: use (text) to make model pay more attention to text and [text] to make it pay less attention default Value true
Use Old Emphasis Implementation Use old emphasis implementation. Can be useful to reproduce old seeds. default Value false
Enable Batch Seeds Make K-diffusion samplers produce same images in a batch as when making a single image default Value true
Comma Padding Backtrack Increase coherency by padding from the last comma within n tokens when using more than 75 tokens default Value 20
Random Artist Categories Allowed categories for random artists selection when using the Roll button default Value []
Interrogate Return Ranks Interrogate: include ranks of model tags matches in results (Has no effect on caption-based interrogators). default Value false
Interrogate Clip Min Length Interrogate: minimum description length (excluding artists, etc..) default Value 24
Interrogate Clip Dict Limit CLIP: maximum number of lines in text file (0 = No limit) default Value 1500
Deepbooru Escape escape () brackets in deepbooru (so they are used as literal brackets and not for emphasis) default Value true
Show Progress Every N Steps Show image creation progress every N sampling steps. Set to 0 to disable. Set to -1 to show after completion of batch. default Value 0
Disable Weights Auto Swap When reading generation parameters from text into UI (from PNG info or pasted text), do not change the selected model/checkpoint. default Value false
Js Modal Lightbox Initially Zoomed Show images zoomed in by default in full page image viewer default Value true