revert chore: update maintenance scripts and docs (#891)

This commit is contained in:
hlky 2022-09-09 22:34:24 +01:00
parent f62e46934b
commit f659e5349d
No known key found for this signature in database
GPG Key ID: 55A99F1E80D907D5
3 changed files with 4 additions and 11 deletions

View File

@ -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=

View File

@ -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=

View File

@ -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