From 97eb1b169b512a7a5cb7e943e9be012461dcff45 Mon Sep 17 00:00:00 2001 From: ZeroCool940711 Date: Sun, 23 Oct 2022 17:17:50 -0700 Subject: [PATCH 1/2] More renaming and changes to links related to the organization, docs an repo names. --- Web_based_UI_for_Stable_Diffusion_colab.ipynb | 20 +++--- docs/1.windows-installation.md | 67 +++++++++---------- docs/2.linux-installation.md | 8 +-- docs/3.docker-guide.md | 6 +- docs/4.streamlit-interface.md | 6 +- docs/5.gradio-interface.md | 4 +- docs/6.image_enhancers.md | 6 +- docs/7.concepts-library.md | 4 +- docs/8.custom-models.md | 4 +- entrypoint.sh | 6 +- environment.yaml | 4 +- frontend/css/no_progress_bar.css | 4 +- frontend/css/streamlit.main.css | 4 +- frontend/css/styles.css | 4 +- frontend/css_and_js.py | 4 +- frontend/frontend.py | 18 ++--- frontend/image_metadata.py | 4 +- frontend/job_manager.py | 4 +- frontend/ui_functions.py | 4 +- horde_bridge.cmd | 4 +- horde_bridge.sh | 6 +- runpod_entrypoint.sh | 2 +- scripts/APIServer.py | 2 +- scripts/ModelManager.py | 2 +- scripts/Settings.py | 2 +- scripts/diffusers_textual_inversion_2.py | 2 +- scripts/home.py | 2 +- scripts/img2img.py | 2 +- scripts/img2txt.py | 2 +- scripts/imglab.py | 2 +- scripts/modeldownload.py | 2 +- scripts/relauncher.py | 2 +- scripts/sd_concept_library.py | 4 +- scripts/sd_concepts_library_downloader.py | 2 +- scripts/sd_utils.py | 2 +- scripts/textual_inversion.py | 2 +- scripts/txt2img.py | 2 +- scripts/txt2vid.py | 2 +- scripts/webui.py | 2 +- scripts/webui_streamlit.py | 2 +- setup.py | 2 +- webui-streamlit.cmd | 4 +- webui.cmd | 2 +- webui.sh | 6 +- 44 files changed, 122 insertions(+), 123 deletions(-) diff --git a/Web_based_UI_for_Stable_Diffusion_colab.ipynb b/Web_based_UI_for_Stable_Diffusion_colab.ipynb index 147dd62..d8df338 100644 --- a/Web_based_UI_for_Stable_Diffusion_colab.ipynb +++ b/Web_based_UI_for_Stable_Diffusion_colab.ipynb @@ -43,14 +43,14 @@ "source": [ "###
Web-based UI for Stable Diffusion
\n", "\n", - "## Created by [sd-webui](https://github.com/sd-webui)\n", + "## Created by [Sygil-Dev](https://github.com/Sygil-Dev)\n", "\n", - "## [Visit sd-webui's Discord Server](https://discord.gg/gyXNe4NySY) [![Discord Server](https://user-images.githubusercontent.com/5977640/190528254-9b5b4423-47ee-4f24-b4f9-fd13fba37518.png)](https://discord.gg/gyXNe4NySY)\n", + "## [Visit Sygil-Dev's Discord Server](https://discord.gg/gyXNe4NySY) [![Discord Server](https://user-images.githubusercontent.com/5977640/190528254-9b5b4423-47ee-4f24-b4f9-fd13fba37518.png)](https://discord.gg/gyXNe4NySY)\n", "\n", "## Installation instructions for:\n", "\n", - "- **[Windows](https://sd-webui.github.io/stable-diffusion-webui/docs/1.windows-installation.html)** \n", - "- **[Linux](https://sd-webui.github.io/stable-diffusion-webui/docs/2.linux-installation.html)**\n", + "- **[Windows](https://sygil-dev.github.io/sygil-webui/docs/1.windows-installation.html)** \n", + "- **[Linux](https://sygil-dev.github.io/sygil-webui/docs/2.linux-installation.html)**\n", "\n", "### Want to ask a question or request a feature?\n", "\n", @@ -58,13 +58,13 @@ "\n", "## Documentation\n", "\n", - "[Documentation is located here](https://sd-webui.github.io/stable-diffusion-webui/)\n", + "[Documentation is located here](https://sygil-dev.github.io/sygil-webui/)\n", "\n", "## Want to contribute?\n", "\n", "Check the [Contribution Guide](CONTRIBUTING.md)\n", "\n", - "[sd-webui](https://github.com/sd-webui) main devs:\n", + "[Sygil-Dev](https://github.com/Sygil-Dev) main devs:\n", "\n", "* ![hlky's avatar](https://avatars.githubusercontent.com/u/106811348?s=40&v=4) [hlky](https://github.com/hlky)\n", "* ![ZeroCool940711's avatar](https://avatars.githubusercontent.com/u/5977640?s=40&v=4)[ZeroCool940711](https://github.com/ZeroCool940711)\n", @@ -172,7 +172,7 @@ "\n", "If you want to use GFPGAN to improve generated faces, you need to install it separately.\n", "Download [GFPGANv1.4.pth](https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/GFPGANv1.4.pth) and put it\n", - "into the `/stable-diffusion-webui/models/gfpgan` directory. \n", + "into the `/sygil-webui/models/gfpgan` directory. \n", "\n", "### RealESRGAN\n", "\n", @@ -304,7 +304,7 @@ "cell_type": "code", "source": [ "!git clone https://github.com/Sygil-Dev/sygil-webui.git\n", - "%cd /content/stable-diffusion-webui/\n", + "%cd /content/sygil-webui/\n", "!git checkout dev\n", "!git pull\n", "!wget -O arial.ttf https://github.com/matomo-org/travis-scripts/blob/master/fonts/Arial.ttf?raw=true" @@ -373,8 +373,8 @@ " drive.mount('/content/drive/', force_remount=True)\n", "\n", "if save_outputs_to_drive:\n", - " os.makedirs(\"/content/drive/MyDrive/stable-diffusion-webui/outputs\", exist_ok=True)\n", - " os.symlink(\"/content/drive/MyDrive/stable-diffusion-webui/outputs\", \"/content/stable-diffusion-webui/outputs\", target_is_directory=True)\n" + " os.makedirs(\"/content/drive/MyDrive/sygil-webui/outputs\", exist_ok=True)\n", + " os.symlink(\"/content/drive/MyDrive/sygil-webui/outputs\", \"/content/sygil-webui/outputs\", target_is_directory=True)\n" ], "metadata": { "id": "pcSWo9Zkzbsf" diff --git a/docs/1.windows-installation.md b/docs/1.windows-installation.md index 20259a4..e9447b0 100644 --- a/docs/1.windows-installation.md +++ b/docs/1.windows-installation.md @@ -1,10 +1,12 @@ --- + title: Windows Installation --- - -# Initial Setup +# Initial Setup + > This is a windows guide. [To install on Linux, see this page.](2.linux-installation.md) ## Pre requisites @@ -29,18 +32,17 @@ along with this program. If not, see . * https://gitforwindows.org/ Download this, and accept all of the default settings it offers except for the default editor selection. Once it asks for what the default editor is, most people who are unfamiliar with this should just choose Notepad because everyone has Notepad on Windows. ![CleanShot 2022-08-31 at 16 29 48@2x](https://user-images.githubusercontent.com/463317/187796320-e6edbb39-dff1-46a2-a1a1-c4c1875d414c.jpg) - * Download Miniconda3: - [https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe](https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe) Get this installed so that you have access to the Miniconda3 Prompt Console. + [https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe](https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe) Get this installed so that you have access to the Miniconda3 Prompt Console. * Open Miniconda3 Prompt from your start menu after it has been installed -* _(Optional)_ Create a new text file in your root directory `/stable-diffusion-webui/custom-conda-path.txt` that contains the path to your relevant Miniconda3, for example `C:\Users\\miniconda3` (replace `` with your own username). This is required if you have more than 1 miniconda installation or are using custom installation location. +* _(Optional)_ Create a new text file in your root directory `/sygil-webui/custom-conda-path.txt` that contains the path to your relevant Miniconda3, for example `C:\Users\\miniconda3` (replace `` with your own username). This is required if you have more than 1 miniconda installation or are using custom installation location. ## Cloning the repo -Type `git clone https://github.com/sd-webui/stable-diffusion-webui.git` into the prompt. +Type `git clone https://github.com/Sygil-Dev/sygil-webui.git` into the prompt. This will create the `stable-diffusion-webui` directory in your Windows user folder. ![CleanShot 2022-08-31 at 16 31 20@2x](https://user-images.githubusercontent.com/463317/187796462-29e5bafd-bbc1-4a48-adc8-7eccc174cb62.jpg) @@ -48,43 +50,38 @@ This will create the `stable-diffusion-webui` directory in your Windows user fol --- Once a repo has been cloned, updating it is as easy as typing `git pull` inside of Miniconda when in the repo’s topmost directory downloaded by the clone command. Below you can see I used the `cd` command to navigate into that folder. - -![CleanShot 2022-08-31 at 16 36 34@2x](https://user-images.githubusercontent.com/463317/187796970-db94402f-717b-43a8-9c85-270c0cd256c3.jpg) +![CleanShot 2022-08-31 at 16 36 34@2x](https://user-images.githubusercontent.com/463317/187796970-db94402f-717b-43a8-9c85-270c0cd256c3.jpg) * Next you are going to want to create a Hugging Face account: [https://huggingface.co/](https://huggingface.co/) - * After you have signed up, and are signed in go to this link and click on Authorize: [https://huggingface.co/CompVis/stable-diffusion-v-1-4-original](https://huggingface.co/CompVis/stable-diffusion-v-1-4-original) - * After you have authorized your account, go to this link to download the model weights for version 1.4 of the model, future versions will be released in the same way, and updating them will be a similar process : - [https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt](https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt) - + [https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt](https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt) * Download the model into this directory: `C:\Users\\stable-diffusion-webui\models\ldm\stable-diffusion-v1` - * Rename `sd-v1-4.ckpt` to `model.ckpt` once it is inside the stable-diffusion-v1 folder. - * Since we are already in our stable-diffusion-webui folder in Miniconda, our next step is to create the environment Stable Diffusion needs to work. - * _(Optional)_ If you already have an environment set up for an installation of Stable Diffusion named ldm open up the `environment.yaml` file in `\stable-diffusion-webui\` change the environment name inside of it from `ldm` to `ldo` --- ## First run + * `webui.cmd` at the root folder (`\stable-diffusion-webui\`) is your main script that you'll always run. It has the functions to automatically do the followings: - * Create conda env - * Install and update requirements - * Run the relauncher and webui.py script for gradio UI options + + * Create conda env + * Install and update requirements + * Run the relauncher and webui.py script for gradio UI options * Run `webui.cmd` by double clicking the file. * Wait for it to process, this could take some time. Eventually it’ll look like this: - + ![First successful run](https://user-images.githubusercontent.com/3688500/189009827-66c5df32-be44-4851-a265-6791444f537f.JPG) * You'll receive warning messages on **GFPGAN**, **RealESRGAN** and **LDSR** but these are optionals and will be further explained below. @@ -99,30 +96,32 @@ Once a repo has been cloned, updating it is as easy as typing `git pull` inside --- -### Optional additional models +### Optional additional models -There are three more models that we need to download in order to get the most out of the functionality offered by sd-webui. +There are three more models that we need to download in order to get the most out of the functionality offered by Sygil-Dev. > The models are placed inside `src` folder. If you don't have `src` folder inside your root directory it means that you haven't installed the dependencies for your environment yet. [Follow this step](#first-run) before proceeding. ### GFPGAN -1. If you want to use GFPGAN to improve generated faces, you need to install it separately. -1. Download [GFPGANv1.3.pth](https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth) and [GFPGANv1.4.pth](https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/GFPGANv1.4.pth) and put it into the `/stable-diffusion-webui/models/gfpgan` directory. +1. If you want to use GFPGAN to improve generated faces, you need to install it separately. +2. Download [GFPGANv1.3.pth](https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth) and [GFPGANv1.4.pth](https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/GFPGANv1.4.pth) and put it into the `/sygil-webui/models/gfpgan` directory. ### RealESRGAN + 1. Download [RealESRGAN_x4plus.pth](https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth) and [RealESRGAN_x4plus_anime_6B.pth](https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth). -1. Put them into the `stable-diffusion-webui/models/realesrgan` directory. +2. Put them into the `stable-diffusion-webui/models/realesrgan` directory. ### LDSR -1. Detailed instructions [here](https://github.com/Hafiidz/latent-diffusion). Brief instruction as follows. -1. Git clone [Hafiidz/latent-diffusion](https://github.com/Hafiidz/latent-diffusion) into your `/stable-diffusion-webui/src/` folder. -1. Run `/stable-diffusion-webui/models/ldsr/download_model.bat` to automatically download and rename the models. -1. Wait until it is done and you can confirm by confirming two new files in `stable-diffusion-webui/models/ldsr/` -1. _(Optional)_ If there are no files there, you can manually download **LDSR** [project.yaml](https://heibox.uni-heidelberg.de/f/31a76b13ea27482981b4/?dl=1) and [model last.cpkt](https://heibox.uni-heidelberg.de/f/578df07c8fc04ffbadf3/?dl=1). -1. Rename last.ckpt to model.ckpt and place both under `stable-diffusion-webui/models/ldsr/`. -1. Refer to [here](https://github.com/sd-webui/stable-diffusion-webui/issues/488) for any issue. +1. Detailed instructions [here](https://github.com/Hafiidz/latent-diffusion). Brief instruction as follows. +2. Git clone [Hafiidz/latent-diffusion](https://github.com/Hafiidz/latent-diffusion) into your `/sygil-webui/src/` folder. +3. Run `/sygil-webui/models/ldsr/download_model.bat` to automatically download and rename the models. +4. Wait until it is done and you can confirm by confirming two new files in `stable-diffusion-webui/models/ldsr/` +5. _(Optional)_ If there are no files there, you can manually download **LDSR** [project.yaml](https://heibox.uni-heidelberg.de/f/31a76b13ea27482981b4/?dl=1) and [model last.cpkt](https://heibox.uni-heidelberg.de/f/578df07c8fc04ffbadf3/?dl=1). +6. Rename last.ckpt to model.ckpt and place both under `stable-diffusion-webui/models/ldsr/`. +7. Refer to [here](https://github.com/Sygil-Dev/stable-diffusion-webui/issues/488) for any issue. # Credits -> Modified by [Hafiidz](https://github.com/Hafiidz) with helps from sd-webui discord and team. + +> Modified by [Hafiidz](https://github.com/Hafiidz) with helps from Sygil-Dev discord and team. diff --git a/docs/2.linux-installation.md b/docs/2.linux-installation.md index fff6f7b..bd0b8a8 100644 --- a/docs/2.linux-installation.md +++ b/docs/2.linux-installation.md @@ -2,9 +2,9 @@ title: Linux Installation ---