blob: 21519f1fcf33bbff440e9401a9e524576c5e1903 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env bash
# gen_sample — pack an input/target photo pair into a CNN v3 sample directory.
#
# Usage:
# gen_sample <input> <target> <output_dir>
#
# 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 <input> <target> <output_dir>" >&2
exit 1
fi
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
python3 "$SCRIPT_DIR/pack_photo_sample.py" \
--photo "$1" \
--target "$2" \
--output "$3"
|