diff --git a/mindspore-lite/examples/cloud_infer/quick_start_java/build.sh b/mindspore-lite/examples/cloud_infer/quick_start_java/build.sh index 2a32577360eaa8b20f1a2322e97404a8917ea880..3425e7f5743a37a3caeb215e88dcd71437293d8b 100644 --- a/mindspore-lite/examples/cloud_infer/quick_start_java/build.sh +++ b/mindspore-lite/examples/cloud_infer/quick_start_java/build.sh @@ -29,10 +29,12 @@ mkdir -p lib/runtime mkdir -p lib/tools/converter mkdir -p model if [ ! -e ${BASEPATH}/model/mobilenetv2.mindir ]; then - wget -c -O ${BASEPATH}/model/mobilenetv2.mindir --no-check-certificate ${MODEL_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/mobilenetv2.mindir from ${MODEL_DOWNLOAD_URL}" + exit 1 fi if [ ! -e ${BASEPATH}/build/${MINDSPORE_FILE} ]; then - wget -c -O ${BASEPATH}/build/${MINDSPORE_FILE} --no-check-certificate ${MINDSPORE_LITE_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/build/${MINDSPORE_FILE} from ${MINDSPORE_LITE_DOWNLOAD_URL}" + exit 1 fi tar xzvf ${BASEPATH}/build/${MINDSPORE_FILE} -C ${BASEPATH}/build/ diff --git a/mindspore-lite/examples/cloud_infer/quick_start_parallel_cpp/build.sh b/mindspore-lite/examples/cloud_infer/quick_start_parallel_cpp/build.sh index f7a0c496e9de95b286f6c5918783f0a998b302bc..a9a0e7e0da24d076013e9d3e680d92a94e38d702 100644 --- a/mindspore-lite/examples/cloud_infer/quick_start_parallel_cpp/build.sh +++ b/mindspore-lite/examples/cloud_infer/quick_start_parallel_cpp/build.sh @@ -26,10 +26,12 @@ MINDSPORE_LITE_DOWNLOAD_URL="https://ms-release.obs.cn-north-4.myhuaweicloud.com mkdir -p model if [ ! -e ${BASEPATH}/model/mobilenetv2.mindir ]; then - wget -c -O ${BASEPATH}/model/mobilenetv2.mindir --no-check-certificate ${MODEL_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/mobilenetv2.mindir from ${MODEL_DOWNLOAD_URL}" + exit 1 fi if [ ! -e ${BASEPATH}/${MINDSPORE_FILE} ]; then - wget -c -O ${BASEPATH}/${MINDSPORE_FILE} --no-check-certificate ${MINDSPORE_LITE_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/${MINDSPORE_FILE} from ${MINDSPORE_LITE_DOWNLOAD_URL}" + exit 1 fi tar xzvf ${BASEPATH}/${MINDSPORE_FILE} export LITE_HOME=${BASEPATH}/${MINDSPORE_FILE_NAME} diff --git a/mindspore-lite/examples/cloud_infer/quick_start_parallel_java/build.sh b/mindspore-lite/examples/cloud_infer/quick_start_parallel_java/build.sh index fa58061fc780dbecd344960a174e8038ced2d6d5..901e750ef6142d8934d120190e7d206750ee1d4b 100644 --- a/mindspore-lite/examples/cloud_infer/quick_start_parallel_java/build.sh +++ b/mindspore-lite/examples/cloud_infer/quick_start_parallel_java/build.sh @@ -29,10 +29,12 @@ mkdir -p lib/runtime mkdir -p lib/tools/converter mkdir -p model if [ ! -e ${BASEPATH}/model/mobilenetv2.mindir ]; then - wget -c -O ${BASEPATH}/model/mobilenetv2.mindir --no-check-certificate ${MODEL_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/mobilenetv2.mindir from ${MODEL_DOWNLOAD_URL}" + exit 1 fi if [ ! -e ${BASEPATH}/build/${MINDSPORE_FILE} ]; then - wget -c -O ${BASEPATH}/build/${MINDSPORE_FILE} --no-check-certificate ${MINDSPORE_LITE_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/build/${MINDSPORE_FILE} from ${MINDSPORE_LITE_DOWNLOAD_URL}" + exit 1 fi tar xzvf ${BASEPATH}/build/${MINDSPORE_FILE} -C ${BASEPATH}/build/ diff --git a/mindspore-lite/examples/cloud_infer/quick_start_parallel_python/lite-server-cpu-pip.sh b/mindspore-lite/examples/cloud_infer/quick_start_parallel_python/lite-server-cpu-pip.sh index 4044836431a11c3673e36f7c1c51f976cd50efad..72955ca19b6d87af88e996d4c114c29fd1d8b5dc 100644 --- a/mindspore-lite/examples/cloud_infer/quick_start_parallel_python/lite-server-cpu-pip.sh +++ b/mindspore-lite/examples/cloud_infer/quick_start_parallel_python/lite-server-cpu-pip.sh @@ -71,10 +71,12 @@ INPUT_DOWNLOAD_URL="https://download.mindspore.cn/model_zoo/official/lite/quick_ mkdir -p model if [ ! -e ${BASEPATH}/model/mobilenetv2.mindir ]; then - wget -c -O ${BASEPATH}/model/mobilenetv2.mindir --no-check-certificate ${MODEL_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/mobilenetv2.mindir from ${MODEL_DOWNLOAD_URL}" + exit 1 fi if [ ! -e ${BASEPATH}/model/input.bin ]; then - wget -c -O ${BASEPATH}/model/input.bin --no-check-certificate ${INPUT_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/input.bin from ${INPUT_DOWNLOAD_URL}" + exit 1 fi # Reinstall MindSpore Lite whl package diff --git a/mindspore-lite/examples/cloud_infer/quick_start_python/lite-cpu-pip.sh b/mindspore-lite/examples/cloud_infer/quick_start_python/lite-cpu-pip.sh index de26b3e5b0dac859fa5b2ad82ccf930bafada3b0..21d0edf77c7b3e942db144bf734b4dc63e7c7061 100644 --- a/mindspore-lite/examples/cloud_infer/quick_start_python/lite-cpu-pip.sh +++ b/mindspore-lite/examples/cloud_infer/quick_start_python/lite-cpu-pip.sh @@ -71,10 +71,12 @@ INPUT_DOWNLOAD_URL="https://download.mindspore.cn/model_zoo/official/lite/quick_ mkdir -p model if [ ! -e ${BASEPATH}/model/mobilenetv2.mindir ]; then - wget -c -O ${BASEPATH}/model/mobilenetv2.mindir --no-check-certificate ${MODEL_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/mobilenetv2.mindir from ${MODEL_DOWNLOAD_URL}" + exit 1 fi if [ ! -e ${BASEPATH}/model/input.bin ]; then - wget -c -O ${BASEPATH}/model/input.bin --no-check-certificate ${INPUT_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/input.bin from ${INPUT_DOWNLOAD_URL}" + exit 1 fi # Reinstall MindSpore Lite whl package diff --git a/mindspore-lite/examples/converter_extend/build.sh b/mindspore-lite/examples/converter_extend/build.sh index afc1114186fa285ef2f719986e4eb0af80eef9e4..119240f2643e43c52a71e937cff3856af2df7a1d 100644 --- a/mindspore-lite/examples/converter_extend/build.sh +++ b/mindspore-lite/examples/converter_extend/build.sh @@ -27,10 +27,12 @@ MINDSPORE_LITE_DOWNLOAD_URL="https://ms-release.obs.cn-north-4.myhuaweicloud.com mkdir -p build mkdir -p model if [ ! -e ${BASEPATH}/model/add.tflite ]; then - wget -c -O ${BASEPATH}/model/add.tflite --no-check-certificate ${MODEL_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/add.tflite from ${MODEL_DOWNLOAD_URL}" + exit 1 fi if [ ! -e ${BASEPATH}/build/${MINDSPORE_FILE} ]; then - wget -c -O ${BASEPATH}/build/${MINDSPORE_FILE} --no-check-certificate ${MINDSPORE_LITE_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/build/${MINDSPORE_FILE} from ${MINDSPORE_LITE_DOWNLOAD_URL}" + exit 1 fi tar -xzf ${BASEPATH}/build/${MINDSPORE_FILE} -C ${BASEPATH}/build/ cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/tools/converter/lib ${BASEPATH}/ diff --git a/mindspore-lite/examples/export_models/prepare.sh b/mindspore-lite/examples/export_models/prepare.sh index 7f7cbb6add7e6a064c32795e09acebb57f8429e9..908f6f2ab806a9f8a235286c72263db19c7a8335 100755 --- a/mindspore-lite/examples/export_models/prepare.sh +++ b/mindspore-lite/examples/export_models/prepare.sh @@ -69,7 +69,8 @@ fi if [ ! -f "models/efficient_net_b0.ckpt" ]; then echo "Pretrained model weights are missing, downloading efficient_net_b0.ckpt" - wget https://download.mindspore.cn/model_zoo/official/lite/efficient_net/efficient_net_b0.ckpt + echo "Please download https://download.mindspore.cn/model_zoo/official/lite/efficient_net/efficient_net_b0.ckpt" + exit 1 fi mkdir -p mindir diff --git a/mindspore-lite/examples/quick_start_c/build.sh b/mindspore-lite/examples/quick_start_c/build.sh index 6e3c3b3e6672957e487cb4d49b3298a450780705..5b1e4f3b38fbc9bbccb25f1872130c7dec554120 100644 --- a/mindspore-lite/examples/quick_start_c/build.sh +++ b/mindspore-lite/examples/quick_start_c/build.sh @@ -28,10 +28,12 @@ mkdir -p build mkdir -p lib mkdir -p model if [ ! -e ${BASEPATH}/model/mobilenetv2.ms ]; then - wget -c -O ${BASEPATH}/model/mobilenetv2.ms --no-check-certificate ${MODEL_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/mobilenetv2.ms from ${MODEL_DOWNLOAD_URL}" + exit 1 fi if [ ! -e ${BASEPATH}/build/${MINDSPORE_FILE} ]; then - wget -c -O ${BASEPATH}/build/${MINDSPORE_FILE} --no-check-certificate ${MINDSPORE_LITE_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/build/${MINDSPORE_FILE} from ${MINDSPORE_LITE_DOWNLOAD_URL}" + exit 1 fi tar xzvf ${BASEPATH}/build/${MINDSPORE_FILE} -C ${BASEPATH}/build/ cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/runtime/lib/libmindspore-lite.so ${BASEPATH}/lib diff --git a/mindspore-lite/examples/quick_start_cpp/build.sh b/mindspore-lite/examples/quick_start_cpp/build.sh index 3981238fabcc3f7c81817a96eaeea12fcde55be8..13f582bff86c075d3394e771a3a52e754eab6b73 100644 --- a/mindspore-lite/examples/quick_start_cpp/build.sh +++ b/mindspore-lite/examples/quick_start_cpp/build.sh @@ -28,10 +28,12 @@ mkdir -p build mkdir -p lib mkdir -p model if [ ! -e ${BASEPATH}/model/mobilenetv2.ms ]; then - wget -c -O ${BASEPATH}/model/mobilenetv2.ms --no-check-certificate ${MODEL_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/mobilenetv2.ms from ${MODEL_DOWNLOAD_URL}" + exit 1 fi if [ ! -e ${BASEPATH}/build/${MINDSPORE_FILE} ]; then - wget -c -O ${BASEPATH}/build/${MINDSPORE_FILE} --no-check-certificate ${MINDSPORE_LITE_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/build/${MINDSPORE_FILE} from ${MINDSPORE_LITE_DOWNLOAD_URL}" + exit 1 fi tar xzvf ${BASEPATH}/build/${MINDSPORE_FILE} -C ${BASEPATH}/build/ cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/runtime/lib/libmindspore-lite.a ${BASEPATH}/lib diff --git a/mindspore-lite/examples/quick_start_java/build.sh b/mindspore-lite/examples/quick_start_java/build.sh index de0a6bfc5f57adf651e9920ee95a25ab59387e3a..c25f24f89487930e18495d6a09947bc9917a1e60 100644 --- a/mindspore-lite/examples/quick_start_java/build.sh +++ b/mindspore-lite/examples/quick_start_java/build.sh @@ -28,10 +28,12 @@ mkdir -p build mkdir -p lib mkdir -p model if [ ! -e ${BASEPATH}/model/mobilenetv2.ms ]; then - wget -c -O ${BASEPATH}/model/mobilenetv2.ms --no-check-certificate ${MODEL_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/mobilenetv2.ms from ${MODEL_DOWNLOAD_URL}" + exit 1 fi if [ ! -e ${BASEPATH}/build/${MINDSPORE_FILE} ]; then - wget -c -O ${BASEPATH}/build/${MINDSPORE_FILE} --no-check-certificate ${MINDSPORE_LITE_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/build/${MINDSPORE_FILE} from ${MINDSPORE_LITE_DOWNLOAD_URL}" + exit 1 fi tar xzvf ${BASEPATH}/build/${MINDSPORE_FILE} -C ${BASEPATH}/build/ cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/runtime/lib/* ${BASEPATH}/lib diff --git a/mindspore-lite/examples/quick_start_micro/mnist_x86/mnist.sh b/mindspore-lite/examples/quick_start_micro/mnist_x86/mnist.sh index cc06d84d20a0a24900cbf55589721e9ea87c0827..4947a8ddba4a2eac4d06a0429e3729f22ca84303 100644 --- a/mindspore-lite/examples/quick_start_micro/mnist_x86/mnist.sh +++ b/mindspore-lite/examples/quick_start_micro/mnist_x86/mnist.sh @@ -68,7 +68,8 @@ DownloadModel() { if [ ! -e ${MODEL_DIR}/${MODEL_FILE} ]; then echo "download models ..." - wget -c -O ${MODEL_DIR}/${MODEL_FILE} --no-check-certificate ${MNIST_DOWNLOAD_URL} + echo "Please download ${MODEL_DIR}/${MODEL_FILE} from ${MNIST_DOWNLOAD_URL}" + exit 1 fi echo "unpack models ..." tar xzvf ${MODEL_DIR}/${MODEL_FILE} -C ${MODEL_DIR} || exit 1 diff --git a/mindspore-lite/examples/quick_start_micro/mobilenetv2_arm64/mobilenetv2.sh b/mindspore-lite/examples/quick_start_micro/mobilenetv2_arm64/mobilenetv2.sh index 0068c5e3eba9cc73906c7206def6b6e1c9eb9d5e..cfe5782d438a5b053754b8c4a8bf748cfaf7b214 100644 --- a/mindspore-lite/examples/quick_start_micro/mobilenetv2_arm64/mobilenetv2.sh +++ b/mindspore-lite/examples/quick_start_micro/mobilenetv2_arm64/mobilenetv2.sh @@ -73,7 +73,8 @@ download_inference() { local MINDSPORE_LITE_DOWNLOAD_URL="https://ms-release.obs.cn-north-4.myhuaweicloud.com/${VERSION_STR}/MindSpore/lite/release/android/${DEVICE}/${MINDSPORE_FILE}" if [ ! -e ${PKG_DIR}/${MINDSPORE_FILE} ]; then - wget -c -O ${PKG_DIR}/${MINDSPORE_FILE} --no-check-certificate ${MINDSPORE_LITE_DOWNLOAD_URL} + echo "Please download ${PKG_DIR}/${MINDSPORE_FILE} from ${MINDSPORE_LITE_DOWNLOAD_URL}" + exit 1 fi tar xzvf ${PKG_DIR}/${MINDSPORE_FILE} -C ${PKG_DIR} || exit 1 @@ -87,8 +88,9 @@ DownloadModel() { local DOWNLOAD_URL=https://download.mindspore.cn/model_zoo/official/lite/quick_start/micro/${MODEL_FILE} if [ ! -e ${MODEL_DIR}/${MODEL_FILE} ]; then - echo "download models ..." - wget -c -O ${MODEL_DIR}/${MODEL_FILE} --no-check-certificate ${DOWNLOAD_URL} + echo "download models ..." + echo "Please download ${MODEL_DIR}/${MODEL_FILE} from ${DOWNLOAD_URL}" + exit 1 fi echo "unpack models ..." tar xzvf ${MODEL_DIR}/${MODEL_FILE} -C ${MODEL_DIR} || exit 1 diff --git a/mindspore-lite/examples/quick_start_python/lite-cpu-pip.sh b/mindspore-lite/examples/quick_start_python/lite-cpu-pip.sh index 173229ce2c0c1d326619ce7950326bcc0e25ad0e..deb2f9a196f149c64ae83e5372f7176d7a49e4fc 100644 --- a/mindspore-lite/examples/quick_start_python/lite-cpu-pip.sh +++ b/mindspore-lite/examples/quick_start_python/lite-cpu-pip.sh @@ -71,10 +71,12 @@ INPUT_DOWNLOAD_URL="https://download.mindspore.cn/model_zoo/official/lite/quick_ mkdir -p model if [ ! -e ${BASEPATH}/model/mobilenetv2.ms ]; then - wget -c -O ${BASEPATH}/model/mobilenetv2.ms --no-check-certificate ${MODEL_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/mobilenetv2.ms from ${MODEL_DOWNLOAD_URL}" + exit 1 fi if [ ! -e ${BASEPATH}/model/input.bin ]; then - wget -c -O ${BASEPATH}/model/input.bin --no-check-certificate ${INPUT_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/input.bin from ${INPUT_DOWNLOAD_URL}" + exit 1 fi # Reinstall MindSpore Lite whl package diff --git a/mindspore-lite/examples/runtime_cpp/build.sh b/mindspore-lite/examples/runtime_cpp/build.sh index 7dc35f15ccd2fda42cb625fb750e6539033e5bad..46383a5744d63f57e07af4ed9a69a91fa261d567 100644 --- a/mindspore-lite/examples/runtime_cpp/build.sh +++ b/mindspore-lite/examples/runtime_cpp/build.sh @@ -80,10 +80,12 @@ mkdir -p build mkdir -p lib mkdir -p model if [ ! -e ${BASEPATH}/model/mobilenetv2.ms ]; then - wget -c -O ${BASEPATH}/model/mobilenetv2.ms --no-check-certificate ${MODEL_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/mobilenetv2.ms from ${MODEL_DOWNLOAD_URL}" + exit 1 fi if [ ! -e ${BASEPATH}/build/${MINDSPORE_FILE} ]; then - wget -c -O ${BASEPATH}/build/${MINDSPORE_FILE} --no-check-certificate ${MINDSPORE_LITE_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/build/${MINDSPORE_FILE} from ${MINDSPORE_LITE_DOWNLOAD_URL}" + exit 1 fi tar xzvf ${BASEPATH}/build/${MINDSPORE_FILE} -C ${BASEPATH}/build/ cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/runtime/lib/libmindspore-lite.a ${BASEPATH}/lib diff --git a/mindspore-lite/examples/runtime_extend/build.sh b/mindspore-lite/examples/runtime_extend/build.sh index 8447d66054e841875ea5eba3b8858f9af490c80a..95639ccbb7c91e033878bba26239a093ca220319 100644 --- a/mindspore-lite/examples/runtime_extend/build.sh +++ b/mindspore-lite/examples/runtime_extend/build.sh @@ -28,10 +28,12 @@ mkdir -p build mkdir -p lib mkdir -p model if [ ! -e ${BASEPATH}/model/add_extend.ms ]; then - wget -c -O ${BASEPATH}/model/add_extend.ms --no-check-certificate ${MODEL_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/add_extend.ms from ${MODEL_DOWNLOAD_URL}" + exit 1 fi if [ ! -e ${BASEPATH}/build/${MINDSPORE_FILE} ]; then - wget -c -O ${BASEPATH}/build/${MINDSPORE_FILE} --no-check-certificate ${MINDSPORE_LITE_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/build/${MINDSPORE_FILE} from ${MINDSPORE_LITE_DOWNLOAD_URL}" + exit 1 fi tar -xzf ${BASEPATH}/build/${MINDSPORE_FILE} -C ${BASEPATH}/build/ cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/runtime/lib/libmindspore-lite.so ${BASEPATH}/lib/ diff --git a/mindspore-lite/examples/runtime_gpu_extend/build.sh b/mindspore-lite/examples/runtime_gpu_extend/build.sh index 3006a14de5e19655749e2754d4047b9f6c44184f..bac37262f785e9a69db03da1a1f8bad022d3ca51 100644 --- a/mindspore-lite/examples/runtime_gpu_extend/build.sh +++ b/mindspore-lite/examples/runtime_gpu_extend/build.sh @@ -28,13 +28,16 @@ MINDSPORE_LITE_DOWNLOAD_URL="https://ms-release.obs.cn-north-4.myhuaweicloud.com mkdir -p build mkdir -p model if [ ! -e ${BASEPATH}/model/add_extend.ms ]; then - wget -c -O ${BASEPATH}/model/add_extend.ms --no-check-certificate ${MODEL_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/model/add_extend.ms from ${MODEL_DOWNLOAD_URL}" + exit 1 fi if [ ! -e ${BASEPATH}/model/add.ms ]; then - wget -c -O ${BASEPATH}/model/add.ms --no-check-certificate ${MODEL_DOWNLOAD_URL2} + echo "Please download ${BASEPATH}/model/add.ms from ${MODEL_DOWNLOAD_URL2}" + exit 1 fi if [ ! -e ${BASEPATH}/build/${MINDSPORE_FILE} ]; then - wget -c -O ${BASEPATH}/build/${MINDSPORE_FILE} --no-check-certificate ${MINDSPORE_LITE_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/build/${MINDSPORE_FILE} from ${MINDSPORE_LITE_DOWNLOAD_URL}" + exit 1 fi tar -xzf ${BASEPATH}/build/${MINDSPORE_FILE} cp -r ${BASEPATH}/build/${MINDSPORE_FILE_NAME}/runtime ${BASEPATH}/ diff --git a/mindspore-lite/examples/train_lenet_java/build.sh b/mindspore-lite/examples/train_lenet_java/build.sh index bbaafc69c5f26315677bdf34f9d35abcd4c9296a..264f3abe1a60b3f1a2e30f13abb5d2866bea4673 100755 --- a/mindspore-lite/examples/train_lenet_java/build.sh +++ b/mindspore-lite/examples/train_lenet_java/build.sh @@ -55,7 +55,8 @@ if [ -n "$TARBALL" ]; then fi if [ ! -e ${BASEPATH}/build/${MINDSPORE_FILE} ]; then - wget -c -O ${BASEPATH}/build/${MINDSPORE_FILE} --no-check-certificate ${MINDSPORE_LITE_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/build/${MINDSPORE_FILE} from ${MINDSPORE_LITE_DOWNLOAD_URL}" + exit 1 fi tar xzvf ${BASEPATH}/build/${MINDSPORE_FILE} -C ${BASEPATH}/build/${MINDSPORE_FILE_NAME} --strip-components=1 diff --git a/mindspore-lite/examples/transfer_learning/model/prepare_model.sh b/mindspore-lite/examples/transfer_learning/model/prepare_model.sh index d76c6643d0226eabb5ecdf180dd1dce6dc3bb311..3de086ca16896ee038756ba6b7d5a7715c32220e 100755 --- a/mindspore-lite/examples/transfer_learning/model/prepare_model.sh +++ b/mindspore-lite/examples/transfer_learning/model/prepare_model.sh @@ -2,7 +2,8 @@ if [ ! -f "efficient_net_b0.ckpt" ]; then echo "Pretrained model weights are missing, downloading efficient_net_b0.ckpt" - wget https://download.mindspore.cn/model_zoo/official/lite/efficient_net/efficient_net_b0.ckpt + echo "Please download https://download.mindspore.cn/model_zoo/official/lite/efficient_net/efficient_net_b0.ckpt" + exit 1 fi echo "============Exporting==========" diff --git a/mindspore-lite/tools/converter/micro/coder/generator/component/const_blocks/load_input.cc b/mindspore-lite/tools/converter/micro/coder/generator/component/const_blocks/load_input.cc index 9a2aeaa78bc73b18f2c751643d8412fee2644358..773e327d0cab6fec73835969f3d26060ccfd84e4 100644 --- a/mindspore-lite/tools/converter/micro/coder/generator/component/const_blocks/load_input.cc +++ b/mindspore-lite/tools/converter/micro/coder/generator/component/const_blocks/load_input.cc @@ -299,7 +299,8 @@ MINDSPORE_FILE="${MINDSPORE_FILE_NAME}.tar.gz" MINDSPORE_LITE_DOWNLOAD_URL=\ "https://ms-release.obs.cn-north-4.myhuaweicloud.com/${VERSION_STR}/MindSpore/lite/none_cortex-m/${MINDSPORE_FILE}" if [ ! -e ${BASEPATH}/${MINDSPORE_FILE} ]; then - wget -c -O ${BASEPATH}/${MINDSPORE_FILE} --no-check-certificate ${MINDSPORE_LITE_DOWNLOAD_URL} + echo "Please download ${BASEPATH}/${MINDSPORE_FILE} from ${MINDSPORE_LITE_DOWNLOAD_URL}" + exit 1 fi if [ ! -e ${BASEPATH}/${MINDSPORE_FILE_NAME} ]; then tar xzf ${BASEPATH}/${MINDSPORE_FILE} -C ${BASEPATH}/