未验证 提交 3ef04f78 编写于 作者: M Måns Nilsson 提交者: GitHub

Update network_test example for Ethos-U (#416)

Change path to person detect model header file from example directory to
where it is downloaded.
上级 d9b2263c
......@@ -24,8 +24,8 @@ limitations under the License.
#include "tensorflow/lite/schema/schema_generated.h"
#ifdef ETHOS_U
#include "tensorflow/lite/micro/examples/person_detection/person_detect_model_data.h"
#include "tensorflow/lite/micro/examples/person_detection/person_image_data.h"
#include "tensorflow/lite/micro/tools/make/downloads/person_model_int8/person_detect_model_data.h"
#endif
#ifndef TENSOR_ARENA_SIZE
......
......@@ -72,7 +72,7 @@ if [ ! -f ${CONVERTED_PERSON_MODEL_INT8} ]; then
# Convert .tflite back to C array.
echo "// This file is generated by $0." > ${CONVERTED_PERSON_MODEL_INT8}
echo '#include "tensorflow/lite/micro/examples/person_detection/person_detect_model_data.h"' >> \
echo '#include "tensorflow/lite/micro/tools/make/downloads/person_model_int8/person_detect_model_data.h"' >> \
${CONVERTED_PERSON_MODEL_INT8}
echo -n "const " >> ${CONVERTED_PERSON_MODEL_INT8}
xxd -i ${DOWNLOADED_PERSON_MODEL_INT8_PATH}/person_detect_vela.tflite >> \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册