Hi,
I have retrained the maskrcnn default coco model on my custom dataset now to run it with deepstream i need to convert it to uff first but i am unable to do so
I followed this
https://github.com/NVIDIA/TensorRT/tree/master/samples/opensource/sampleUffMaskRCNN but once i run the final command i get this error
python3 mrcnn_to_trt_single.py -w /root/Mask_RCNN/mask_rcnn_cafe_0006.h5 -o /root/Mask_RCNN/mrcnn_nchw.uff -p ./config.py
Traceback (most recent call last):
File "mrcnn_to_trt_single.py", line 166, in
main()
File "mrcnn_to_trt_single.py", line 115, in main
model = modellib.MaskRCNN(mode="inference", model_dir=LOG_DIR, config=config).keras_model
File "/usr/local/lib/python3.6/dist-packages/mrcnn/model.py", line 1832, in init
self.keras_model = self.build(mode=mode, config=config)
File "/usr/local/lib/python3.6/dist-packages/mrcnn/model.py", line 1896, in build
stage5=True, train_bn=config.TRAIN_BN)
File "/usr/local/lib/python3.6/dist-packages/mrcnn/model.py", line 180, in resnet_graph
x = KL.Conv2D(64, (7, 7), strides=(2, 2), name='conv1', use_bias=True)(x)
File "/usr/local/lib/python3.6/dist-packages/keras/engine/base_layer.py", line 463, in call
self.build(unpack_singleton(input_shapes))
File "/usr/local/lib/python3.6/dist-packages/keras/layers/convolutional.py", line 132, in build
raise ValueError('The channel dimension of the inputs '
ValueError: The channel dimension of the inputs should be defined. Found None.`