-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonitor_eval.sh
More file actions
55 lines (48 loc) · 1.67 KB
/
Copy pathmonitor_eval.sh
File metadata and controls
55 lines (48 loc) · 1.67 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
48
49
50
51
52
53
54
55
#!/bin/bash
# Monitor TUSZ evaluation progress
echo "============================================"
echo "TUSZ Evaluation Progress Monitor"
echo "============================================"
echo ""
while true; do
clear
echo "============================================"
echo "TUSZ Evaluation Progress Monitor"
echo "============================================"
echo "Time: $(date '+%Y-%m-%d %H:%M:%S')"
echo ""
# Check if tmux session exists
if tmux has-session -t tusz_eval 2>/dev/null; then
echo "✅ Tmux session 'tusz_eval' is running"
echo ""
# Get last 10 lines of log
echo "Latest progress:"
echo "----------------"
tail -10 experiments/eval/FINAL_CLEAN_RUN/inference.log 2>/dev/null || echo "No log file yet"
echo ""
# Check for checkpoint file
if [ -f "experiments/eval/FINAL_CLEAN_RUN/checkpoint.pkl" ]; then
echo "✅ Checkpoint file exists"
ls -lh experiments/eval/FINAL_CLEAN_RUN/checkpoint.pkl
else
echo "⏳ Checkpoint not yet created"
fi
else
echo "❌ Tmux session 'tusz_eval' not found"
echo ""
# Check if completed
if [ -f "experiments/eval/FINAL_CLEAN_RUN/checkpoint.pkl" ]; then
echo "✅ INFERENCE COMPLETE!"
echo ""
echo "Checkpoint details:"
ls -lh experiments/eval/FINAL_CLEAN_RUN/checkpoint.pkl
echo ""
echo "Final log entries:"
tail -20 experiments/eval/FINAL_CLEAN_RUN/inference.log
exit 0
fi
fi
echo ""
echo "Press Ctrl+C to exit monitoring"
sleep 10
done