diff --git a/scripts/train.sh b/scripts/train.sh index ec50fa1..f3f99c0 100644 --- a/scripts/train.sh +++ b/scripts/train.sh @@ -83,5 +83,9 @@ fi MODELPATH=$(realpath "../models/${ID}/weights/best.onnx") curl -s -X POST \ - -F "model@${MODELPATH}" \ + -F "model=@${MODELPATH}" \ "${YOLO_WEB_URL}/job/${ID}" + +if [ -f ./scripts/completed_mail.sh ]; then + bash ./scripts/completed_mail.sh "${JSON}" +fi