-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_training.sh
More file actions
executable file
·37 lines (27 loc) · 1.15 KB
/
start_training.sh
File metadata and controls
executable file
·37 lines (27 loc) · 1.15 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
#!/bin/bash
echo "🚀 Starting ACT Training Session..."
# Kill existing session if it exists
if tmux has-session -t training 2>/dev/null; then
echo "⚠️ Existing 'training' session found. Killing it..."
tmux kill-session -t training
echo "✅ Old session killed."
fi
# Wait a moment for cleanup
sleep 1
echo "🆕 Creating new tmux session..."
# Start tmux session
tmux new-session -d -s training
# Left pane: training
tmux send-keys -t training "conda activate lerobot" C-m
tmux send-keys -t training "cd /home/maxboels/projects/Erewhon" C-m
tmux send-keys -t training "python src/policies/ACT/official_lerobot_trainer.py --data_dir src/robots/rover/episodes --output_dir ./outputs/lerobot_act --epochs 2 --batch_size 16 --device cuda" C-m
# Split vertical and setup GPU monitor
tmux split-window -h -t training
tmux send-keys -t training "watch -n 1 nvidia-smi" C-m
# Split right pane horizontal and setup log monitor
tmux split-window -v -t training
tmux send-keys -t training "sleep 5 && tail -f outputs/lerobot_act/lerobot_act_*/logs/batch_metrics.csv" C-m
echo "✅ Session created! Attaching..."
echo ""
# Attach to session
tmux attach -t training