mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-14 23:02:00 +03:00
chore: update maintenance scripts and docs (#891)
* automate conda_env_name as per name in yaml * Embed installation links directly in README.md Include links to Windows, Linux, and Google Colab installations. * Fix conda update in webui.sh for pip bug * Add info about new PRs Co-authored-by: Hafiidz <3688500+Hafiidz@users.noreply.github.com> Co-authored-by: Tom Pham <54967380+TomPham97@users.noreply.github.com> Co-authored-by: GRMrGecko <grmrgecko@gmail.com>
This commit is contained in:
parent
c3b1facef3
commit
a05a4a9b0a
@ -1,12 +1,17 @@
|
||||
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/altryne/sd-webui-colab/blob/main/Stable_Diffusion_WebUi_Altryne.ipynb)
|
||||
|
||||
# [Installation](https://github.com/sd-webui/stable-diffusion-webui/wiki/Installation)
|
||||
# Installation instructions for [Windows](https://github.com/sd-webui/stable-diffusion-webui/wiki/Installation), [Linux](https://github.com/sd-webui/stable-diffusion-webui/wiki/Linux-Automated-Setup-Guide), or [Google Colab](https://colab.research.google.com/github/altryne/sd-webui-colab/blob/main/Stable_Diffusion_WebUi_Altryne.ipynb)
|
||||
|
||||
### Have an **issue**?
|
||||
|
||||
* If the issue involves _a bug_ in **textual-inversion** create the issue on **_[sd-webui/stable-diffusion-webui](https://github.com/sd-webui/stable-diffusion-webui)_**
|
||||
* If you want to know how to **activate** or **use** textual-inversion see **_[hlky/sd-enable-textual-inversion](https://github.com/hlky/sd-enable-textual-inversion)_**. Activation not working? create the issue on **_[sd-webui/stable-diffusion-webui](https://github.com/sd-webui/stable-diffusion-webui)_**
|
||||
|
||||
### Want to contribute?
|
||||
|
||||
Open new Pull Requests against `dev` branch!
|
||||
|
||||
**If you're thinking about adding a new feature to Web UI focus on the Streamlit version (webui_streamlit.py) which is in active development.**
|
||||
|
||||
## More documentation about features, troubleshooting, common issues very soon
|
||||
### Want to help with documentation? Documented something? Use [Discussions](https://github.com/sd-webui/stable-diffusion-webui/discussions)
|
||||
|
@ -1,5 +1,9 @@
|
||||
@echo off
|
||||
set conda_env_name=ldm
|
||||
|
||||
:: copy over the first line from environment.yaml, e.g. name: ldm, and take the second word after splitting by ":" delimiter
|
||||
set /p first_line=< environment.yaml
|
||||
for /f "tokens=2 delims=:" %%i in ("%first_line%") do set conda_env_name=%%i
|
||||
echo Environment name is set as %conda_env_name% as per environment.yaml
|
||||
|
||||
:: Put the path to conda directory after "=" sign if it's installed at non-standard path:
|
||||
set custom_conda_path=
|
||||
|
@ -1,6 +1,9 @@
|
||||
@echo off
|
||||
|
||||
set conda_env_name=ldm
|
||||
:: copy over the first line from environment.yaml, e.g. name: ldm, and take the second word after splitting by ":" delimiter
|
||||
set /p first_line=< environment.yaml
|
||||
for /f "tokens=2 delims=:" %%i in ("%first_line%") do set conda_env_name=%%i
|
||||
echo Environment name is set as %conda_env_name% as per environment.yaml
|
||||
|
||||
:: Put the path to conda directory after "=" sign if it's installed at non-standard path:
|
||||
set custom_conda_path=
|
||||
|
4
webui.sh
4
webui.sh
@ -37,7 +37,7 @@ if ! conda env list | grep ".*${ENV_NAME}.*" >/dev/null 2>&1; then
|
||||
ENV_UPDATED=1
|
||||
elif [[ ! -z $CONDA_FORCE_UPDATE && $CONDA_FORCE_UPDATE == "true" ]] || (( $ENV_MODIFIED > $ENV_MODIFIED_CACHED )); then
|
||||
echo "Updating conda env: ${ENV_NAME} ..."
|
||||
conda env update --file $ENV_FILE --prune
|
||||
PIP_EXISTS_ACTION=w conda env update --file $ENV_FILE --prune
|
||||
ENV_UPDATED=1
|
||||
fi
|
||||
|
||||
@ -56,4 +56,4 @@ if [ ! -e "models/ldm/stable-diffusion-v1/model.ckpt" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
python scripts/relauncher.py
|
||||
python scripts/relauncher.py
|
||||
|
Loading…
Reference in New Issue
Block a user