-
Notifications
You must be signed in to change notification settings - Fork 66
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
error runing the tensorrt optimization #19
Comments
I've checked and it happens when running specifically this line :
in the python script... if that helps. Looks like a lot of efforts to get this thing running properly for me.. given I'm running TF15 (which is the wheel provided by nvidia) it seems like too much work to get this to work for my requirement (a personal project... no need to be ultra fast). I'll see if I can instead use another installation of TF1.13 provided in the 2-day example... |
Hi @omartin2010,
|
I solved the problem. These code changes need to be applied in diff --git a/tf_download_and_trt_model.py b/tf_download_and_trt_model.py
index c5e608c..083f746 100644
--- a/tf_download_and_trt_model.py
+++ b/tf_download_and_trt_model.py
@@ -1,4 +1,4 @@
-import tensorflow.contrib.tensorrt as trt
+from tensorflow.python.compiler.tensorrt import trt_convert as trt
import sys
import os
try:
@@ -19,6 +19,7 @@ print ("Building detection graph from model " + MODEL + "...")
frozen_graph, input_names, output_names = build_detection_graph(
config=config_path,
checkpoint=checkpoint_path,
+ force_nms_cpu=False,
score_threshold=0.3,
#iou_threshold=0.5,
batch_size=1 Please refer to these issues for more details. |
Did anyone run into this kind of error (I've only kept the latest from the output... it's pretty long) :
I'm running this on a Jetson TX2 with the latest jetpack (as of now, it is 4.3).
tensorflow-gpu 1.15.0+nv19.12.tf1
. Would that cause an issue with this?Any clue what might be causing this?
The text was updated successfully, but these errors were encountered: