I am getting same error when trying to load my custom model, can someone help? Thanks in advance!
Here’s my program
import jetson.inference
import jetson.utils
import argparse
net = jetson.inference.detectNet(argv=[‘–model=~/jetson-inference/python/training/detection/ssd/models/flex/ssd-mobilenet.onnx’, ‘–labels=~/jetson-inference/python/training/detection/ssd/models/flex/labels.txt’, ‘–input-blob=input_0’, ‘–output-cvg=scores’, ‘–output-bbox=boxes’], threshold=0.5)
camera = jetson.utils.gstCamera(1280, 720, “/dev/video0”)
display = jetson.utils.glDisplay()
while display.IsOpen():
img, width, height = camera.CaptureRGBA()
detections = net.Detect(img, width, height)
display.RenderOnce(img, width, height)
display.SetTitle(“Object Detection | Network {:.0f} FPS”.format(net.GetNetworkFPS()))
Here’s the error from log:
error: model file ‘~/jetson-inference/python/training/detection/ssd/models/flex/ssd-mobilenet.onnx’ was not found.
if loading a built-in model, maybe it wasn’t downloaded before.
Run the Model Downloader tool again and select it for download:
$ cd <jetson-inference>/tools
$ ./download-models.sh
[TRT] detectNet – failed to initialize.
jetson.inference – detectNet failed to load network
Traceback (most recent call last):
File “fixture.py”, line 5, in
net = jetson.inference.detectNet(argv=[‘–model=~/jetson-inference/python/training/detection/ssd/models/flex/ssd-mobilenet.onnx’, ‘–labels=~/jetson-inference/python/training/detection/ssd/models/flex/labels.txt’, ‘–input-blob=input_0’, ‘–output-cvg=scores’, ‘–output-bbox=boxes’], threshold=0.5)
Exception: jetson.inference – detectNet failed to load network