Python detectNet: Can't Set Threshold

I cannot seem to set a threshold when calling detectNet:

net = jetson.inference.detectNet(threshold=0.3, argv=[.....

nevertheless results in:

detectNet -- loading detection network model from:
          -- prototxt     NULL
          -- model        cones-and-cells/ssd-mobilenet.onnx
          -- input_blob   'input_0'
          -- output_cvg   'scores'
          -- output_bbox  'boxes'
          -- mean_pixel   0.000000
          -- mean_binary  NULL
          -- class_labels cones-and-cells/labels.txt
          -- threshold    0.500000   <===========
          -- batch_size   1

Hi @goldsmim, when using that combination of arguments, try setting --threshold=0.3 inside of the argv list. For example:

net = jetson.inference.detectNet(argv=['--threshold=0.3', ...

The threshold should then be parsed.

1 Like