• I managed to load it to the Bangle.js, there were two issues:

    1. Apparently base64.b64encode(tflite_model) wasn't working in my base64 version, it was giving a corrupted string, I had to create it with base64.b64encode(tflite_model).decode('u­tf-8')
    2. I had to change the conv1d layers to conv2d layers, otherwise there was a different error.

    The problem is now that the model does not seem to take any values as inputs. I trained the model with inputs in shape (1, 12, 3, 1), so I've prepared the data in the bangle in the same format: the input for one prediction is of shape (1, 12, 3, 1) that is, an array of arrays.
    But when I execute the following commands the input has been assigned all to NaN.

    **print(input);
    tf.getInput().set(input);
    print(tf.getInput());**
    

    1 Attachment

    • Question1.png
About

Avatar for user130273 @user130273 started