Open Snixells opened 4 years ago
I have tried in colab with TF nightly version(2.4.0-dev20200803
) and i am seeing session is crashed.Please, find the gist here.Thanks!
That input size error Input shape axis 0 must equal 1, got shape [640,640,3]
was resolved with
inp1 = np.random.normal(size=(1, 1, 640, 640, 3)).astype(np.uint8)
Or you can use
inp1 = tf.cast(tf.random.uniform((1, 1, 640, 640, 3)), tf.dtypes.uint8)
Still TRT conversion didn't speed up things much. I am yet to understand which operators are not supported yet.
Prerequisites
Please answer the following questions for yourself before submitting an issue.
1. The entire URL of the file you are using
https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2_detection_zoo.md
2. Describe the bug
Hey there! I am trying to convert the SSD ResNet50 V1 FPN 640x640 (RetinaNet50) of the new Tensorflow 2 Object Detection API to a TensorRT Model to run on my Jetson AGX Board.
3. Steps to reproduce
I am running the following Code:
When running that Code I am getting the following Error:
The error says that there is a Problem with my Input Dimensions. It specificially says that my first (index 0) dimension needs to be 1. I am passing a numpy array with the first Dimension beeing 1 (1, 640, 640, 3), but in the Error message it says that the Array is of shape [640,640,3].
I am not sure how to change my input so that it satisfies the requirements.
Thanks for your help!
4. Expected behavior
I want a TensorRT optimized Model so that I can run it on my Jetson AGX
6. System information