-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds download of all or maximum precisions
- Loading branch information
Showing
2 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,26 @@ | ||
echo "========== Creating output directory: models/" | ||
echo "==================== Creating output directory: models/" | ||
mkdir models/ | ||
|
||
echo "========== Models can be found in: $(pwd)/models/" | ||
echo "==================== Models can be found in: $(pwd)/models/" | ||
|
||
|
||
|
||
echo "========== Starting OpenVINO model download" | ||
echo "==================== Starting OpenVINO model download" | ||
# model downloader path variable | ||
md_path="/opt/intel/openvino/deployment_tools/tools/model_downloader/downloader.py" | ||
|
||
# download | ||
python3 $md_path --name face-detection-adas-binary-0001 --output_dir models/ | ||
python3 $md_path --name head-pose-estimation-adas-0001 --output_dir models/ | ||
python3 $md_path --name landmarks-regression-retail-0009 --output_dir models/ | ||
python3 $md_path --name gaze-estimation-adas-0002 --output_dir models/ | ||
|
||
echo "========== [SUCCESS] Download finished" | ||
if [ "$1" = "--all_available_precisions" ] ; then | ||
echo "==================== Starting download of all available precisions" | ||
python3 $md_path --name face-detection-adas-binary-0001 --output_dir models/ | ||
python3 $md_path --name head-pose-estimation-adas-0001 --output_dir models/ | ||
python3 $md_path --name landmarks-regression-retail-0009 --output_dir models/ | ||
python3 $md_path --name gaze-estimation-adas-0002 --output_dir models/ | ||
else | ||
echo "==================== Starting download off maximum precisions" | ||
python3 $md_path --name face-detection-adas-binary-0001 --output_dir models/ --precisions FP32-INT1 | ||
python3 $md_path --name head-pose-estimation-adas-0001 --output_dir models/ --precisions FP32 | ||
python3 $md_path --name landmarks-regression-retail-0009 --output_dir models/ --precisions FP32 | ||
python3 $md_path --name gaze-estimation-adas-0002 --output_dir models/ --precisions FP32 | ||
fi | ||
echo "==================== [SUCCESS] Download finished" |