diff --git a/README.md b/README.md index 0ebe093a..cf88a8e5 100644 --- a/README.md +++ b/README.md @@ -6,27 +6,36 @@
-[![Discord Server](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.com/invite/u9yhsFmEkB) (for support, and development discussion) | [Troubleshooting guide for common problems](Troubleshooting.md) +[![Discord Server](https://img.shields.io/discord/1014774730907209781?label=Discord)](https://discord.com/invite/u9yhsFmEkB) (for support, and development discussion) | [Troubleshooting guide for common problems](Troubleshooting.md) -️🔥🎉 **New!** Face Correction (GFPGAN) and Upscaling (RealESRGAN) have been added! +️🔥🎉 **New!** Live Preview, More Samplers, In-Painting, Face Correction (GFPGAN) and Upscaling (RealESRGAN) have been added! This distribution currently uses Stable Diffusion 1.4. Once the model for 1.5 becomes publicly available, the model in this distribution will be updated. # Features in the new v2 Version: - **No Dependencies or Technical Knowledge Required**: 1-click install for Windows 10/11 and Linux. *No dependencies*, no need for WSL or Docker or Conda or technical setup. Just download and run! - **Face Correction (GFPGAN) and Upscaling (RealESRGAN)** +- **In-Painting** +- **Live Preview**: See the image as the AI is drawing it +- **Lots of Samplers:** ddim, plms, heun, euler, euler_a, dpm2, dpm2_a, lms - **Image Modifiers**: A library of *modifier tags* like *"Realistic"*, *"Pencil Sketch"*, *"ArtStation"* etc. Experiment with various styles quickly. - **New UI**: with cleaner design +- **Waifu Model Support**: Just replace the `stable-diffusion\sd-v1-4.ckpt` file after installation with the Waifu model - Supports "*Text to Image*" and "*Image to Image*" - **NSFW Setting**: A setting in the UI to control *NSFW content* - **Use CPU setting**: If you don't have a compatible graphics card, but still want to run it on your CPU. - **Auto-updater**: Gets you the latest improvements and bug-fixes to a rapidly evolving project. +- **Low Memory Usage**: Creates 512x512 images with less than 4GB of VRAM! + +![Screenshot of advanced settings](media/shot-v9.jpg?raw=true) + +## Live Preview +![live-512](https://user-images.githubusercontent.com/844287/192097249-729a0a1e-a677-485e-9ccc-16a9e848fabe.gif) -![Screenshot](media/shot-v8.jpg?raw=true) # System Requirements 1. Windows 10/11, or Linux. Experimental support for Mac is coming soon. -2. An NVIDIA graphics card, preferably with 6GB or more of VRAM. But if you don't have a compatible graphics card, you can still use it with a "Use CPU" setting. It'll be very slow, but it should still work. +2. An NVIDIA graphics card, preferably with 4GB or more of VRAM. But if you don't have a compatible graphics card, you can still use it with a "Use CPU" setting. It'll be very slow, but it should still work. You do not need anything else. You do not need WSL, Docker or Conda. The installer will take care of it. @@ -73,14 +82,11 @@ You can also set the configuration like `seed`, `width`, `height`, `num_outputs` Use the same `seed` number to get the same image for a certain prompt. This is useful for refining a prompt without losing the basic image design. Enable the `random images` checkbox to get random images. -![Screenshot of advanced settings](media/config-v6.png?raw=true) +![Screenshot of advanced settings](media/config-v6.jpg?raw=true) +![Screenshot of advanced settings](media/system-settings-v2.jpg?raw=true) -# What is this? Why no Docker? -This version is a 1-click installer. You don't need WSL or Docker or anything beyond a working NVIDIA GPU with an updated driver. You don't need to use the command-line at all. Even if you don't have a compatible GPU, you can run it on your CPU (albeit very slowly). - -It'll download the necessary files from the original [Stable Diffusion](https://github.com/CompVis/stable-diffusion) git repository, and set it up. It'll then start the browser-based interface like before. - -The NSFW option is currently off (temporarily), so it'll allow NSFW images, for those people who are unable to run their prompts without hitting the NSFW filter incorrectly. +# Image Modifiers +![Screenshot of advanced settings](media/modifiers-v1.jpg?raw=true) # Bugs reports and code contributions welcome If there are any problems or suggestions, please feel free to ask on the [discord server](https://discord.com/invite/u9yhsFmEkB) or [file an issue](https://github.com/cmdr2/stable-diffusion-ui/issues). diff --git a/media/config-v6.jpg b/media/config-v6.jpg new file mode 100644 index 00000000..b7fa74d1 Binary files /dev/null and b/media/config-v6.jpg differ diff --git a/media/modifiers-v1.jpg b/media/modifiers-v1.jpg new file mode 100644 index 00000000..51e1fd02 Binary files /dev/null and b/media/modifiers-v1.jpg differ diff --git a/media/shot-v9.jpg b/media/shot-v9.jpg new file mode 100644 index 00000000..129a7934 Binary files /dev/null and b/media/shot-v9.jpg differ diff --git a/media/system-settings-v2.jpg b/media/system-settings-v2.jpg new file mode 100644 index 00000000..a3c7ecd8 Binary files /dev/null and b/media/system-settings-v2.jpg differ diff --git a/scripts/on_env_start.bat b/scripts/on_env_start.bat index 068231ff..16312a5a 100644 --- a/scripts/on_env_start.bat +++ b/scripts/on_env_start.bat @@ -2,6 +2,8 @@ @echo. & echo "Stable Diffusion UI - v2" & echo. +set PATH=C:\Windows\System32;%PATH% + @cd .. if exist "scripts\config.bat" ( diff --git a/scripts/on_sd_start.bat b/scripts/on_sd_start.bat index 526793fe..b8ef042b 100644 --- a/scripts/on_sd_start.bat +++ b/scripts/on_sd_start.bat @@ -15,9 +15,10 @@ @call git reset --hard @call git pull - @call git checkout d154155d4c0b43e13ec1f00eb72b7ff9d522fcf9 + @call git checkout f6cfebffa752ee11a7b07497b8529d5971de916c @call git apply ..\ui\sd_internal\ddim_callback.patch + @call git apply ..\ui\sd_internal\env_yaml.patch @cd .. ) else ( @@ -32,9 +33,10 @@ ) @cd stable-diffusion - @call git checkout d154155d4c0b43e13ec1f00eb72b7ff9d522fcf9 + @call git checkout f6cfebffa752ee11a7b07497b8529d5971de916c @call git apply ..\ui\sd_internal\ddim_callback.patch + @call git apply ..\ui\sd_internal\env_yaml.patch @cd .. ) @@ -77,6 +79,8 @@ @echo conda_sd_env_created >> ..\scripts\install_status.txt ) +set PATH=C:\Windows\System32;%PATH% + @>nul grep -c "conda_sd_gfpgan_deps_installed" ..\scripts\install_status.txt @if "%ERRORLEVEL%" EQU "0" ( @echo "Packages necessary for GFPGAN (Face Correction) were already installed" diff --git a/scripts/on_sd_start.sh b/scripts/on_sd_start.sh index 8de85925..2941764f 100755 --- a/scripts/on_sd_start.sh +++ b/scripts/on_sd_start.sh @@ -16,9 +16,10 @@ if [ -e "scripts/install_status.txt" ] && [ `grep -c sd_git_cloned scripts/insta git reset --hard git pull - git checkout d154155d4c0b43e13ec1f00eb72b7ff9d522fcf9 + git checkout f6cfebffa752ee11a7b07497b8529d5971de916c git apply ../ui/sd_internal/ddim_callback.patch + git apply ../ui/sd_internal/env_yaml.patch cd .. else @@ -33,9 +34,10 @@ else fi cd stable-diffusion - git checkout d154155d4c0b43e13ec1f00eb72b7ff9d522fcf9 + git checkout f6cfebffa752ee11a7b07497b8529d5971de916c git apply ../ui/sd_internal/ddim_callback.patch + git apply ../ui/sd_internal/env_yaml.patch cd .. fi diff --git a/ui/index.html b/ui/index.html index 677a856f..e720a335 100644 --- a/ui/index.html +++ b/ui/index.html @@ -1,288 +1,56 @@ + - - + + + + + + + + +