I was on the Re-training on the Cat/Dog Dataset in the Hello AI World course, and I made sure that I did everything right. However, when I got to the testing portion, it would return an error.
This is what I inputted.
imagenet.py --model=$models/cat_dog/resnet18.onnx --input_blob=input_0 --output_blob=output_0 --labels=$data/cat_dog/labels.txt $data/cat_dog/test/cat/01.jpg cat.jpg
This is what I got.
error: model file ‘/cat_dog/resnet18.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] failed to load /cat_dog/resnet18.onnx
[TRT] imageNet – failed to initialize.
jetson.inference – imageNet failed to load built-in network ‘googlenet’
Traceback (most recent call last):
File “/usr/local/bin/imagenet.py”, line 55, in
net = jetson.inference.imageNet(opt.network, sys.argv)
Exception: jetson.inference – imageNet failed to load network