Add install exception for MobileNet v2 quantized.
#! /bin/bash
#
-# Copyright (c) 2018 cTuning foundation.
+# Copyright (c) 2018-2020 cTuning foundation.
# See CK COPYRIGHT.txt for copyright details.
#
# SPDX-License-Identifier: BSD-3-Clause.
@@ -25,6 +25,14 @@ echo
echo "Unpack weights file ${PACKAGE_NAME} ..."
tar -zxvf ${PACKAGE_NAME}
+# Exception: v2 quantized unpacks into a subdirectory.
+if [[ -d ${PACKAGE_NAME_V2_QUANT} ]]; then
+ echo
+ echo "Move files out of ${PACKAGE_NAME_V2_QUANT}/ ..."
+ mv ${PACKAGE_NAME_V2_QUANT}/* ${PACKAGE_NAME_V2_QUANT}/..
+ rmdir ${PACKAGE_NAME_V2_QUANT}
+fi
+
########################################################################
echo
echo "Remove temporary files ..."
