Commit 14acd6dd authored by Ketil Malde's avatar Ketil Malde
Browse files

Added test case to Makefile

parent 50f7b56e
......@@ -3,7 +3,7 @@
IMAGENAME = keras-retinanet
CONFIG = tensorflow
COMMAND = bash
DISKS = -v $(PWD)/../../imagesim-docker:/data:ro -v $(PWD):/project
DISKS = -v $(PWD)/../imagesim-docker:/data:ro -v $(PWD):/project
PORT =
# For jupyter:
# PORT = -p 8888:8888
......@@ -40,8 +40,8 @@ default: .docker
# $(WEIGHTS): src/download_weights.py
# $(RUNCMD) python3 src/download_weights.py
train: .docker $(WEIGHTS)
train: .docker
$(RUNCMD) python3 /src/keras-retinanet/keras_retinanet/bin/train.py csv /data/train.csv /data/classes.csv --val-annotations /data/validation/validation.csv
test: .docker src/test.py $(WEIGHTS)
$(RUNCMD) python3 src/test.py
test: .docker
$(RUNCMD) python3 /src/keras-retinanet/keras_retinanet/bin/evaluate.py csv /data/test_annotations.csv /data/classes.csv snapshots/$(shell ls -t snapshots | head -1) --convert-model
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment