-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting TensorRT to work #79
Comments
It did work eventually. |
@AnaRhisT94 please do write to this thread if you are able to solve it. |
@humandotlearning Working on it now, will update asap. |
@AnaRhisT94 which version of TensorRT and TF did you use? |
TRT 5.1.5.0 |
@AnaRhisT94 that's great! How fast was your models before? |
Around 28ms on RTX 2070 with yolo.predict_on_batch(img). |
Is the 28ms-model trained with your own dataset ? |
Yes |
@AnaRhisT94 What about your model ability,how much the mAP or does your detect works?Could you give us some help,thks. |
Still haven't calculated mAP. Overall, the accuracy is VERY good. Trained from scratch on my data. |
Do you use the whole original code of this repo and what is your train cmd? |
Yes. |
Could you share your |
It has just some simple modifications, it doesn't do anything special. |
How many classes does your own dataset has?It seems that only 80 classes can be work. |
2 |
@AnaRhisT94 |
@AnaRhisT94 have you tried INT8 trt conversion? Did you run into issue with NMS op? |
Nope. Nope. |
Sure. I will do it next week, it's pretty straight forward. |
With newer version of TF 2.1.2rc0 I'm getting even lower ms rate, around 20ms~ without TRT. |
Thanks @AnaRhisT94. I had issue converting to INT8 due to CombinedNonMaxSuppression. Looking forward to your experiment. |
Hi,
I'm trying to run TensorRT on this repo.
First of all I create a
.pb
file of myyolo
model.Then, I convert the saved model into a
.trt
format:In the end I'm running an inference function. Which its purpose should be to get the outputs with
concrete_function
.I'm debugging the
result
variable to see the output:The outputs of the variable
results
are:( All of them are zeros)
Examples of
Tensorflow
outputs when usingyolo(img)
without TRT:I debugged the TF and TRT
SavedModel
signature and they're different in theshape
:TensorFlow:
TensorRT:
My questions are:
Am I doing the last part wrong, and I should use the
.trt
engine in another way? Have anyone succeeded running TensorRT on this repo?Is there a simple Yolov3-TensorRT which works on TensorFlow? (Currently checking: https://github.com/lewes6369/TensorRT-Yolov3 , but this is used with .caffe model, but still will check that out)
Should I try to convert to
.onnx
and there run the inference with the provided sample of NVIDIA (https://docs.nvidia.com/deeplearning/sdk/tensorrt-sample-support-guide/index.html#yolov3_onnx) #number 30?The text was updated successfully, but these errors were encountered: