-
Notifications
You must be signed in to change notification settings - Fork 25
Description
I have used DISCO_F413ZH to try to reproduce this demo but it failed.
By commit da6615e, here is what I got:
In main.cpp, get_deep_mlp_ctx function does not match get_quant_model_ctx in models/deep_mlp.hpp
Running tensorflow-models/deep_mlp.ipynb is OK but
utensor-cli --output-nodes=OutputLayer/y_pred tensorflow-models/mnist_model/deep_mlp.pb
Output:
AssertionError: OutputLayer/y_pred is not in graph
So I tried:
utensor-cli tensorflow-models/mnist_model/deep_mlp.pb
and passed.
idx files will be like constants/deep_mlp/*.idx
Then copy constants folder to micro SD card and insert it to the board
cp constants /media/${USERNAME}/${SD_DEVICE} -r
And,
mbed deploy
mbed compile -m DISCO_F413ZH -t GCC_ARM --profile=uTensor/build_profile/release.json -f -c
After flashing the board, from CoolTerm output:
.program start...
Done padding
Reshaping
Creating Graph
[Error] ./uTensor/uTensor/loaders/tensorIdxImporter.cpp:61 @parseMeta Error opening file: /fs/constants/deep_mlp/Layer1_MatMul_eightbit_x_reshape_dims_0.idx
When I try to use Debug string
vim uTensor/uTensor/util/uTensor_util.hpp
Move enum Padding out of #if #endif block
vim mbed_app.json
Set the debug-msg value to “1”
Compile again and flash
mbed compile -m DISCO_F413ZH -t GCC_ARM --profile=uTensor/build_profile/release.json -f -c
Output:
program start...
* SDBlockDevice init [DONE]
* Mounting the filesystem on "/fs". [**Failure**] -2
Exiting…
Any ideas? My 2GB micro SD card is formatted to FAT32.