arduino / arduino/ArduinoTensorFlowLiteTutorials
TFLite MicroInterpreter() never returns on Arduino Nano BLE 33 Sense
- Lenguaje dominante
- Jupyter Notebook
- Estrellas
- 270
- Forks
- 122
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I am trying out the gesture recognization example using the **IMU_Classifier** example for detecting a "punch" gesture.
I see that the Arduino setup() code is kind of blocked when trying to initialize a MicroInterpreter() instance as below.
```
// Create a static memory buffer for TFLM, the size may need to
// be adjusted based on the model you are using
constexpr int tensorArenaSize = 8 * 1024;
byte tensorArena[tensorArenaSize];
tfLiteInterpreter = new tflite::MicroInterpreter(tfLiteModel,tfLiteOpsResolver, tensorArena, tensorArenaSize, &tfLiteErrorReporter);
```
Could you please share if this could be due to model size or any other dependency not being met? I gave it a try by shrinking model layers to reduce the model size as below but I still see an issue. Here, I am only trying to classify the punch gesture.
```
`# build the model and train it
model = tf.keras.Sequential()
model.add(tf.keras.layers.Dense(16, activation='relu'))
model.add(tf.keras.layers.Dense(8, activation='relu'))
model.add(tf.keras.layers.Dense(NUM_GESTURES, activation='sigmoid')) # softmax is used, because we only expect one gesture to occur per input
model.compile(optimizer='rmsprop', loss='mse', metrics=['mae'])
history = model.fit(inputs_train, outputs_train, epochs=600, batch_size=1, validation_data=(inputs_validate, outputs_validate))
`
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comience en setup() del ejemplo IMU_Classifier y en la inicialización de tflite::MicroInterpreter que se muestra, en el Arduino Nano BLE 33 Sense. Compruebe el modelo, el tensor arena de 8 KB y las dependencias indicadas para determinar por qué la inicialización nunca retorna. Se considera terminado cuando se haya identificado la causa y el ejemplo de punch-classification pueda completar setup sin bloquearse.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- arduino, jupyter-notebook, keras, tensorflow
- Área
- embedded-iot, machine-learning
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100