I am trying to get my custom .uff file to work on TX2. However I get the following error:
[loadModelAndCreateEngine] Parse UFF File: uff_ready/output_model.uff
ERROR: UFFParser: Validator error: net_vlad_layer_1/l2_normalize/Square: Invalid enum field 'func': bad type or not present
ERROR: sample_uff_mnist: Fail to parse
ERROR: sample_uff_mnist: Model load failed
I am using TensorRT C++ API. I had a keras model (which inturn had a custom layer defined).
I converted the keras model (from h5) to tensorflow’s .pb. The used the convert-to-uff utility from nvidia to get the uff file.
All the data files are: tx2_whole_image_desc_server/standalone/uff_ready at master · mpkuse/tx2_whole_image_desc_server · GitHub
On looking at the pbtxt file (which is the same as the .pb file but in readable text),
it seems like I had several nodes with same prefix name as in the output.
Please advice how can this is resolved.