diff --git a/cli/wake_word_sample_trainer b/cli/wake_word_sample_trainer index 7e172b6..a9e55dc 100644 --- a/cli/wake_word_sample_trainer +++ b/cli/wake_word_sample_trainer @@ -139,7 +139,7 @@ training_steps: window_step_ms: 10 EOF -# Replace placeholders (portable) +# Replace placeholders sed -i \ -e "s|__WAKEWORD_FEATURES__|${WORK_DIR}/wake_word_samples_augmented|g" \ -e "s|__NEG_SPEECH__|${TRAINING_DS}/negative_datasets/speech|g" \ @@ -152,7 +152,7 @@ sed -i \ # Insert/remove personal block if [ "${HAS_PERSONAL}" = "true" ]; then - # Insert directly after the wakeword feature block (matches notebook: insert(1, ...)) + # Insert directly after the wakeword feature block personal_block="$(cat <&2 + exit 1 + fi else - echo "❌ Training failed on BOTH GPU and CPU. See: ${TRAIN_LOG}" >&2 + echo "❌ Training failed (does not look GPU/OOM/runtime). See: ${TRAIN_LOG}" >&2 exit 1 fi fi @@ -291,4 +327,4 @@ echo "Metadata: ${json_path}" echo END_TS=$EPOCHSECONDS print_elapsed_time "${START_TS}" "${END_TS}" "Training completed." -echo +echo \ No newline at end of file