-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa3b4c7
commit a86c554
Showing
10 changed files
with
96 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ROOT_1/opt/ai-dock/bin/set-kohya-flags.sh → ..._ROOT_1/opt/ai-dock/bin/set-kohya-args.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
echo "$@" > /etc/kohya_ss_flags.conf | ||
echo "$@" > /etc/kohya_ss_args.conf | ||
supervisorctl restart kohya_ss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,37 @@ | ||
#!/bin/bash | ||
umask 002 | ||
branch=master | ||
|
||
source /opt/ai-dock/etc/environment.sh | ||
source /opt/ai-dock/bin/venv-set.sh kohya | ||
|
||
if [[ -n "${KOHYA_BRANCH}" ]]; then | ||
branch="${KOHYA_BRANCH}" | ||
if [[ -n "${KOHYA_REF}" ]]; then | ||
ref="${KOHYA_REF}" | ||
else | ||
# The latest tagged release | ||
ref="$(curl -s https://api.github.com/repos/bmaltais/kohya_ss/tags | \ | ||
jq -r '.[0].name')" | ||
fi | ||
|
||
# -b flag has priority | ||
while getopts b: flag | ||
# -r argument has priority | ||
while getopts r: flag | ||
do | ||
case "${flag}" in | ||
b) branch="$OPTARG";; | ||
r) ref="$OPTARG";; | ||
esac | ||
done | ||
|
||
printf "Updating Kohya's GUI (${branch})...\n" | ||
[[ -n $ref ]] || { echo "Failed to get update target"; exit 1; } | ||
|
||
printf "Updating Kohya's GUI (${ref})...\n" | ||
|
||
cd /opt/kohya_ss | ||
git stash | ||
git fetch --tags | ||
git checkout ${branch} | ||
git checkout ${ref} | ||
git pull | ||
git submodule update --recursive | ||
|
||
printf "\n%s\n" '#myTensorButton, #myTensorButtonStop {display:none!important;}' >> assets/style.css | ||
|
||
"$KOHYA_VENV_PIP" install --no-cache-dir \ | ||
-r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters