-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.ps1
30 lines (24 loc) · 902 Bytes
/
install.ps1
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
# Script to initially populate all dependencies.
Write-Host "* Installing pip dependencies..."
# make sure to activate virtual environment
./venv/scripts/activate.ps1
if(!$?) {
Write-Host "ERROR: Don't forget to setup virtual environment with: python -m venv venv"
Exit
}
# upgrade pip
pip install --upgrade pip
# install all dependencies
pip install -r requirements.txt
Write-Host "* Configuring credential files..."
# This is for entering your super secret passwords
python setup_credentials.py
Write-Host "* Checking out yolov5 repository..."
# Remove `yolov5/` directory if it exists
Remove-Item yolov5 -Recurse -Force -ErrorAction SilentlyContinue
# Clone the repo
git clone https://github.com/ultralytics/yolov5
cd yolov5
# Always check out the same version of the repository to avoid future yolov5 changes messing me up
git checkout 959a4665f820362c95f7435dc05175deeff19671
cd ..