From d94265f2c2658e69bb20c69a0c17f18317191b85 Mon Sep 17 00:00:00 2001 From: yejianwu Date: Mon, 12 Feb 2018 18:15:34 +0800 Subject: [PATCH] fix os.path.join absolute path in mace_tools.py --- config | 1 - mace_tools.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config b/config index 0d69f36f..bf0382a8 100644 --- a/config +++ b/config @@ -10,7 +10,6 @@ MODEL_TAG=mobile_net INPUT_SHAPE=1,64,64,3 OUTPUT_SHAPE=1,64,64,2 RUNTIME=gpu -TUNING_OR_NOT=1 ANDROID_ABI=armeabi-v7a ; Or 'arm64-v8a' LIMIT_OPENCL_KERNEL_TIME=0 DSP_MODE=0 ; used only for dsp diff --git a/mace_tools.py b/mace_tools.py index e201e49c..7c6c0f05 100644 --- a/mace_tools.py +++ b/mace_tools.py @@ -199,14 +199,14 @@ def parse_model_configs(): for model_dir in model_dirs: # Create output dirs - model_output_dir = os.path.join(FLAGS.output_dir, model_dir) + model_output_dir = FLAGS.output_dir + "/" + model_dir model_output_map[model_dir] = model_output_dir else: model_dirs = [global_config_dir] # Create output dirs - model_output_dir = os.path.join(FLAGS.output_dir, global_config_dir) + model_output_dir = FLAGS.output_dir + "/" + global_config_dir model_output_map[global_config_dir] = model_output_dir except Exception as e: print("Error in read model path msg. Exception: {}".format(e)) -- GitLab