mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-14 23:02:00 +03:00
revert chore: update maintenance scripts and docs (#891)
This commit is contained in:
parent
f62e46934b
commit
f659e5349d
@ -1,9 +1,5 @@
|
||||
@echo off
|
||||
|
||||
:: 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
|
||||
set conda_env_name=ldm
|
||||
|
||||
:: Put the path to conda directory after "=" sign if it's installed at non-standard path:
|
||||
set custom_conda_path=
|
||||
|
@ -1,9 +1,6 @@
|
||||
@echo off
|
||||
|
||||
:: 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
|
||||
set conda_env_name=ldm
|
||||
|
||||
:: 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} ..."
|
||||
PIP_EXISTS_ACTION=w conda env update --file $ENV_FILE --prune
|
||||
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