diff options
| author | skal <pascal.massimino@gmail.com> | 2026-03-24 23:14:13 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-03-24 23:14:57 +0100 |
| commit | 0d561bed8772c28da8f49cd0b16f503c93b0f77d (patch) | |
| tree | 0f97238c9a66564b82554270e49306aed78bc024 /cnn_v3/training/go.sh | |
| parent | 68e1e7cfb007546e493c469395c253c7a5937585 (diff) | |
add more samples + tool html
Diffstat (limited to 'cnn_v3/training/go.sh')
| -rwxr-xr-x | cnn_v3/training/go.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cnn_v3/training/go.sh b/cnn_v3/training/go.sh new file mode 100755 index 0000000..31ac655 --- /dev/null +++ b/cnn_v3/training/go.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +i=0 +for f in input/*.jpg; do + name=$(basename "${f%.jpg}") + convert ${f} ${name}.png + index=$(printf "%03d" "$i") + echo "processing ${name} ${index}" + python3 pack_photo_sample.py --photo "${name}.png" \ + --target target_1/${name}_out.png \ + --output dataset/simple/sample_${index}/ + ((i++)) +done |
