import { type SDModels } from "https://deno.land/x/stable_diffusion_client@0.0.2/mod.ts";
const { Flags } = SDModels;
Flags
Properties
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"
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
Embeddings Dir embeddings directory for textual inversion (default: embeddings) default Value "[set_fullPath]embeddings"
Medvram enable stable diffusion model optimizations for sacrificing a little speed for low VRM usage default Value false
Lowvram enable stable diffusion model optimizations for sacrificing a lot of speed for very low VRM usage default Value false
Always Batch Cond Uncond disables cond/uncond batching that is enabled to save memory with --medvram or --lowvram default Value false
Enable Insecure Extension Access enable extensions tab regardless of other options default Value false
Codeformer Models Path Path to directory with codeformer model file(s). default Value "[set_fullPath]models\Codeformer"
Gfpgan Models Path Path to directory with GFPGAN model file(s). default Value "[set_fullPath]models\GFPGAN"
Esrgan Models Path Path to directory with ESRGAN model file(s). default Value "[set_fullPath]models\ESRGAN"
Bsrgan Models Path Path to directory with BSRGAN model file(s). default Value "[set_fullPath]models\BSRGAN"
Realesrgan Models Path Path to directory with RealESRGAN model file(s). default Value "[set_fullPath]models\RealESRGAN"
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
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 Invokeai force-enables InvokeAI's cross-attention layer optimization. By default, it's on when cuda is unavailable. default Value false
Opt Split Attention V1 enable older version of split attention optimization that does not consume all the VRAM it can find default Value false
Listen launch gradio with 0.0.0.0 as server name, allowing to respond to network requests default Value false
Port launch gradio with given server port, you need root/admin rights for ports < 1024, defaults to 7860 if available
Gradio Auth set gradio authentication like "username:password"; or comma-delimit multiple like "u1:p1,u2:p2,u3:p3"
Gradio Img2Img Tool gradio image uploader tool: can be either editor for ctopping, or color-sketch for drawing default Value "editor"
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"
Use Textbox Seed use textbox for seeds in UI (no up/down, but possible to input long seeds) default Value false
Enable Console Prompts print prompts to console when generating with txt2img and img2img default Value false
Api use api=True to launch the API together with the webui (use --nowebui instead for only the API) default Value false
Api Auth Set authentication for API like "username:password"; or comma-delimit multiple like "u1:p1,u2:p2,u3:p3"
Device Id Select the default CUDA device to use (export CUDA_VISIBLE_DEVICES=0,1,etc might be needed before)
Ldsr Models Path Path to directory with LDSR model file(s). default Value "[set_fullPath]models\LDSR"