So… I followed the tutorial from Jetson AI Fundamentals from here https://www.youtube.com/watch?v=sN6aT9TpltU.
I encounter the problem when it comes to the running final command “imagenet --model=models/tools/resnet18.onnx --labels=data/tools/labels.txt --input_blob=input_0 --output_blob=output_0 csi://0.”
Everything seem to work perfectly, no errors, camera starts but I think there is no detection being made. There is no banner in upper-left corner showing name of item with percentage. Although when I type just “imagenet” program starts and camera detects items from the library (GoogleNet I guess).
I am doing every step carefully from tutorial but I have no clue how to solve my problem.
What accuracy did you train your PyTorch model to?
From looking at your log, the only way it would not print out any of the results, are if the confidence values are negative or very small (which typically means the model is invalid or not trained).
Then re-run make and sudo make install. It should now print out all the results from the network (these should be positive, where 1.0 = 100% confidence)
That is strange that it has “normal” confidence values, even though you had to comment out that line. Can you try un-commenting it out and running it again? Maybe it was unrelated and the issue was with the model or TensorRT engine…
OK, and it is still working now even with that line the way it originally way (not commented out)? If so, I bet something else was going on, like for example the TensorRT engine needing refreshed based on your latest PyTorch model.
@dusty_nv
After uncommenting, upper-left corner statement is still shown, so commenting, then uncommenting solved this issue. That is kinda strange.
I guess I’ll try re-installing TensorRT engine and I will give some feedback then. Would you recommend any other useful tools/steps to build custom robot arm based on Jetson Nano?
By refreshing the TensorRT engine, I meant the *.engine file that is created for your model (it should be in the same directory as your model). If you delete it, it will re-run the model optimizations and create a new *.engine file. I didn’t mean to indicate that you should re-install the TensorRT libraries or JetPack.
There was a cool robotic arm project posted recently using Jetson, check it out here: