blob: b7182147cf7be6db1d9e085753acf0fbfa2c6f51 [file] [log] [blame]
SHELL=/bin/bash
TEST_DATA_URL=https://github.com/google-coral/edgetpu/raw/master/test_data
VENV_NAME=.env
.PHONY: venv download clean
venv:
rm -rf $(VENV_NAME)
python3 -m venv --system-site-packages $(VENV_NAME)
$(SHELL) -c "source $(VENV_NAME)/bin/activate && pip3 install --upgrade pip"
$(SHELL) -c "source $(VENV_NAME)/bin/activate && pip3 install --extra-index-url https://google-coral.github.io/py-repo/ tflite-runtime"
imagenet_labels.txt:
wget "$(TEST_DATA_URL)/$@"
ssd_mobilenet_v2_face_quant_postprocess_edgetpu.tflite:
wget "$(TEST_DATA_URL)/$@"
mobilenet_v2_1.0_224_quant_edgetpu.tflite:
wget "$(TEST_DATA_URL)/$@"
download: imagenet_labels.txt ssd_mobilenet_v2_face_quant_postprocess_edgetpu.tflite mobilenet_v2_1.0_224_quant_edgetpu.tflite
clean:
rm -rf __pycache__ \
imagenet_labels.txt \
ssd_mobilenet_v2_face_quant_postprocess_edgetpu.tflite \
mobilenet_v2_1.0_224_quant_edgetpu.tflite