From 0de5a16a89dee525e650f371892c7ab4db7211fa Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Mon, 2 May 2022 13:48:11 +0200 Subject: [PATCH] Fix remote training --- .gitignore | 1 + Training/train.sh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2343e9c..8b25738 100644 --- a/.gitignore +++ b/.gitignore @@ -71,3 +71,4 @@ Package.resolved CapCollectorServer.xcodeproj Training/images/ Training/backup/ +Training/classifier.version diff --git a/Training/train.sh b/Training/train.sh index 5ab7d8e..471622c 100755 --- a/Training/train.sh +++ b/Training/train.sh @@ -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