Tflight server multiple model
-
Please share the configuration file (voxl-tflite-server.conf) to run multiple models together
-
Hey @Tamas-Pal-0,
Have you read through the docs here: https://docs.modalai.com/voxl-tflite-server/#running-multiple-models?
Basically, you start an instance of the tflite-server, then re-edit the config file and start the next instance...and so on.
Here is an example of what the first instance's config file could be:
/** { "skip_n_frames": 0, "model": "/usr/bin/dnn/yolov5_float16_quant.tflite", "input_pipe": "/run/mpa/stereo/", "delegate": "gpu", "allow_multiple": true, "output_pipe_prefix": "yolo" }After the first model is running, I edited the config to this for second instance:
{ "skip_n_frames": 0, "model": "/usr/bin/dnn/fastdepth_float16_quant.tflite", "input_pipe": "/run/mpa/stereo/", "delegate": "gpu", "allow_multiple": true, "output_pipe_prefix": "fastdepth" }The, I started up another tflite-server via the cmd line.
Output of both running:

-
Hey @Tamas-Pal-0,
Have you read through the docs here: https://docs.modalai.com/voxl-tflite-server/#running-multiple-models?
Basically, you start an instance of the tflite-server, then re-edit the config file and start the next instance...and so on.
Here is an example of what the first instance's config file could be:
/** { "skip_n_frames": 0, "model": "/usr/bin/dnn/yolov5_float16_quant.tflite", "input_pipe": "/run/mpa/stereo/", "delegate": "gpu", "allow_multiple": true, "output_pipe_prefix": "yolo" }After the first model is running, I edited the config to this for second instance:
{ "skip_n_frames": 0, "model": "/usr/bin/dnn/fastdepth_float16_quant.tflite", "input_pipe": "/run/mpa/stereo/", "delegate": "gpu", "allow_multiple": true, "output_pipe_prefix": "fastdepth" }The, I started up another tflite-server via the cmd line.
Output of both running:

@Matt-Turi Thanks !!
Reading along? Create a free ModalAI Forum account to join in.
With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.
Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.
Register Login