Avatar for JumJum

JumJum

Member since Oct 2013 • Last active Feb 2024
  • 158 conversations
  • 810 comments

Most recent activity

    • 8 comments
    • 479 views
  • in Bangle.js
    Avatar for JumJum

    @Ganblejs
    AFAIK, data is loaded to memory which takes away a lot of vars. Correct me, if I'm wrong.
    And I would like to have some more complex gestures.
    For example lift the arm and draw a right circle, something like lifting umbrella by tourist guides.
    My expectation for complex gestures is much larger file compared to the simple UpDown, LeftRight in my example.
    Last not least, if I compare size of EdgeImpuls with nodeconfeu, size of nodeconfeu file is about 30%. Even compared with an JS building, which has 14kb for Keras Model, its a lot.

  • in Bangle.js
    Avatar for JumJum

    played around looks like I had to

    • select device to Nordic NRF 52840 DK in the beginning
    • ignore that NN stuff
    • train without changes
      Now I've got a file
      TensorFlow Lite (int8 quantized) 22 KB
      22KB is a big file for a clock

    Anyway, copied this to .tfmodel and created .tfnames
    reset bangle2 and checked.
    I've 2 gestures (leftright and updown) leftright is recognized perfect
    Updown of the clock gives leftright very often.

    At the end, I got something running, but I'm not really satisfied, because

    • steps for EdgeImpuls are complicated, there is no way to automate this
    • resulting file is very large, at least in my eyes
    • gives wrong results very often
  • in Bangle.js
    Avatar for JumJum

    Checked the edge solution and failed.
    Could this be a new version ?
    Wording and buttons don't match perfect.
    Made it up to generated features.
    Next step should be train the neural network, but there is no NN Classifier
    Should I select another target (tried all nordics, no success)

  • in Bangle.js
    Avatar for JumJum

    Looks to me like Tensorflow itself changed.
    And there is a new tflite version, and in sources I found SPACE_TO_BATCH and BATCH_TO_SPACE
    I will give EdgeImpuls a try, but this will take some time.

  • in Bangle.js
    Avatar for JumJum

    I tried to create my own gestures. Somehow I got this in github
    https://github.com/nearform/nodeconfeu-gĀ­esture-models
    There is a file create_gesture_model.ipynb which I got running on COLAB
    First problem was circular loading around AccelerationReader
    Got rid of that by changing directory to nodeconfeu-gesture-models before importing reader and go back
    Next problem was in converting to tflite, functions SPACE_TO_BATCH_ND and BATCH_TO_SPACE_ND have been unknown.
    Added these commands to builtin_operator_version_support in export_tflite.py
    At least I got it working this way. Training etc ran fine.
    Next created .tfnames and .tflite and added a handle for aiGesture
    Now I get an error Didn't find op for builtin opcode 'SPACE_TO_BATCH_ND'
    Is there any idea, what to do or how to do it better ?

  • in ESP32
    Avatar for JumJum

    I agree, ESP32 with ESP-IDF eats memory like crazy.

  • in ESP32
    Avatar for JumJum

    I only have in mind a problem if wifi and BLE, both are switched off

  • in ESP32
    Avatar for JumJum

    Based on my experience, ESP32 eats memory, RAM and Flash, like crazy.
    This became more and more with each new version of ESP-IDF
    If you need to have WIFI and BLE, I would recommend ESP32 with additional memory

Actions