diff --git a/README.md b/README.md index d5cb7b8..e18d3b8 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,8 @@ Then redo the installation instruction within the kohya_ss venv. ## Change history +* 2023/02/15 (v20.7.3): + - Update upgrade.ps1 script * 2023/02/11 (v20.7.2): - `lora_interrogator.py` is added in `networks` folder. See `python networks\lora_interrogator.py -h` for usage. - For LoRAs where the activation word is unknown, this script compares the output of Text Encoder after applying LoRA to that of unapplied to find out which token is affected by LoRA. Hopefully you can figure out the activation word. LoRA trained with captions does not seem to be able to interrogate. diff --git a/upgrade.ps1 b/upgrade.ps1 index cf46b68..2cd8f79 100644 --- a/upgrade.ps1 +++ b/upgrade.ps1 @@ -1,3 +1,14 @@ +# Check if there are any changes that need to be committed +if (git status --short) { + Write-Error "There are changes that need to be committed. Please stash or undo your changes before running this script." + return +} + +# Pull the latest changes from the remote repository git pull + +# Activate the virtual environment .\venv\Scripts\activate + +# Upgrade the required packages pip install --upgrade -r requirements.txt \ No newline at end of file