Fix remote training
This commit is contained in:
parent
c511593594
commit
0de5a16a89
1
.gitignore
vendored
1
.gitignore
vendored
@ -71,3 +71,4 @@ Package.resolved
|
||||
CapCollectorServer.xcodeproj
|
||||
Training/images/
|
||||
Training/backup/
|
||||
Training/classifier.version
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user