parser = argparse.ArgumentParser()
help=“filename of the image to process”)
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
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?