diff --git a/script/get-preprocessed-dataset-imagenet/run.bat b/script/get-preprocessed-dataset-imagenet/run.bat index bdeca68fd..3ee17691b 100644 --- a/script/get-preprocessed-dataset-imagenet/run.bat +++ b/script/get-preprocessed-dataset-imagenet/run.bat @@ -1,4 +1,4 @@ @echo off -%MLC_PYTHON_BIN% %MLC_TMP_CURRENT_SCRIPT_PATH%\preprocess.py +"%MLC_PYTHON_BIN%" "%MLC_TMP_CURRENT_SCRIPT_PATH%\preprocess.py" IF %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL% diff --git a/script/get-preprocessed-dataset-imagenet/run.sh b/script/get-preprocessed-dataset-imagenet/run.sh index 04b4b3cff..436b11582 100644 --- a/script/get-preprocessed-dataset-imagenet/run.sh +++ b/script/get-preprocessed-dataset-imagenet/run.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [ ! -z ${MLC_IMAGENET_PREPROCESSED_PATH+x} ]; then +if [ ! -z "${MLC_IMAGENET_PREPROCESSED_PATH+x}" ]; then exit 0 fi -${MLC_PYTHON_BIN_WITH_PATH} ${MLC_TMP_CURRENT_SCRIPT_PATH}/preprocess.py +"${MLC_PYTHON_BIN_WITH_PATH}" "${MLC_TMP_CURRENT_SCRIPT_PATH}/preprocess.py" test $? -eq 0 || exit 1