1
0
This commit is contained in:
syui 2024-02-17 19:15:55 +09:00
parent 929d4dd7cf
commit 7aee2037fb
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ case "$1" in
echo "machinectl reset done"
;;
*)
sudo machinectl start $name
#sudo machinectl start $name
t=`ssh $name "$*"`
if [ -z "$t" ];then
ssh -tt $name "$*"

View File

@ -93,8 +93,8 @@ function run(){
if [ -f $f_sleep ];then
rm $f_sleep
fi
ssh ue "conda activate ldm;cd ./stable-diffusion/;python safe.py \'${q}\' ${m}"
scp -r ue:stable-diffusion/t.png $f
ssh diffusers "conda activate ldm;cd ./stable-diffusion/;python safe.py \'${q}\' ${m}"
scp -r diffusers:stable-diffusion/t.png $f
if [ $? -ne 0 ];then
touch $f_sleep
fi