From 2ef4db7008f71353cf48889d39552a66770541ed Mon Sep 17 00:00:00 2001 From: soaska <79996669747@ya.ru> Date: Fri, 3 May 2024 18:30:50 +0300 Subject: [PATCH] added install instructions --- .env | 6 ++++++ .gitea/workflows/on_pull_request.yaml | 2 ++ .gitea/workflows/run_tests.yaml | 2 ++ .gitignore | 8 +++---- README.md | 31 +++++++++++++++++++++++++-- 5 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 00000000..6d24d8f2 --- /dev/null +++ b/.env @@ -0,0 +1,6 @@ +## Infinite Image Browsing +IIB_SECRET_KEY=0 +IIB_SERVER_LANG=auto +IIB_DB_FILE_BACKUP_MAX=16 +IIB_ACCESS_CONTROL=auto +IIB_ACCESS_CONTROL_PERMISSION=read-write diff --git a/.gitea/workflows/on_pull_request.yaml b/.gitea/workflows/on_pull_request.yaml index 97bdd166..b24fd2e4 100644 --- a/.gitea/workflows/on_pull_request.yaml +++ b/.gitea/workflows/on_pull_request.yaml @@ -10,6 +10,8 @@ jobs: runs-on: soaska if: gitea.event_name != 'pull_request' || gitea.event.pull_request.head.repo.full_name != gitea.event.pull_request.base.repo.full_name steps: + - name: Prepare env + run: apk add git curl python3 - name: Checkout Code uses: actions/checkout@v3 - uses: actions/setup-python@v4 diff --git a/.gitea/workflows/run_tests.yaml b/.gitea/workflows/run_tests.yaml index 08e6e19c..625feede 100644 --- a/.gitea/workflows/run_tests.yaml +++ b/.gitea/workflows/run_tests.yaml @@ -13,6 +13,8 @@ jobs: runs-on: soaska if: gitea.event_name != 'pull_request' || gitea.event.pull_request.head.repo.full_name != gitea.event.pull_request.base.repo.full_name steps: + - name: Prepare env + run: apk add git curl python3 - name: Checkout Code uses: actions/checkout@v3 - name: Set up Python 3.10 diff --git a/.gitignore b/.gitignore index 22db139d..dbe0d058 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,5 @@ __pycache__ -*.ckpt -*.safetensors -*.pth +/extensions /ESRGAN/* /SwinIR/* /repositories @@ -29,7 +27,6 @@ notification.mp3 /SwinIR /textual_inversion .vscode -/extensions /test/stdout.txt /test/stderr.txt /cache.json* @@ -40,4 +37,5 @@ notification.mp3 /test/test_outputs /test/results.xml coverage.xml -**/tests/**/expectations \ No newline at end of file +**/tests/**/expectations +models/Stable-diffusion/realisticVisionV51_v51VAE.safetensors diff --git a/README.md b/README.md index 13d66c4b..eb312afc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MySD -This reposytory is just my version for faster installation of [sd-webui-forge](https://github.com/lllyasviel/stable-diffusion-webui-forge) +This reposytory is just my version for faster installation of [sd-webui-forge](https://github.com/lllyasviel/stable-diffusion-webui-forge). # Changes: @@ -9,4 +9,31 @@ This reposytory is just my version for faster installation of [sd-webui-forge](h - Added upscalers - Installed some basic (as for me) plugins -#### Now you can call it bloated \ No newline at end of file +#### Now you can call it bloated + +# Install + +```shell +git clone https://soaska.ru/soaska/my-sd.git +cd my-sd/ + +cd models/ +mkdir ESRGAN +cd ESRGAN/ + +curl -OJ https://soaska.ru/api/packages/soaska/generic/upscalers/1.0/ESRGAN_4x.pth +curl -OJ https://soaska.ru/api/packages/soaska/generic/upscalers/1.0/4x-AnimeSharp.pth +curl -OJ https://soaska.ru/api/packages/soaska/generic/upscalers/1.0/4x_foolhardy_Remacri.pth +curl -OJ https://soaska.ru/api/packages/soaska/generic/upscalers/1.0/4x_NMKD-Siax_200k.pth +curl -OJ https://soaska.ru/api/packages/soaska/generic/upscalers/1.0/4x-Ultrasharp.pth +curl -OJ https://soaska.ru/api/packages/soaska/generic/upscalers/1.0/8x_NMKD-Superscale_150000_G.pth + +cd ../../ + +python3 -m venv venv +pip install -r requirements.txt + +bash ./webui.sh +``` + +It`s basic install instructions. There are some specific for your hardware. Good luck searching net to get better performance. \ No newline at end of file