├── README.md ├── .github └── FUNDING.yml ├── LICENSE └── paperspace.ipynb /README.md: -------------------------------------------------------------------------------- 1 | 🐣 Please follow me for new updates https://twitter.com/camenduru
2 | 🔥 Please join our discord server https://discord.gg/k5BwmmvJJU
3 | 🥳 Please join my patreon community https://patreon.com/camenduru
4 | 5 | ## Stable Diffusion Webui Paperspace 6 | https://console.paperspace.com/tej227ff5/notebook/rrvxozul1lx72mu 7 | 8 | ## Stable Diffusion Web UI 9 | [https://github.com/AUTOMATIC1111/stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) (Thanks to @AUTOMATIC1111 ❤) 10 | 11 | ## Documentation 12 | [https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki) 13 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: camenduru 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: camenduru 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 13 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /paperspace.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": null, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "!rm -rf /notebooks/stable-diffusion-webui\n", 10 | "\n", 11 | "%cd /notebooks\n", 12 | "import os\n", 13 | "\n", 14 | "!apt -y update -qq\n", 15 | "\n", 16 | "!pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu116 -U\n", 17 | "!apt -y install -qq aria2\n", 18 | "!pip install -q xformers==0.0.16\n", 19 | "!pip install -q triton==2.0.0\n", 20 | "\n", 21 | "!git clone -b v1.9 https://github.com/camenduru/stable-diffusion-webui\n", 22 | "!git clone https://huggingface.co/embed/negative /notebooks/stable-diffusion-webui/embeddings/negative\n", 23 | "!git clone https://huggingface.co/embed/lora /notebooks/stable-diffusion-webui/models/Lora/positive\n", 24 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth -d /notebooks/stable-diffusion-webui/models/ESRGAN -o 4x-UltraSharp.pth\n", 25 | "!wget https://raw.githubusernotebooks.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py -O /notebooks/stable-diffusion-webui/scripts/run_n_times.py\n", 26 | "!git clone -b v1.9 https://github.com/camenduru/deforum-for-automatic1111-webui /notebooks/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui\n", 27 | "!git clone -b v1.9 https://github.com/camenduru/stable-diffusion-webui-images-browser /notebooks/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser\n", 28 | "!git clone -b v1.9 https://github.com/camenduru/stable-diffusion-webui-huggingface /notebooks/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface\n", 29 | "!git clone -b v1.9 https://github.com/camenduru/sd-civitai-browser /notebooks/stable-diffusion-webui/extensions/sd-civitai-browser\n", 30 | "!git clone -b v1.9 https://github.com/camenduru/sd-webui-additional-networks /notebooks/stable-diffusion-webui/extensions/sd-webui-additional-networks\n", 31 | "!git clone -b v1.9 https://github.com/camenduru/sd-webui-tunnels /notebooks/stable-diffusion-webui/extensions/sd-webui-tunnels\n", 32 | "!git clone -b v1.9 https://github.com/camenduru/batchlinks-webui /notebooks/stable-diffusion-webui/extensions/batchlinks-webui\n", 33 | "!git clone -b v1.9 https://github.com/camenduru/stable-diffusion-webui-catppuccin /notebooks/stable-diffusion-webui/extensions/stable-diffusion-webui-catppuccin\n", 34 | "!git clone -b v1.9 https://github.com/camenduru/a1111-sd-webui-locon /notebooks/stable-diffusion-webui/extensions/a1111-sd-webui-locon\n", 35 | "!git clone -b v1.9 https://github.com/camenduru/stable-diffusion-webui-rembg /notebooks/stable-diffusion-webui/extensions/stable-diffusion-webui-rembg\n", 36 | "!git clone -b v1.9 https://github.com/camenduru/stable-diffusion-webui-two-shot /notebooks/stable-diffusion-webui/extensions/stable-diffusion-webui-two-shot\n", 37 | "%cd /notebooks/stable-diffusion-webui\n", 38 | "!git reset --hard\n", 39 | "\n", 40 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://civitai.com/api/download/models/31212 -d /notebooks/stable-diffusion-webui/models/Stable-diffusion -o duchaitenStylelikeme_duchaitenStylelikeme.safetensors\n", 41 | "\n", 42 | "!sed -i -e '''/ prepare_environment()/a\\ os.system\\(f\\\"\"\"sed -i -e ''\\\"s/dict()))/dict())).cuda()/g\\\"'' /notebooks/stable-diffusion-webui/repositories/stable-diffusion-stability-ai/ldm/util.py\"\"\")''' /notebooks/stable-diffusion-webui/launch.py\n", 43 | "!sed -i -e 's/fastapi==0.90.1/fastapi==0.89.1/g' /notebooks/stable-diffusion-webui/requirements_versions.txt\n", 44 | "\n", 45 | "!mkdir /notebooks/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/models\n", 46 | "\n", 47 | "!python launch.py --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --multiple" 48 | ] 49 | } 50 | ], 51 | "metadata": { 52 | "language_info": { 53 | "name": "python" 54 | }, 55 | "orig_nbformat": 4 56 | }, 57 | "nbformat": 4, 58 | "nbformat_minor": 2 59 | } 60 | --------------------------------------------------------------------------------