Imported Upstream version 1.25.0
[platform/core/ml/nnfw.git] / compiler / one-cmds / tests / prepare_test_materials.sh
index 97bc6eb..915beff 100644 (file)
@@ -25,6 +25,10 @@ if [[ ! -s "inception_v3.pb" ]]; then
     tar zxvf inception_v3_2018_04_27.tgz
 fi
 
+if [[ ! -s "mobilenet_edgetpu_224_1.0_int8.tflite" ]]; then
+    wget -nv https://github.com/mlcommons/mobile_models/raw/main/v0_7/tflite/mobilenet_edgetpu_224_1.0_int8.tflite
+fi
+
 if [[ ! -s "while_3.pbtxt" ]]; then
     rm -rf while_3.zip
     wget -nv https://github.com/Samsung/ONE/files/5095630/while_3.zip
@@ -93,9 +97,9 @@ fi
 
 if [[ ! -s "reshape_matmul.onnx" ]]; then
     rm -rf reshape_matmul.zip
-    wget -nv https://github.com/Samsung/ONE/files/9082878/reshape_matmul.zip
+    wget -nv https://github.com/Samsung/ONE/files/12358217/reshape_matmul.zip
     unzip reshape_matmul.zip
-    # https://github.com/Samsung/ONE/issues/9405#issuecomment-1180198137
+    # https://github.com/Samsung/ONE/issues/9405#issuecomment-1680322410
 fi
 
 # prepare 'reshape_matmul.circle' file used for tests
@@ -175,4 +179,14 @@ if [[ ! -s ${outputfile} ]]; then
   --output_path ${outputfile}
 fi
 
+# prepare 'mobilenet_edgetpu_224_1.0_int8.circle' file used for requantization test
+inputfile="./mobilenet_edgetpu_224_1.0_int8.tflite"
+outputfile="./mobilenet_edgetpu_224_1.0_int8.circle"
+
+if [[ ! -s ${outputfile} ]]; then
+  ../bin/one-import-tflite \
+  --input_path ${inputfile} \
+  --output_path ${outputfile}
+fi
+
 popd > /dev/null