From 941e511cbb97e5230158a39beec1cd530387de06 Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 22 Mar 2026 07:33:28 +0100 Subject: feat(cnn_v3): gen_sample tool + 7 simple training samples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pack_photo_sample.py: --target now required (no albedo fallback) - gen_sample.py: bash wrapper with positional args (input target output_dir) - input/photo7.jpg: copy of photo2 (second style target) - target_1: photo2_1_out→photo2_out, photo2_2_out→photo7_out - dataset/simple/sample_001..007: 7 packed photo/target pairs handoff(Gemini): training data ready; next step is train_cnn_v3.py run --- cnn_v3/training/gen_sample.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 cnn_v3/training/gen_sample.sh (limited to 'cnn_v3/training') diff --git a/cnn_v3/training/gen_sample.sh b/cnn_v3/training/gen_sample.sh new file mode 100755 index 0000000..21519f1 --- /dev/null +++ b/cnn_v3/training/gen_sample.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +# gen_sample — pack an input/target photo pair into a CNN v3 sample directory. +# +# Usage: +# gen_sample +# +# Example: +# gen_sample input/photo1.jpg target_1/photo1_out.png dataset/simple/sample_001 + +set -euo pipefail + +if [ $# -ne 3 ]; then + echo "Usage: gen_sample " >&2 + exit 1 +fi + +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +python3 "$SCRIPT_DIR/pack_photo_sample.py" \ + --photo "$1" \ + --target "$2" \ + --output "$3" -- cgit v1.2.3