-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (27 loc) · 933 Bytes
/
Makefile
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
PYTHON = python3
PIP = pip3
VENV_DIR = .env
REQUIREMENTS = requirements.txt
SRC_DIR = src
TEST_DIR = tests
all: install convert
test:
$(PYTHON) convert.py --model=./yolo11n.onnx --node=/model.2/Split
install: $(REQUIREMENTS)
@echo "Setting up virtual environment and installing dependencies..."
@if [ ! -d "$(VENV_DIR)" ]; then \
$(PYTHON) -m venv $(VENV_DIR); \
fi
@sudo apt update && sudo apt upgrade -y
@$(VENV_DIR)/bin/$(PIP) install -r $(REQUIREMENTS)
@echo "Virtual environment created. Use 'source $(VENV_DIR)/bin/activate' to activate the environment."
clean:
@echo "Cleaning up..."
@rm -rf $(VENV_DIR)
@rm -f $(ONNX_FILE)
help:
@echo "Makefile Commands:"
@echo " make install - Set up virtual environment and install dependencies"
@echo " make test - Test spliter to split yolo11n"
@echo " make clean - Clean up generated files"
@echo " make help - Display this help message"