Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. Tflite Server with Custom Trained YoloV5 receives SIGINT When Ran

Tflite Server with Custom Trained YoloV5 receives SIGINT When Ran

Scheduled Pinned Locked Moved Ask your questions right here!
1 Posts 1 Posters 225 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mattm8600
    wrote on last edited by
    #1

    My team is tasked with using a custom trained YoloV5 image classifier on the VOXL m500.
    Here are the steps I took:

    1. Used the following export command to save our YoloV5 with custom weights into a TF Saved Model YoloV5 Forum
    2. I used the following script, copying most of it from an archived version of the ModalAi Deep Learning Docs (For some reason the current webpage has nothing)
    import tensorflow as tf
    
    saved_model_dir='/directory/best_saved_model/'
    converter = tf.compat.v1.lite.TFLiteConverter.from_saved_model(saved_model_dir)
    
    converter.use_experimental_new_converter = True
    converter.allow_custom_ops = True
    converter.target_spec.supported_types = [tf.float16]
    
    tflite_model = converter.convert()
    with tf.io.gfile.GFile('model_converted.tflite', 'wb') as f:
      f.write(tflite_model)
    
    1. I export the .tflite frile to the drone and move it to /usr/bin/dnn
    2. I renamed my custom model to yolov5_float16_quant.tflite because I was getting an error when trying to use a model of a different name
    3. I ran voxl-configure-tflite and selected yolov5 as the model to use

    Results

    • I can't see Tflite on the VOXL portal, but I can see the hires camera (which is being piped to TFlite)
    • If I run roslaunch voxl_mpa_to_ros voxl_mpa_to_ros, it advertises both tflite and tflite_data, but gives me the following error: "Interface: tflite's data pipe disconnected, closing until it returns"

    Trouble shooting

    • I tried rebooting the drone
    • I killed the voxl-tflite-server and tried to run it in debug mode which gave me the following output:Screenshot from 2023-07-20 10-24-30.png
    • I restored the stock YoloV5 classifier to the yolov5_float16_quant.tflite name and it worked perfectly

    I don't know where to go from here. Any input is appreciated, thanks.

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    ModalAI
    Categories Recent Tags ModalAI.com Docs
    © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups