Use images in public folder for training

This commit is contained in:
Christoph Hagen 2022-05-24 12:50:09 +02:00
parent 6317d5ccd0
commit 430a3820f4
2 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View File

@ -69,7 +69,7 @@ fastlane/test_output
Package.resolved
.swiftpm/
Training/images/
Public/images/
Training/backup/
Training/classifier.version

View File

@ -28,10 +28,10 @@
########### PATHS ######################################################################
WORK_DIR="${HOME}/Projects/Caps/Caps-Server/Training"
BACKUP_DIR="${WORK_DIR}/backup"
IMAGE_DIR="${WORK_DIR}/images"
VERSION_FILE="${WORK_DIR}/classifier.version"
MODEL_FILE="${WORK_DIR}/classifier.mlmodel"
BACKUP_DIR="./backup"
IMAGE_DIR="../Public/images"
VERSION_FILE="./classifier.version"
MODEL_FILE="./classifier.mlmodel"
TRAINING_ITERATIONS="17"
SSH_PORT="5432"
@ -50,7 +50,7 @@ if [ $retVal -ne 0 ]; then
fi
echo "[INFO] Getting classifier version from server..."
scp -P $SSH_PORT ${SERVER}:/${SERVER_ROOT_PATH}/classifier.version $WORK_DIR
scp -P $SSH_PORT ${SERVER}:/${SERVER_ROOT_PATH}/classifier.version .
retVal=$?
if [ $retVal -ne 0 ]; then