Triton IS + Python App for custom Image Classifier Inference on Jetson Nano

Hi,

I installed the tensorflow by following the guidelines here: Official TensorFlow for Jetson Nano!

OpenCV was already installed earlier (v 4.1.1). Now my code is failing in a previous step before reaching the Keras model inference. I am able to load the model with tf.keras.models.load_model. However, an upstream step of custom Obj Detection using Yolo3tiny inference (Darknet) is failing as shown below.

$ python3
Python 3.6.9 (default, Oct  8 2020, 12:12:24) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'4.1.1'
>>> net = cv2.dnn.readNetFromDarknet("Myobj-detection-yolo3tiny-prn.cfg","Myobj-detection-yolo3tiny-prn.weights")
terminate called after throwing an instance of 'std::out_of_range'
  what():  vector::_M_range_check: __n (which is 30) >= this->size() (which is 22)
Aborted (core dumped)

The same code works fine on a laptop with GPU

Any thoughts?