-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·55 lines (47 loc) · 1.57 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·55 lines (47 loc) · 1.57 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
# Setup script for Traffic Light Detection project
set -e # Exit on error
echo "=========================================="
echo "Traffic Light Detection - Setup"
echo "=========================================="
# Check if conda is available
if ! command -v conda &> /dev/null; then
echo "Error: conda not found. Please install Miniconda or Anaconda first."
echo "Visit: https://docs.conda.io/en/latest/miniconda.html"
exit 1
fi
# Create conda environment
echo ""
echo "Creating conda environment 'eff_tlight' with Python 3.10..."
conda create -n eff_tlight python=3.10 -y
# Activate environment
echo ""
echo "Activating environment..."
source "$(conda info --base)/etc/profile.d/conda.sh"
conda activate eff_tlight
# Install dependencies
echo ""
echo "Installing Python dependencies..."
pip install -r requirements.txt
# Create necessary directories
echo ""
echo "Creating project directories..."
mkdir -p experiments
mkdir -p results/statistics
mkdir -p results/visualizations
mkdir -p results/evaluation
mkdir -p results/demo
mkdir -p samples
echo ""
echo "=========================================="
echo "Setup Complete!"
echo "=========================================="
echo ""
echo "Next steps:"
echo " 1. Activate environment: conda activate eff_tlight"
echo " 2. Set Kaggle API token: export KAGGLE_API_TOKEN=<your-token>"
echo " 3. Download LISA dataset: See KAGGLE_SETUP.md"
echo " 4. Generate patches: python tools/generate_patch_dataset.py"
echo " 5. Train model: python train.py --data-dir <patch-dir>"
echo ""
echo "For more information, see README.md"