forked from surfriderfoundationeurope/mot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (39 loc) · 1.51 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
docker_training_name = mot_training_$(USER)
docker_tests_name = mot_tests_$(USER)
docker_serving_name = mot_serving_$(USER)
install:
pip install ./
install-dev:
pip install -e ./
python scripts/download_models_and_files.py
tests:
./tests/prepare_tests.sh
./tests/run_tests.sh
docker-training:
docker build -t mot_training -f docker/Dockerfile.training .
docker stop $(docker_training_name) || true
docker rm $(docker_training_name) || true
docker run --name $(docker_training_name) -p $(PORT_JUPYTER):8888 -p $(PORT_TENSORBOARD):6006 -v /srv/data:/srv/data -v $(HOME):/workspace -it mot_training
docker-exec-training:
docker exec -it $(docker_training_name) bash
docker-tests:
docker build -t mot_tests -f docker/Dockerfile.tests .
docker stop $(docker_tests_name) || true
docker rm $(docker_tests_name) || true
docker run --name $(docker_tests_name) mot_tests
up-tests:
docker build -t mot_tests -f docker/Dockerfile.tests .
docker stop $(docker_tests_name) || true
docker rm $(docker_tests_name) || true
docker run -it --entrypoint bash --name $(docker_tests_name) -v $(HOME):/workspace mot_tests
docker-serving:
docker stop $(docker_serving_name) || true
docker rm $(docker_serving_name) || true
rm -r serving || true
cp -r $(MODEL_FOLDER) serving
docker build -f docker/Dockerfile.serving -t mot_serving .
rm -r serving
docker run -t --rm --name $(docker_serving_name) -p $(PORT):5000 --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES \
-e MODEL_NAME=serving \
mot_serving
.PHONY: tests docker