GithubHelp home page GithubHelp logo

Comments (12)

jkjung-avt avatar jkjung-avt commented on August 29, 2024

There are version dependencies among these things, so I wouldn't recommend you to use the latest 'tensorflow/models' code to train your own model.

  • Object detection API (the code gets updated very frequently, and the latest code on GitHub probably only works with the latest version of tensorflow
  • tensorflow
  • UFF & TensorRT

Reference: jkjung-avt/hand-detection-tutorial#24 (comment)

from tensorrt_demos.

SahilChachere avatar SahilChachere commented on August 29, 2024

There are version dependencies among these things, so I wouldn't recommend you to use the latest 'tensorflow/models' code to train your own model.

  • Object detection API (the code gets updated very frequently, and the latest code on GitHub probably only works with the latest version of tensorflow
  • tensorflow
  • UFF & TensorRT

Reference: jkjung-avt/hand-detection-tutorial#24 (comment)

@jkjung-avt - I have trained my model in tensorflow==1.14.0 and in another machine, so on jetson nano also i have installed tf==1.14.0, if my tf version in training machine and nano is different will it work?

from tensorrt_demos.

jkjung-avt avatar jkjung-avt commented on August 29, 2024

Reference: jkjung-avt/hand-detection-tutorial#24 (comment)

One very key thing is to use an older version ('6518c1c') of object detection API. For example,

git clone https://github.com/tensorflow/models.git
cd models
git checkout 6518c1c

I have trained my model in tensorflow==1.14.0 and in another machine, so on jetson nano also i have installed tf==1.14.0, if my tf version in training machine and nano is different will it work?

I've tested the following and it worked. I cannot guarantee other combination would also work though.

  • ssd_mobilenet_v1_egohands and ssd_mobilenet_v2_egohands trained with tensorflow-1.12.0
  • optimize the 2 models with TensorRT 6 (JetPack-4.3) and tensorflow-1.15.0 on Jetson Nano
  • run inference with TensorRT 6 on Jetson Nano

from tensorrt_demos.

PythonImageDeveloper avatar PythonImageDeveloper commented on August 29, 2024

Hi @jkjung-avt
1- Has the TensorRT 6 more speed than TensorRT 5?
2- You tested the models with jetpack 4.3 and TensorFlow-1.15.0 on jetson. For training you use Tensorflow-1.12.x?

from tensorrt_demos.

jkjung-avt avatar jkjung-avt commented on August 29, 2024
  1. TensorRT 6 engines run slightly faster than TensorRT 5 (on the Jetson Nano I tested).
  2. Yes.

from tensorrt_demos.

jkjung-avt avatar jkjung-avt commented on August 29, 2024

@SahilChachere, alternatively you could check out this post on NVIDIA developer forum: https://devtalk.nvidia.com/default/topic/1069027/tensorrt/parsing-gridanchor-op-_gridanchor_trt-protobuf-repeated_field-h-1408-check-failed-index-lt-current_size_-/post/5415537/#5415537

The author says the fix works for the latest tensorflow object detection API.

from tensorrt_demos.

SahilChachere avatar SahilChachere commented on August 29, 2024

@SahilChachere, alternatively you could check out this post on NVIDIA developer forum: https://devtalk.nvidia.com/default/topic/1069027/tensorrt/parsing-gridanchor-op-_gridanchor_trt-protobuf-repeated_field-h-1408-check-failed-index-lt-current_size_-/post/5415537/#5415537

The author says the fix works for the latest TensorFlow object detection API.

@jkjung-avt, will I have to train model again with the latest TensorFlow object detection API? or are there are any tweaks to change/Parameters adjustments(without training possible?) for the already trained model in the latest TensorFlow object detection API?

from tensorrt_demos.

jkjung-avt avatar jkjung-avt commented on August 29, 2024

I don't have more information about the fix mentioned in that NVIDIA forum post.

On the other hand, if you plan to retrain your SSD model, I suggest you to use my hand-detection-tutorial code. Here's another reference which might help: jkjung-avt/hand-detection-tutorial#24

from tensorrt_demos.

SahilChachere avatar SahilChachere commented on August 29, 2024

I don't have more information about the fix mentioned in that NVIDIA forum post.

On the other hand, if you plan to retrain your SSD model, I suggest you to use my hand-detection-tutorial code. Here's another reference which might help: jkjung-avt/hand-detection-tutorial#24

@jkjung-avt yes, the only problem I am facing now is in last step of conversion, .uff and .pbtxt files are written but script stops in the last step of conversion i.e. .bin file.

from tensorrt_demos.

SahilChachere avatar SahilChachere commented on August 29, 2024

I don't have more information about the fix mentioned in that NVIDIA forum post.

On the other hand, if you plan to retrain your SSD model, I suggest you to use my hand-detection-tutorial code. Here's another reference which might help: jkjung-avt/hand-detection-tutorial#24

@jkjung-avt - you have mentioned that you trained using tensorflow==1.12.0 but the problem persists with tf==1.12.0 that it is not compatible with Cuda 10.0 and I have installed Cuda 10.0. I will have to downgrade to Cuda version 9.0

from tensorrt_demos.

jkjung-avt avatar jkjung-avt commented on August 29, 2024

I build tensorflow-1.12.0 on my x86_PC by myself. CUDA 10.0 works.

from tensorrt_demos.

SahilChachere avatar SahilChachere commented on August 29, 2024

Thank you for all the help, I have resolved my issue by providing correct input_order = [1, 2, 0] but before that, I trained models using models@6518c1c version only, it doesn't support trained models using - models repo which I was using, need resolve dependency issues.

from tensorrt_demos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.