Skip to content

Commit

Permalink
revert chore: update maintenance scripts and docs (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
hlky committed Sep 9, 2022
1 parent f62e469 commit f659e53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
6 changes: 1 addition & 5 deletions webui-streamlit.cmd
Original file line number Diff line number Diff line change
@@ -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=
Expand Down
5 changes: 1 addition & 4 deletions webui.cmd
Original file line number Diff line number Diff line change
@@ -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=
Expand Down
4 changes: 2 additions & 2 deletions webui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

0 comments on commit f659e53

Please sign in to comment.