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. Can anyone recommend a Tflite Colab Notebook for VOXL2 Training

Can anyone recommend a Tflite Colab Notebook for VOXL2 Training

Scheduled Pinned Locked Moved Ask your questions right here!
53 Posts 4 Posters 21.2k Views 4 Watching
  • 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.
  • S sansoy

    @tom Ubuntu 22.04.3 LTS

    tomT Offline
    tomT Offline
    tom
    admin
    wrote on last edited by
    #18

    @sansoy Huh, okay, that's what I run as well.

    What groups are your default user in? For example, here is mine:

     ~  groups                                               ok | 10:20:36 AM 
    tom adm dialout cdrom sudo dip plugdev lpadmin lxd sambashare docker
    
    S 1 Reply Last reply
    0
    • tomT tom

      @sansoy Huh, okay, that's what I run as well.

      What groups are your default user in? For example, here is mine:

       ~  groups                                               ok | 10:20:36 AM 
      tom adm dialout cdrom sudo dip plugdev lpadmin lxd sambashare docker
      
      S Offline
      S Offline
      sansoy
      Contributor
      wrote on last edited by
      #19

      @tom eve@eve:~$ groups
      eve adm cdrom sudo dip plugdev lpadmin lxd sambashare

      tomT 1 Reply Last reply
      0
      • S sansoy

        @tom eve@eve:~$ groups
        eve adm cdrom sudo dip plugdev lpadmin lxd sambashare

        tomT Offline
        tomT Offline
        tom
        admin
        wrote on last edited by
        #20

        @sansoy Can you try adding your user to the dialout group and seeing if that fixes the issue?

        sudo usermod -a -G dialout $USER

        S 1 Reply Last reply
        0
        • tomT tom

          @sansoy Can you try adding your user to the dialout group and seeing if that fixes the issue?

          sudo usermod -a -G dialout $USER

          S Offline
          S Offline
          sansoy
          Contributor
          wrote on last edited by
          #21

          @tom did that and still no inference.
          tflite_1705069939.png

          tomT 1 Reply Last reply
          0
          • S sansoy

            @tom did that and still no inference.
            tflite_1705069939.png

            tomT Offline
            tomT Offline
            tom
            admin
            wrote on last edited by
            #22

            @sansoy That was for fixing the fastboot issue, unrelated

            ? 1 Reply Last reply
            0
            • tomT tom

              @sansoy That was for fixing the fastboot issue, unrelated

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #23

              @sansoy

              When I get some time today I'll try to download your .tflite models and see what's going on. The good news is that the server is at least running! It very well may just be an issue with how the tensor is being parsed.

              Thomas
              thomas.patton@modalai.com

              ? 1 Reply Last reply
              0
              • ? A Former User

                @sansoy

                When I get some time today I'll try to download your .tflite models and see what's going on. The good news is that the server is at least running! It very well may just be an issue with how the tensor is being parsed.

                Thomas
                thomas.patton@modalai.com

                ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #24

                @sansoy

                Hey, they just gave me access to the Google Drive folder. Can you confirm that the edgetpu.tflite in the root directory is the file you want me to try and get working?

                Thomas

                S 1 Reply Last reply
                0
                • ? A Former User

                  @sansoy

                  Hey, they just gave me access to the Google Drive folder. Can you confirm that the edgetpu.tflite in the root directory is the file you want me to try and get working?

                  Thomas

                  S Offline
                  S Offline
                  sansoy
                  Contributor
                  wrote on last edited by
                  #25

                  @thomas i just checked permissions and you have access to all the files and yes to

                  edgetpu.tflit
                  ssd-mobilenet-v2-fpnlite-640_quant.tflite
                  ssd-mobilenet-v2-fpnlite-640.tflite
                  saved_models/saved_model.pb

                  ? 1 Reply Last reply
                  0
                  • S sansoy

                    @thomas i just checked permissions and you have access to all the files and yes to

                    edgetpu.tflit
                    ssd-mobilenet-v2-fpnlite-640_quant.tflite
                    ssd-mobilenet-v2-fpnlite-640.tflite
                    saved_models/saved_model.pb

                    ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #26

                    @sansoy

                    Of these 4 models which is the custom trained YOLO model you mentioned above? I can't even get the edgetpu.tflite model to load so I need a little bit more information on how each of these files was generated.

                    Thomas

                    S 1 Reply Last reply
                    0
                    • ? A Former User

                      @sansoy

                      Of these 4 models which is the custom trained YOLO model you mentioned above? I can't even get the edgetpu.tflite model to load so I need a little bit more information on how each of these files was generated.

                      Thomas

                      S Offline
                      S Offline
                      sansoy
                      Contributor
                      wrote on last edited by
                      #27

                      @thomas here's a yolov5 trained model.
                      https://drive.google.com/file/d/1wRbIXdylgx-EOGDLnuWnsytGd2DcTNeY/view?usp=drive_link

                      I used this instruction set to train a yolov5 model which works well on my mac, rPI4, linux box and nvidia jetson.
                      https://docs.ultralytics.com/yolov5/tutorials/train_custom_data/#23-organize-directories

                      S 1 Reply Last reply
                      0
                      • S sansoy

                        @thomas here's a yolov5 trained model.
                        https://drive.google.com/file/d/1wRbIXdylgx-EOGDLnuWnsytGd2DcTNeY/view?usp=drive_link

                        I used this instruction set to train a yolov5 model which works well on my mac, rPI4, linux box and nvidia jetson.
                        https://docs.ultralytics.com/yolov5/tutorials/train_custom_data/#23-organize-directories

                        S Offline
                        S Offline
                        sansoy
                        Contributor
                        wrote on last edited by
                        #28

                        @thomas here's the colab notebook i used to create the tflites and quantized tflites
                        https://colab.research.google.com/drive/1QdgpSl63OSQdLTnFwOyP8dxLQ7W0HtmW?usp=sharing

                        ? 1 Reply Last reply
                        0
                        • S sansoy

                          @thomas here's the colab notebook i used to create the tflites and quantized tflites
                          https://colab.research.google.com/drive/1QdgpSl63OSQdLTnFwOyP8dxLQ7W0HtmW?usp=sharing

                          ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #29

                          @sansoy

                          I found the bug in our code that's causing the issue. You can see on this line that a for YOLO models a former employee hardcoded the number of classes to be 80 leading to a segfault when we only have a single class like in your case. Here's what your model looks like on our server with the fix:

                          7b4e7252-e3f7-4204-be81-abacde3b5c4b-image.png

                          What I'm going to do is write a patch for voxl-tflite-server that more intelligently reads the number from the labels file. This will be available in our SDK Nightlies and so you'll be able to use the fix tomorrow morning. If you'd like the fix sooner, what I can do is package the new voxl-tflite-server into a .deb so you can deploy it manually to your VOXL. I can help you out with this process if you're not familiar.

                          Thanks,
                          Thomas Patton
                          thomas.patton@modalai.com

                          ? S 2 Replies Last reply
                          1
                          • ? A Former User

                            @sansoy

                            I found the bug in our code that's causing the issue. You can see on this line that a for YOLO models a former employee hardcoded the number of classes to be 80 leading to a segfault when we only have a single class like in your case. Here's what your model looks like on our server with the fix:

                            7b4e7252-e3f7-4204-be81-abacde3b5c4b-image.png

                            What I'm going to do is write a patch for voxl-tflite-server that more intelligently reads the number from the labels file. This will be available in our SDK Nightlies and so you'll be able to use the fix tomorrow morning. If you'd like the fix sooner, what I can do is package the new voxl-tflite-server into a .deb so you can deploy it manually to your VOXL. I can help you out with this process if you're not familiar.

                            Thanks,
                            Thomas Patton
                            thomas.patton@modalai.com

                            ? Offline
                            ? Offline
                            A Former User
                            wrote on last edited by
                            #30

                            @thomas

                            Link Preview Image
                            Fix TFLite Num Classes Bug (!22) · Merge requests · voxl / VOXL SDK / Services / voxl-tflite-server · GitLab

                            Tensorflow-Lite (TFlite) server that outputs Tflite processed images

                            favicon

                            GitLab (gitlab.com)

                            Here's the merge request with the fix, this will be published both in tonight's nightly and new SDK releases.

                            Thomas

                            S 1 Reply Last reply
                            1
                            • ? A Former User

                              @sansoy

                              I found the bug in our code that's causing the issue. You can see on this line that a for YOLO models a former employee hardcoded the number of classes to be 80 leading to a segfault when we only have a single class like in your case. Here's what your model looks like on our server with the fix:

                              7b4e7252-e3f7-4204-be81-abacde3b5c4b-image.png

                              What I'm going to do is write a patch for voxl-tflite-server that more intelligently reads the number from the labels file. This will be available in our SDK Nightlies and so you'll be able to use the fix tomorrow morning. If you'd like the fix sooner, what I can do is package the new voxl-tflite-server into a .deb so you can deploy it manually to your VOXL. I can help you out with this process if you're not familiar.

                              Thanks,
                              Thomas Patton
                              thomas.patton@modalai.com

                              S Offline
                              S Offline
                              sansoy
                              Contributor
                              wrote on last edited by
                              #31

                              @thomas you rock! awesome! thanks for troubleshooting.

                              1 Reply Last reply
                              0
                              • ? A Former User

                                @thomas

                                Link Preview Image
                                Fix TFLite Num Classes Bug (!22) · Merge requests · voxl / VOXL SDK / Services / voxl-tflite-server · GitLab

                                Tensorflow-Lite (TFlite) server that outputs Tflite processed images

                                favicon

                                GitLab (gitlab.com)

                                Here's the merge request with the fix, this will be published both in tonight's nightly and new SDK releases.

                                Thomas

                                S Offline
                                S Offline
                                sansoy
                                Contributor
                                wrote on last edited by
                                #32

                                @thomas thanks thomas. will download tomorrow and test either in evening or next day. Really appreciate your help with this.
                                Great job! Sabri

                                ? 1 Reply Last reply
                                0
                                • S sansoy

                                  @thomas thanks thomas. will download tomorrow and test either in evening or next day. Really appreciate your help with this.
                                  Great job! Sabri

                                  ? Offline
                                  ? Offline
                                  A Former User
                                  wrote on last edited by
                                  #33

                                  @sansoy

                                  Yeah of course, glad I could be of assistance! Be sure to let me know if you need any more help with this.

                                  Two things I was thinking about on my drive home that you should know - First, when you're on that page I linked above for the software nightlies make sure you sort the files by date descending so that you get the most recent one. I always make the mistake of getting the wrong one. Secondly, when you flash that nightly SDK it will overwrite anything not in the /data/ directory and so you will need to put your model file and labels txt back into /usr/bin/dnn/.

                                  Thomas

                                  S 1 Reply Last reply
                                  0
                                  • ? A Former User

                                    @sansoy

                                    Yeah of course, glad I could be of assistance! Be sure to let me know if you need any more help with this.

                                    Two things I was thinking about on my drive home that you should know - First, when you're on that page I linked above for the software nightlies make sure you sort the files by date descending so that you get the most recent one. I always make the mistake of getting the wrong one. Secondly, when you flash that nightly SDK it will overwrite anything not in the /data/ directory and so you will need to put your model file and labels txt back into /usr/bin/dnn/.

                                    Thomas

                                    S Offline
                                    S Offline
                                    sansoy
                                    Contributor
                                    wrote on last edited by
                                    #34

                                    @thomas Morning Thomas, just getting back to this. I couldnt find any SDK that had a 2024 stamp. Was this uploaded somewhere else?
                                    Sabri

                                    ? 1 Reply Last reply
                                    0
                                    • S sansoy

                                      @thomas Morning Thomas, just getting back to this. I couldnt find any SDK that had a 2024 stamp. Was this uploaded somewhere else?
                                      Sabri

                                      ? Offline
                                      ? Offline
                                      A Former User
                                      wrote on last edited by
                                      #35

                                      @sansoy

                                      Here's the one from last night:

                                      https://console.cloud.google.com/storage/browser/_details/platform-nightlies/voxl2/voxl2_SDK_nightly_20240117.tar.gz?pageState=("StorageObjectListTable":("s":[("i":"objectListDisplayFields%2FtimeLastModified","s":"1"),("i":"displayName","s":"0")]))&organizationId=517175400245&project=modalai-core-services

                                      You just have to make sure when you're on this page that you sort date modified by descending.

                                      Thanks,
                                      Thomas

                                      S 1 Reply Last reply
                                      0
                                      • ? A Former User

                                        @sansoy

                                        Here's the one from last night:

                                        https://console.cloud.google.com/storage/browser/_details/platform-nightlies/voxl2/voxl2_SDK_nightly_20240117.tar.gz?pageState=("StorageObjectListTable":("s":[("i":"objectListDisplayFields%2FtimeLastModified","s":"1"),("i":"displayName","s":"0")]))&organizationId=517175400245&project=modalai-core-services

                                        You just have to make sure when you're on this page that you sort date modified by descending.

                                        Thanks,
                                        Thomas

                                        S Offline
                                        S Offline
                                        sansoy
                                        Contributor
                                        wrote on last edited by
                                        #36

                                        @thomas

                                        installed voxl2_SDK_nightly_20240117.tar.gz
                                        per https://docs.modalai.com/flash-system-image/

                                        still not getting any detection even with your default yolov5. ive tried with hires large color, small color and grey.

                                        tflite_1705597671.png

                                        ? 1 Reply Last reply
                                        0
                                        • S sansoy

                                          @thomas

                                          installed voxl2_SDK_nightly_20240117.tar.gz
                                          per https://docs.modalai.com/flash-system-image/

                                          still not getting any detection even with your default yolov5. ive tried with hires large color, small color and grey.

                                          tflite_1705597671.png

                                          ? Offline
                                          ? Offline
                                          A Former User
                                          wrote on last edited by
                                          #37

                                          @sansoy

                                          Checking this out right now, will let you know when I have something.

                                          Thomas

                                          ? 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

                                          • Don't have an account? Register

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