12 lines
265 B
Bash
Executable File
12 lines
265 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Args:
|
|
# path to predictions (CSV)
|
|
# path to images
|
|
|
|
tail -n+2 $1 | shuf | while read -r i; do
|
|
ID=$(echo $i | cut -d ',' -f1)
|
|
PRED=$(echo $i | cut -d ',' -f2)
|
|
echo "ID $ID: is_iceberg = $PRED" && gwenview $2/$ID.png 2>/dev/null
|
|
done
|