SpectacularAI / sdk-examples

Spectacular AI SDK examples
Apache License 2.0
202 stars 35 forks source link

"SpectacularAI : dropping frames! VIO is running too slow or data is being input too fast" #100

Closed Contain1R closed 6 months ago

Contain1R commented 9 months ago

I had been tryng Spectacular SDK mapping_visu.py with OAK-D and got tons of messages "SpectacularAI : dropping frames! VIO is running too slow or data is being input too fast". Also I got a message: IMU firmware version detected : 3.2.13 is not supported. Latest supported: 3.9.9. Use "imu.enableFirmwareUpdate(True)"once to update firmware to latest". I had update imu firmware version. But the message "SpectacularAI : dropping frames! VIO is running too slow or data is being input too fast" has not dissapeared.

kaatrasa commented 9 months ago

Hey, could you try these steps to help with debugging?

  1. Make sure you have the latest version of spectacularAI and depthai packages:
    pip install depthai spectacularai --force
  2. Do the error messages happen with other examples, for example
    python vio_visu.py

    If there are no errors, then running mapping_visu.py again might help. Please use git pull first, because we recently rewrote mapping_visu.py

If this doesn't help, then could you say what is your OAK-D model and OS?

ajsnyde commented 6 months ago

Also running into this issue, minus the firmware message. I'm needing to get VIO for my application on a limited CPU system. Is there a recommended way to post-process the VIO (position, orientation, time) from a recording-only run?

Bercon commented 6 months ago

You can use the Replay API (https://spectacularai.github.io/docs/sdk/replay.html). Many of our python examples also have an option of providing recorded data folder to demonstrate how to use it

You can also try enabling the "fastVio" config option to reduce CPU usage at a cost of slightly less accurate tracking https://spectacularai.github.io/docs/sdk/wrappers/oak.html#spectacularAI.depthai.Configuration.fastVio