parser = argparse.ArgumentParser()
parser.add_argument(“input_URI”, type=str,
help=“filename of the image to process”)
parser.add_argument("–network", type=str,
help=“learning model to use”)
args = parser.parse_args()
I get the following
jetson.inference – imageNet.init() failed to parse args tuple
Traceback (most recent call last):
File “reconocimiento_v1.py”, line 29, in
‘–output_blob=output_0’
Exception: jetson.inference – imageNet.init() failed to parse args tuple
Change and I get the following error. What did I do wrong? @dusty_nv
Can you post your code inside <code> </code> tags so that the formatting is preserved? Because it is showing up with different characters in the browser and I’m not sure if that’s how it actually is on your source file or not.
OK, I tried this and found that you needed to specify a default argument for --network (or manually specify that on the command line), otherwise the args fail to parse and you get the exception that you were getting. Try modifying your script to reflect the below instead:
parser.add_argument("--network", type=str, default="googlenet",
help="learning model to use"
)
OK, this means that the file 'models/radiografia-torax/resnet18-70/resnet18.onnx' could not be found from the path that you ran the script from. Can you try ls models/radiografia-torax/resnet18-70/resnet18.onnx from the same directory that you are running the script from?
The imagenet.py script doesn’t support this already, but you are welcome to integrate whatever SQL library you want into the Python script for doing it.
I would recommend using sqlite3 module for Python, and it’s not really going to be different using it on Jetson than it would be on another machine - I would start here: https://docs.python.org/3/library/sqlite3.html
Yes, if the classes are already in the model, then you can just retrain on your new dataset of misclassifications.
Note that not all the pretrained models in Hello AI World do I have the training scripts for, so this would mostly pertain to your own custom trained models.
Hi @rodrigoavalos, you could use a sleep() call after the image is displayed - or if you want it permanently displayed, change the inner loop of the program so that it only processes on image.