-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·37 lines (29 loc) · 924 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·37 lines (29 loc) · 924 Bytes
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 "======================================"
echo "YOLO Detection GUI - Setup Script"
echo "======================================"
# Check Python version
python_version=$(python3 --version 2>&1 | awk '{print $2}')
echo "Python version: $python_version"
# Create virtual environment
echo "Creating virtual environment..."
python3 -m venv venv
# Activate virtual environment
echo "Activating virtual environment..."
source venv/bin/activate
# Upgrade pip
echo "Upgrading pip..."
pip install --upgrade pip
# Install requirements
echo "Installing dependencies..."
pip install -r requirements.txt
# Create necessary directories
echo "Creating project directories..."
mkdir -p models
mkdir -p assets/icons
mkdir -p assets/samples
mkdir -p outputs
echo "======================================"
echo "Setup complete!"
echo "Run './run.sh' to start the application"
echo "======================================"