-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrain_fast.sh
More file actions
executable file
·41 lines (34 loc) · 1.33 KB
/
train_fast.sh
File metadata and controls
executable file
·41 lines (34 loc) · 1.33 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
#!/bin/bash
# LARUN Fast Training Launcher
# Uses distributed training with parallel data fetching
echo "╔══════════════════════════════════════════════════════════════╗"
echo "║ LARUN Fast Training ║"
echo "╚══════════════════════════════════════════════════════════════╝"
# Activate virtual environment if exists
if [ -d "venv" ]; then
source venv/bin/activate
fi
# Check for required packages
python3 -c "import lightkurve" 2>/dev/null || {
echo "Installing dependencies..."
pip install -q lightkurve astroquery tensorflow scikit-learn
}
# Default settings (can be overridden)
WORKERS=${1:-8}
PLANETS=${2:-50}
EPOCHS=${3:-50}
echo ""
echo "Settings:"
echo " Workers: $WORKERS (parallel downloads)"
echo " Planets: $PLANETS"
echo " Epochs: $EPOCHS"
echo ""
# Run distributed training
python3 distributed/train_distributed.py \
--workers $WORKERS \
--planets $PLANETS \
--non-planets $PLANETS \
--epochs $EPOCHS \
--output ./models/distributed
echo ""
echo "Training complete! Models saved to ./models/distributed"