diff options
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 |
