-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (15 loc) · 727 Bytes
/
Makefile
File metadata and controls
17 lines (15 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
MODELS_DIR=commands/misc/tensorflow-models
.PHONY: init
init:
git submodule update --init
cd ./commands/misc/tensorflow-models/research && protoc --python_out=. ./object_detection/protos/*.proto
pip install -r requirements.txt
.PHONY: train
train: init
# cd nn && python ../commands/misc/tensorflow-models/research/object_detection/legacy/train.py --logtostderr --train_dir=training/ --pipeline_config_path=pipeline.config
TF_CPP_MIN_LOG_LEVEL=0 \
PYTHONPATH="$$PYTHONPATH:$(MODELS_DIR)/research:$(MODELS_DIR)/research/slim" \
python $(MODELS_DIR)/research/object_detection/model_main.py \
--pipeline_config_path ./nn/pipeline.config \
--model_dir ./nn/training/model \
--checkpoint_dir ./nn/training/checkpoint