-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_eval.sh
More file actions
47 lines (42 loc) · 1.13 KB
/
run_eval.sh
File metadata and controls
47 lines (42 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
CHECKPOINTS=(
"outputs_cloud/moco-v2/best.pt"
"outputs_cloud/barlow/best.pt"
"outputs_cloud/spark/best.pt"
)
FAILED=()
echo "========================================"
echo " PadChest Probe"
echo "========================================"
for ckpt in "${CHECKPOINTS[@]}"; do
echo ""
echo "--- probe: $ckpt ---"
if uv run python -m finetune.probe --checkpoint "$ckpt"; then
echo "OK: probe $ckpt"
else
echo "FAILED: probe $ckpt"
FAILED+=("probe:$ckpt")
fi
done
echo ""
echo "========================================"
echo " PadChest Finetune"
echo "========================================"
for ckpt in "${CHECKPOINTS[@]}"; do
echo ""
echo "--- finetune: $ckpt ---"
if uv run python -m finetune.finetune --checkpoint "$ckpt"; then
echo "OK: finetune $ckpt"
else
echo "FAILED: finetune $ckpt"
FAILED+=("finetune:$ckpt")
fi
done
echo ""
if [ ${#FAILED[@]} -eq 0 ]; then
echo "All done — no failures."
else
echo "Completed with ${#FAILED[@]} failure(s):"
for f in "${FAILED[@]}"; do echo " FAILED: $f"; done
exit 1
fi