Fix runtime GIS uploads for operator QA
This commit is contained in:
@@ -21,7 +21,8 @@ Environment variables:
|
||||
TRAIN_BATCH Batch size. Default: 2
|
||||
TRAIN_WORKERS Data-loader workers. Default: 0
|
||||
TRAIN_DEVICE Device passed to Ultralytics. Default: cpu
|
||||
PYTHON_BIN Python executable. Default: python3
|
||||
PYTHON_BIN Python executable. Default: /opt/geointel/venv/bin/python
|
||||
when present, otherwise python3.
|
||||
|
||||
This helper is an operator/runtime smoke wrapper. It requires an existing local
|
||||
base model and an existing local dataset.yaml. It does not create app features.
|
||||
@@ -43,7 +44,13 @@ TRAIN_IMGSZ="${TRAIN_IMGSZ:-512}"
|
||||
TRAIN_BATCH="${TRAIN_BATCH:-2}"
|
||||
TRAIN_WORKERS="${TRAIN_WORKERS:-0}"
|
||||
TRAIN_DEVICE="${TRAIN_DEVICE:-cpu}"
|
||||
PYTHON_BIN="${PYTHON_BIN:-python3}"
|
||||
if [[ -z "${PYTHON_BIN:-}" ]]; then
|
||||
if [[ -x "/opt/geointel/venv/bin/python" ]]; then
|
||||
PYTHON_BIN="/opt/geointel/venv/bin/python"
|
||||
else
|
||||
PYTHON_BIN="python3"
|
||||
fi
|
||||
fi
|
||||
|
||||
DATASET_YAML="${OPERATOR_YOLO_DATASET_DIR%/}/dataset.yaml"
|
||||
SUMMARY_PATH="${TRAIN_OUTPUT_DIR%/}/${TRAIN_RUN_NAME}/training_summary.json"
|
||||
|
||||
Reference in New Issue
Block a user