{"repo":"AUTOMATIC1111/stable-diffusion-webui","free":true,"listed":false,"github":"https://github.com/AUTOMATIC1111/stable-diffusion-webui","clone":"git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git","description":"Stable Diffusion web UI","language":"Python","stars":164530,"topics":["ai","ai-art","deep-learning","diffusion","gradio","image-generation","image2image","img2img","pytorch","stable-diffusion","text2image","torch","txt2img","unstable","upscaling","web"],"license":"AGPL-3.0","category":"ai_tool","readme_excerpt":"# Stable Diffusion web UI\r\nA web interface for Stable Diffusion, implemented using Gradio library.\r\n\r\n![](screenshot.png)\r\n\r\n## Features\r\n[Detailed feature showcase with images](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features):\r\n- Original txt2img and img2img modes\r\n- One click install and run script (but you still must install python and git)\r\n- Outpainting\r\n- Inpainting\r\n- Color Sketch\r\n- Prompt Matrix\r\n- Stable Diffusion Upscale\r\n- Attention, specify parts of text that the model should pay more attention to\r\n    - a man in a `((tuxedo))` - will pay more attention to tuxedo\r\n    - a man in a `(tuxedo:1.21)` - alternative syntax\r\n    - select text and press `Ctrl+Up` or `Ctrl+Down` (or `Command+Up` or `Command+Down` if you're on a MacOS) to automatically adjust attention to selected text (code contributed by anonymous user)\r\n- Loopback, run img2img processing multiple times\r\n- X/Y/Z plot, a way to draw a 3 dimensional plot of images with different parameters\r\n- Textual Inversion\r\n    - have as many embeddings as you want and use any names you like for them\r\n    - use multiple embeddings with different numbers of vectors per token\r\n    - works with half precision floating point numbers\r\n    - train embeddings on 8GB (also reports of 6GB working)\r\n- Extras tab with:\r\n    - GFPGAN, neural network that fixes faces\r\n    - CodeFormer, face restoration tool as an alternative to GFPGAN\r\n    - RealESRGAN, neural network upscaler\r\n    - ESRGAN, neural network upscaler with a lot of third party models\r\n    - SwinIR and Swin2SR ([see here](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/2092)), neural network upscalers\r\n    - LDSR, Latent diffusion super resolution upscaling\r\n- Resizing aspect ratio options\r\n- Sampling method selection\r\n    - Adjust sampler eta values (noise multiplier)\r\n    - More advanced noise setting options\r\n- Interrupt processing at any time\r\n- 4GB video card support (also reports of 2GB working)\r\n- Correct seeds for batches\r\n- Live prompt token length validation\r\n- Generation parameters\r\n     - parameters you used to generate images are saved with that image\r\n     - in PNG chunks for PNG, in EXIF for JPEG\r\n     - can drag the image to PNG info tab to restore generation parameters and automatically copy them into UI\r\n     - can be disabled in settings\r\n     - drag and drop an image/text-parameters to promptbox\r\n- Read Generation Parameters Button, loads parameters in promptbox to UI\r\n- Settings page\r\n- Running arbitrary python code from UI (must run with `--allow-code` to enable)\r\n- Mouseover hints for most UI elements\r\n- Possible to change defaults/mix/max/step values for UI elements via text config\r\n- Tiling support, a checkbox to create images that can be tiled like textures\r\n- Progress bar and live image generation preview\r\n    - Can use a separate neural network to produce previews with almost none VRAM or compute requirement\r\n- Negative prompt, an extra text field that allows you to list what you don't want to see in generated image\r\n- Styles, a way to save part of prompt and easily apply them via dropdown later\r\n- Variations, a way to generate same image but with tiny differences\r\n- Seed resizing, a way to generate same image but at slightly different resolution\r\n- CLIP interrogator, a button that tries to guess prompt from an image\r\n- Prompt Editing, a way to change prompt mid-generation, say to start making a watermelon and switch to anime girl midway\r\n- Batch Processing, process a group of files using img2img\r\n- Img2img Alternative, reverse Euler method of cross attention control\r\n- Highres Fix, a convenience option to produce high resolution pictures in one click without usual distortions\r\n- Reloading checkpoints on the fly\r\n- Checkpoint Merger, a tab that allows you to merge up to 3 checkpoints into one\r\n- [Custom scripts](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Custom-Scripts) with many extensions from community\r\n- [Composable-Diffusion](https://energy-based-model.github.io/Compositional-Visual-Generation-with-Composable-Diffusion-Models/), a way to use multiple prompts at once\r\n     - separate prompts using uppercase `AND`\r\n     - also supports weights for prompts: `a cat :1.2 AND a dog AND a penguin :2.2`\r\n- No token limit for prompts (original stable diffusion lets you use up to 75 tokens)\r\n- DeepDanbooru integration, creates danbooru style tags for anime prompts\r\n- [xformers](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Xformers), major speed increase for select cards: (add `--xformers` to commandline args)\r\n- via extension: [History tab](https://github.com/yfszzx/stable-diffusion-webui-images-browser): view, direct and delete images conveniently within the UI\r\n- Generate forever option\r\n- Training tab\r\n     - hypernetworks and embeddings options\r\n     - Preprocessing images: cropping, mirroring, autotagging using BLIP or deepdanbooru (for anime)\r\n- Clip skip\r\n- Hypernetworks\r\n- Loras (same as Hypernetworks but more pretty)\r\n- A separate UI where you can choose, with preview, which embeddings, hypernetworks or Loras to add to your prompt\r\n- Can select to load a different VAE from settings screen\r\n- Estimated completion time in progress bar\r\n- API\r\n- Support for dedicated [inpainting model](https://github.com/runwayml/stable-diffusion#inpainting-with-stable-diffusion) by RunwayML\r\n- via extension: [Aesthetic Gradients](https://github.com/AUTOMATIC1111/stable-diffusion-webui-aesthetic-gradients), a way to generate images with a specific aesthetic by using clip images embeds (implementation of [https://github.com/vicgalle/stable-diffusion-aesthetic-gradients](https://github.com/vicgalle/stable-diffusion-aesthetic-gradients))\r\n- [Stable Diffusion 2.0](https://github.com/Stability-AI/stablediffusion) support - see [wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#stable-diffusion-20) for instructions\r\n- [Alt-Diffusion](https://arxiv.org/abs/2211.06679) support - see [wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#alt-diffusion) for instructions\r\n- Now without any bad letters!\r\n- Load checkpoints in safetensors format\r\n- Eased resolution restriction: generated image's dimensions must be a multiple of 8 rather than 64\r\n- Now with a license!\r\n- Reorder elements in the UI from settings screen\r\n- [Segmind Stable Diffusion](https://huggingface.co/segmind/SSD-1B) support\r\n\r\n## Installation and Running\r\nMake sure the required [dependencies](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Dependencies) are met and follow the instructions available for:\r\n- [NVidia](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs) (recommended)\r\n- [AMD](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-AMD-GPUs) GPUs.\r\n- [Intel CPUs, Intel GPUs (both integrated and discrete)](https://github.com/openvinotoolkit/stable-diffusion-webui/wiki/Installation-on-Intel-Silicon) (external wiki page)\r\n- [Ascend NPUs](https://github.com/wangshuai09/stable-diffusion-webui/wiki/Install-and-run-on-Ascend-NPUs) (external wiki page)\r\n\r\nAlternatively, use online services (like Google Colab):\r\n\r\n- [List of Online Services](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Online-Services)\r\n\r\n### Installation on Windows 10/11 with NVidia-GPUs using release package\r\n1. Download `sd.webui.zip` from [v1.0.0-pre](https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.0.0-pre) and extract its contents.\r\n2. Run `update.bat`.\r\n3. Run `run.bat`.\r\n> For more details see [Install-and-Run-on-NVidia-GPUs](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs)\r\n\r\n### Automatic Installation on Windows\r\n1. Install [Python 3.10.6](https://www.python.org/downloads/release/python-3106/) (Newer version of Python does not support torch), checking \"Add Python to PATH\".\r\n2. Install [git](https://git-scm.com/download/win).\r\n3. Download the stable-diffusion-webui repository, for example by running `git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git`.\r\n4. Run `webui-user.bat` from Windows Explorer as normal, non-administrator, user.\r\n\r\n### Automatic Installation on Linux\r\n1. Install the dependencies:\r\n```bash\r\n# Debian-based:\r\nsudo apt install wget git python3 python3-venv libgl1 libglib2.0-0\r\n# Red Hat-based:\r\nsudo dnf install wget git python3 gperftools-libs libglvnd-glx\r\n# openSUSE-based:\r\nsudo zypper install wget git python3 libtcmalloc4 libglvnd\r\n# Arch-based:\r\nsudo pacman -S wget git python3\r\n```\r\nIf your system is very new, you need to install python3.11 or python3.10:\r\n```bash\r\n# Ubuntu 24.04\r\nsudo add-apt-repository ppa:deadsnakes/ppa\r\nsudo apt update\r\nsudo apt install python3.11\r\n\r\n# Manjaro/Arch\r\nsudo pacman -S yay\r\nyay -S python311 # do not confuse with python3.11 package\r\n\r\n# Only for 3.11\r\n# Then set up env variable in launch script\r\nexport python_cmd=\"python3.11\"\r\n# or in webui-user.sh\r\npython_cmd=\"python3.11\"\r\n```\r\n2. Navigate to the directory you would like the webui to be installed and execute the following command:\r\n```bash\r\nwget -q https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh\r\n```\r\nOr just clone the repo wherever you want:\r\n```bash\r\ngit clone https://github.com/AUTOMATIC1111/stable-diffusion-webui\r\n```\r\n\r\n3. Run `webui.sh`.\r\n4. Check `webui-user.sh` for options.\r\n### Installation on Apple Silicon\r\n\r\nFind the instructions [here](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Installation-on-Apple-Silicon).\r\n\r\n## Contributing\r\nHere's how to add code to this repo: [Contributing](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Contributing)\r\n\r\n## Documentation\r\n\r\nThe documentation was moved from this README over to the project's [wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki).\r\n\r\nFor the purposes of getting Google and other search engines to crawl the wiki, he","default_branch":"master","files":315,"tree":[".eslintignore",".eslintrc.js",".git-blame-ignore-revs",".github/ISSUE_TEMPLATE/bug_report.yml",".github/ISSUE_TEMPLATE/config.yml",".github/ISSUE_TEMPLATE/feature_request.yml",".github/pull_request_template.md",".github/workflows/on_pull_request.yaml",".github/workflows/run_tests.yaml",".github/workflows/warns_merge_master.yml",".gitignore",".pylintrc","CHANGELOG.md","CITATION.cff","CODEOWNERS","LICENSE.txt","README.md","_typos.toml","configs/alt-diffusion-inference.yaml","configs/alt-diffusion-m18-inference.yaml","configs/instruct-pix2pix.yaml","configs/sd3-inference.yaml","configs/sd_xl_inpaint.yaml","configs/v1-inference.yaml","configs/v1-inpainting-inference.yaml","embeddings/Place Textual Inversion embeddings here.txt","environment-wsl2.yaml","extensions-builtin/LDSR/ldsr_model_arch.py","extensions-builtin/LDSR/preload.py","extensions-builtin/LDSR/scripts/ldsr_model.py","extensions-builtin/LDSR/sd_hijack_autoencoder.py","extensions-builtin/LDSR/sd_hijack_ddpm_v1.py","extensions-builtin/LDSR/vqvae_quantize.py","extensions-builtin/Lora/extra_networks_lora.py","extensions-builtin/Lora/lora.py","extensions-builtin/Lora/lora_logger.py","extensions-builtin/Lora/lora_patches.py","extensions-builtin/Lora/lyco_helpers.py","extensions-builtin/Lora/network.py","extensions-builtin/Lora/network_full.py","extensions-builtin/Lora/network_glora.py","extensions-builtin/Lora/network_hada.py","extensions-builtin/Lora/network_ia3.py","extensions-builtin/Lora/network_lokr.py","extensions-builtin/Lora/network_lora.py","extensions-builtin/Lora/network_norm.py","extensions-builtin/Lora/network_oft.py","extensions-builtin/Lora/networks.py","extensions-builtin/Lora/preload.py","extensions-builtin/Lora/scripts/lora_script.py","extensions-builtin/Lora/ui_edit_user_metadata.py","extensions-builtin/Lora/ui_extra_networks_lora.py","extensions-builtin/ScuNET/preload.py","extensions-builtin/ScuNET/scripts/scunet_model.py","extensions-builtin/SwinIR/preload.py","extensions-builtin/SwinIR/scripts/swinir_model.py","extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js","extensions-builtin/canvas-zoom-and-pan/scripts/hotkey_config.py","extensions-builtin/canvas-zoom-and-pan/style.css","extensions-builtin/extra-options-section/scripts/extra_options_section.py","extensions-builtin/hypertile/hypertile.py","extensions-builtin/hypertile/scripts/hypertile_script.py","extensions-builtin/mobile/javascript/mobile.js","extensions-builtin/postprocessing-for-training/scripts/postprocessing_autosized_crop.py","extensions-builtin/postprocessing-for-training/scripts/postprocessing_caption.py","extensions-builtin/postprocessing-for-training/scripts/postprocessing_create_flipped_copies.py","extensions-builtin/postprocessing-for-training/scripts/postprocessing_focal_crop.py","extensions-builtin/postprocessing-for-training/scripts/postprocessing_split_oversized.py","extensions-builtin/prompt-bracket-checker/javascript/prompt-bracket-checker.js","extensions-builtin/soft-inpainting/scripts/soft_inpainting.py","extensions/put extensions here.txt","html/card-no-preview.png","html/extra-networks-card.html","html/extra-networks-copy-path-button.html","html/extra-networks-edit-item-button.html","html/extra-networks-metadata-button.html","html/extra-networks-no-cards.html","html/extra-networks-pane-dirs.html","html/extra-networks-pane-tree.html","html/extra-networks-pane.html","html/extra-networks-tree-button.html","html/footer.html","html/licenses.html","javascript/aspectRatioOverlay.js","javascript/contextMenus.js","javascript/dragdrop.js","javascript/edit-attention.js","javascript/edit-order.js","javascript/extensions.js","javascript/extraNetworks.js","javascript/generationParams.js","javascript/hints.js","javascript/hires_fix.js","javascript/imageMaskFix.js","javascript/imageviewer.js","javascript/imageviewerGamepad.js","javascript/inputAccordion.js","javascript/localStorage.js","javascript/localization.js","javascript/notification.js","javascript/profilerVisualization.js","javascript/progressbar.js","javascript/resizeHandle.js","javascript/settings.js","javascript/textualInversion.js","javascript/token-counters.js","javascript/ui.js","javascript/ui_settings_hints.js","launch.py","localizations/Put localization files here.txt","models/Stable-diffusion/Put Stable Diffusion checkpoints here.txt","models/VAE-approx/model.pt","models/VAE/Put VAE here.txt","models/deepbooru/Put your deepbooru release project folder here.txt","models/karlo/ViT-L-14_stats.th","modules/Roboto-Regular.ttf","modules/api/api.py","modules/api/models.py","modules/cache.py","modules/call_queue.py","modules/cmd_args.py","modules/codeformer_model.py","modules/config_states.py","modules/dat_model.py","modules/deepbooru.py","modules/deepbooru_model.py","modules/devices.py","modules/errors.py","modules/esrgan_model.py","modules/extensions.py","modules/extra_networks.py","modules/extra_networks_hypernet.py","modules/extras.py","modules/face_restoration.py","modules/face_restoration_utils.py","modules/fifo_lock.py","modules/gfpgan_model.py","modules/gitpython_hack.py","modules/gradio_extensons.py","modules/hashes.py","modules/hat_model.py","modules/hypernetworks/hypernetwork.py","modules/hypernetworks/ui.py","modules/images.py","modules/img2img.py","modules/import_hook.py","modules/infotext_utils.py","modules/infotext_versions.py","modules/initialize.py","modules/initialize_util.py","modules/interrogate.py","modules/launch_utils.py","modules/localization.py","modules/logging_config.py","modules/lowvram.py","modules/mac_specific.py","modules/masking.py","modules/memmon.py","modules/modelloader.py","modules/models/diffusion/ddpm_edit.py","modules/models/diffusion/uni_pc/__init__.py","modules/models/diffusion/uni_pc/sampler.py","modules/models/diffusion/uni_pc/uni_pc.py","modules/models/sd3/mmdit.py","modules/models/sd3/other_impls.py","modules/models/sd3/sd3_cond.py","modules/models/sd3/sd3_impls.py","modules/models/sd3/sd3_model.py","modules/ngrok.py","modules/npu_specific.py","modules/options.py","modules/patches.py","modules/paths.py","modules/paths_internal.py","modules/postprocessing.py","modules/processing.py","modules/processing_scripts/comments.py","modules/processing_scripts/refiner.py","modules/processing_scripts/sampler.py","modules/processing_scripts/seed.py","modules/profiling.py","modules/progress.py","modules/prompt_parser.py","modules/realesrgan_model.py","modules/restart.py","modules/rng.py","modules/rng_philox.py","modules/safe.py","modules/script_callbacks.py","modules/script_loading.py","modules/scripts.py","modules/scripts_auto_postprocessing.py","modules/scripts_postprocessing.py","modules/sd_disable_initialization.py","modules/sd_emphasis.py","modules/sd_hijack.py","modules/sd_hijack_checkpoint.py","modules/sd_hijack_clip.py","modules/sd_hijack_clip_old.py","modules/sd_hijack_ip2p.py","modules/sd_hijack_open_clip.py","modules/sd_hijack_optimizations.py","modules/sd_hijack_unet.py","modules/sd_hijack_utils.py","modules/sd_hijack_xlmr.py","modules/sd_models.py","modules/sd_models_config.py","modules/sd_models_types.py","modules/sd_models_xl.py","modules/sd_samplers.py","modules/sd_samplers_cfg_denoiser.py","modules/sd_samplers_common.py","modules/sd_samplers_compvis.py","modules/sd_samplers_extra.py","modules/sd_samplers_kdiffusion.py","modules/sd_samplers_lcm.py","modules/sd_samplers_timesteps.py","modules/sd_samplers_timesteps_impl.py","modules/sd_schedulers.py","modules/sd_unet.py","modules/sd_vae.py","modules/sd_vae_approx.py","modules/sd_vae_taesd.py","modules/shared.py","modules/shared_cmd_options.py","modules/shared_gradio_themes.py","modules/shared_init.py","modules/shared_items.py","modules/shared_options.py","modules/shared_state.py","modules/shared_total_tqdm.py","modules/styles.py","modules/sub_quadratic_attention.py","modules/sysinfo.py","modules/textual_inversion/autocrop.py","modules/textual_inversion/dataset.py","modules/textual_inversion/image_embedding.py","modules/textual_inversion/learn_schedule.py","modules/textual_inversion/saving_settings.py","modules/textual_inversion/test_embedding.png","modules/textual_inversion/textual_inversion.py","modules/textual_inversion/ui.py","modules/timer.py","modules/torch_utils.py","modules/txt2img.py","modules/ui.py","modules/ui_checkpoint_merger.py","modules/ui_common.py","modules/ui_components.py","modules/ui_extensions.py","modules/ui_extra_networks.py","modules/ui_extra_networks_checkpoints.py","modules/ui_extra_networks_checkpoints_user_metadata.py","modules/ui_extra_networks_hypernets.py","modules/ui_extra_networks_textual_inversion.py","modules/ui_extra_networks_user_metadata.py","modules/ui_gradio_extensions.py","modules/ui_loadsave.py","modules/ui_postprocessing.py","modules/ui_prompt_styles.py","modules/ui_settings.py","modules/ui_tempdir.py","modules/ui_toprow.py","modules/upscaler.py","modules/upscaler_utils.py","modules/util.py","modules/xlmr.py","modules/xlmr_m18.py","modules/xpu_specific.py","package.json","pyproject.toml","requirements-test.txt","requirements.txt","requirements_npu.txt","requirements_versions.txt","screenshot.png","script.js","scripts/custom_code.py","scripts/img2imgalt.py","scripts/loopback.py","scripts/outpainting_mk_2.py","scripts/poor_mans_outpainting.py","scripts/postprocessing_codeformer.py","scripts/postprocessing_gfpgan.py","scripts/postprocessing_upscale.py","scripts/prompt_matrix.py","scripts/prompts_from_file.py","scripts/sd_upscale.py","scripts/xyz_grid.py","style.css","test/__init__.py","test/conftest.py","test/test_extras.py","test/test_face_restorers.py","test/test_files/empty.pt","test/test_files/img2img_basic.png","test/test_files/mask_basic.png","test/test_files/two-faces.jpg","test/test_img2img.py","test/test_outputs/.gitkeep","test/test_torch_utils.py","test/test_txt2img.py","test/test_utils.py","textual_inversion_templates/hypernetwork.txt","textual_inversion_templates/none.txt","textual_inversion_templates/style.txt","textual_inversion_templates/style_filewords.txt","textual_inversion_templates/subject.txt","textual_inversion_templates/subject_filewords.txt","webui-macos-env.sh","webui-user.bat","webui-user.sh","webui.bat","webui.py","webui.sh"],"storefront":"/r/AUTOMATIC1111","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AUTOMATIC1111/stable-diffusion-webui/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}