Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 1344e27

Browse files
committed
Fix model downloading scripts
Add "sudo" to the command line of downloading models IR files in case Openvino is installed to /opt/intel Also correct the error message of downloading model failure Signed-off-by: Elaine Wang <[email protected]>
1 parent 68e4fd5 commit 1344e27

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

script/download_and_copy_models.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ do
2626
echo "Copy $i IR files to directory model/"
2727
cp ${INTEL_OPENVINO_DIR}/deployment_tools/open_model_zoo/tools/downloader/intel/$i/FP16/$i.xml ${INTEL_OPENVINO_DIR}/deployment_tools/open_model_zoo/tools/downloader/intel/$i/FP16/$i.bin $root_path/$target_dir/
2828
else
29-
echo "./downloader.py --name $i --precisions fp16"
30-
./downloader.py --name $i --precisions FP16
29+
echo "./downloader.py --name $i --precisions FP16"
30+
sudo -E ./downloader.py --name $i --precisions FP16
3131

3232
if [ -f "${INTEL_OPENVINO_DIR}/deployment_tools/open_model_zoo/tools/downloader/intel/$i/FP16/$i.xml" ]
3333
then
3434
echo "$i was downloaded successfully"
3535
cp ${INTEL_OPENVINO_DIR}/deployment_tools/open_model_zoo/tools/downloader/intel/$i/FP16/$i.xml ${INTEL_OPENVINO_DIR}/deployment_tools/open_model_zoo/tools/downloader/intel/$i/FP16/$i.bin $root_path/$target_dir/
3636
else
3737
echo "Failed to download $i model. "
38-
echo "Please manually run command:${INTEL_OPENVINO_DIR}/deployment_tools/tools/model_downloader/downloader.py --name $i --precisions fp16"
38+
echo "Please manually run command:${INTEL_OPENVINO_DIR}/deployment_tools/tools/model_downloader/downloader.py --name $i --precisions FP16"
3939
fi
4040

4141
fi

script/download_models.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ model_list="face-detection-retail-0004 human-pose-estimation-0001 vehicle-licens
1414

1515
for i in $model_list
1616
do
17-
echo "./downloader.py --name $i --precisions fp16"
17+
echo "./downloader.py --name $i --precisions FP16"
1818
./downloader.py --name $i --precisions FP16
1919

2020
if [ -f "${INTEL_OPENVINO_DIR}/deployment_tools/open_model_zoo/tools/downloader/intel/$i/FP16/$i.xml" ]
2121
then
2222
echo "$i was downloaded successfully"
2323
else
2424
echo "Failed to download $i model. "
25-
echo "Please manually run command:${INTEL_OPENVINO_DIR}/deployment_tools/tools/model_downloader/downloader.py --name $i --precisions fp16"
25+
echo "Please manually run command:${INTEL_OPENVINO_DIR}/deployment_tools/tools/model_downloader/downloader.py --name $i --precisions FP16"
2626
fi
2727
done

0 commit comments

Comments
 (0)