Efficientnet lite install scritp modifications
@@ -25,19 +25,11 @@ 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
+#Efficientnet-lite unpacks into subdirectory
+if [[ -d ${PACKAGE_NAME_EFFICIENT_LITE} ]]; 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
-
-#Exception: v3 also unpacks into subdirectory
-if [[ -d ${PACKAGE_NAME_MOBILENET_V3} ]]; then
- echo
- echo "Move files out of ${PACKAGE_NAME_MOBILENET_V3}/ ..."
- mv ${PACKAGE_NAME_MOBILENET_V3}/* ${PACKAGE_NAME_MOBILENET_V3}/..
+ echo "Move files out of ${PACKAGE_NAME_EFFICIENTNET_LITE}/ ..."
+ mv ${PACKAGE_NAME_EFFICIENTNET_LITE}/* ${PACKAGE_NAME_EFFICIENTNET_LITE}/..
rmdir ${PACKAGE_NAME_MOBILENET_V3}
fi
@@ -51,26 +43,26 @@ function rm_file() {
rm $1
fi
}
-# We don't use it right now, so remove to save disk space, but it can be useful in future
-rm_file "mobilenet_v${VERSION}_${MULTIPLIER}_${RESOLUTION}_eval.pbtxt"
+# We don't use it right now, so remddove to save disk space, but it can be useful in future
+#rm_file "mobilenet_v${VERSION}_${MULTIPLIER}_${RESOLUTION}_eval.pbtxt"
########################################################################
echo
echo "Copy Python modules ..."
THIS_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-cp ${THIS_SCRIPT_DIR}/mobilenet-model.py .
+#cp ${THIS_SCRIPT_DIR}/mobilenet-model.py .
-if [ "${VERSION}" == "1" ]; then
- cp ${THIS_SCRIPT_DIR}/mobilenet_v1.py .
-fi
-if [ "${VERSION}" == "2" ]; then
- cp ${THIS_SCRIPT_DIR}/mobilenet_v2.py .
- cp ${THIS_SCRIPT_DIR}/mobilenet.py .
- cp ${THIS_SCRIPT_DIR}/conv_blocks.py .
-fi
-if [ "${VERSION}" == "3" ]; then
- cp ${THIS_SCRIPT_DIR}/mobilenet_v3.py .
- cp ${THIS_SCRIPT_DIR}/mobilenet.py .
- cp ${THIS_SCRIPT_DIR}/conv_blocks.py .
-fi
+#if [ "${VERSION}" == "1" ]; then
+# cp ${THIS_SCRIPT_DIR}/mobilenet_v1.py .
+#fi
+#if [ "${VERSION}" == "2" ]; then
+# cp ${THIS_SCRIPT_DIR}/mobilenet_v2.py .
+# cp ${THIS_SCRIPT_DIR}/mobilenet.py .
+# cp ${THIS_SCRIPT_DIR}/conv_blocks.py .
+#fi
+#if [ "${VERSION}" == "3" ]; then
+# cp ${THIS_SCRIPT_DIR}/mobilenet_v3.py .
+# cp ${THIS_SCRIPT_DIR}/mobilenet.py .
+# cp ${THIS_SCRIPT_DIR}/conv_blocks.py .
+#fi
