-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 1.29 KB
/
Makefile
File metadata and controls
39 lines (30 loc) · 1.29 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
install-for-pi:
echo "Installing for Raspberry Pi"
sudo apt update
sudo apt install python3-picamera2
# Inherit system site packages for picamera2
python -m venv .venv --system-site-packages
source .venv/bin/activate
# This may take a long time
pip install -r requirements.txt
# Breaks usage of imshow, etc.
pip uninstall opencv-python-headless -y
# Check if .env file exists, if not, copy .env.sample to .env
# Only necessary if you want to train custom models
@if [ ! -f .env ]; then cp .env.sample .env; echo "Copied .env.sample to .env" ; fi echo ".env already exists"
install-for-windows:
echo "Installing for development on Windows"
python -m venv .venv
.venv\Scripts\activate
# This may take a long time
pip install -r requirements.txt
# Breaks usage of imshow, etc.
pip uninstall opencv-python-headless -y
run-main:
python src/main.py --verbose
run-main-scholars-mate-white-pov:
python src/main.py --debug-use-image-dir "test/scholars mate game white pov" --debug-play-image-dir --verbose
run-main-test-castling-white-pov:
python src/main.py --debug-use-image-dir "test/test castling white pov" --debug-play-image-dir --verbose
run-main-test-white-promotion-white-pov:
python src/main.py --debug-use-image-dir "test/test white promotion white pov" --debug-play-image-dir --verbose