Fix remote training

This commit is contained in:
Christoph Hagen 2022-05-02 13:48:11 +02:00
parent c511593594
commit 0de5a16a89
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -71,3 +71,4 @@ Package.resolved
CapCollectorServer.xcodeproj
Training/images/
Training/backup/
Training/classifier.version

View File

@ -27,7 +27,7 @@
########### PATHS ######################################################################
WORK_DIR="${HOME}/Projects/CapCollectorServer/Training"
WORK_DIR="${HOME}/Projects/Caps/Caps-Server/Training"
BACKUP_DIR="${WORK_DIR}/backup"
IMAGE_DIR="${WORK_DIR}/images"
VERSION_FILE="${WORK_DIR}/classifier.version"
@ -35,7 +35,7 @@ MODEL_FILE="${WORK_DIR}/classifier.mlmodel"
TRAINING_ITERATIONS="17"
SSH_PORT="5432"
SERVER="pi@pi4"
SERVER="pi@christophhagen.de"
SERVER_ROOT_PATH="/data/servers/caps/Public"
########################################################################################
@ -73,7 +73,7 @@ if [ $retVal -ne 0 ]; then
fi
echo "[INFO] Transferring images from server..."
rsync -hvrPut -e "ssh -p ${SSH_PORT}" ${SERVER}:/${SERVER_ROOT_PATH}/images/ "${IMAGE_DIR}"
rsync -hrut --info=progress2 -e "ssh -p ${SSH_PORT}" ${SERVER}:/${SERVER_ROOT_PATH}/images/ "${IMAGE_DIR}"
retVal=$?
if [ $retVal -ne 0 ]; then