Fix not created directory

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-06-03 11:45:09 +02:00
parent 5ea412a2d0
commit 9e0edb5d79

View File

@ -181,6 +181,7 @@ def _test(args: argparse.Namespace) -> None:
def _ssd_test(args: argparse.Namespace) -> None:
import glob
import os
import pickle
import numpy as np
@ -199,6 +200,7 @@ def _ssd_test(args: argparse.Namespace) -> None:
label_file = f"{output_path}/labels.bin"
predictions_file = f"{output_path}/predictions.bin"
predictions_per_class_file = f"{output_path}/predictions_class.bin"
os.makedirs(evaluation_path, exist_ok=True)
# retrieve labels and un-batch them
files = glob.glob(f"{output_path}/*ssd_labels*")