Repository: mlcommons/inference
Issue: main.py: error: unrecognized arguments: --queries-offline 20
Root cause: Documentation Deficiency

I was trying to run _GettingStarted.ipynb_ in _v0.5/classification_and_detection_ directory, but when running the cell at step 4:
`!./run_local.sh onnxruntime mobilenet cpu --accuracy`  
I get the following error message: `main.py: error: unrecognized arguments: --queries-offline 20`

I have defined the directories as follows in step 3:
```
os.environ['MODEL_DIR'] = 'mobilenet_v1_1.0_224.onnx'
os.environ['DATA_DIR'] = os.path.join(root, "fake_imagenet")
```

I have downloaded the models and run the create fake imagenet script as well.

Is there anything that I have missed when running this notebook?

Also I have found that removing `os.environ['EXTRA_OPS'] ="--queries-offline 20 --time 10 --max-latency 0.2"` gives the following error message:

```
INFO:main:Namespace(accuracy=True, backend='onnxruntime', cache=0, config='../mlperf.conf', count=None, data_format=None, dataset='imagenet_mobilenet', dataset_list=None, dataset_path='/home/work/salt/mlperf/inference/v0.5/classification_and_detection/fake_imagenet', find_peak_performance=False, inputs=None, max_batchsize=32, max_latency=None, model='mobilenet_v1_1.0_224.onnx/mobilenet_v1_1.0_224.onnx', model_name='mobilenet', output='/home/work/salt/mlperf/inference/v0.5/classification_and_detection/output/onnxruntime-cpu/mobilenet', outputs=['MobilenetV1/Predictions/Reshape_1:0'], profile='mobilenet-onnxruntime', qps=None, samples_per_query=None, scenario='SingleStream', threads=11, time=None)
INFO:imagenet:loaded 8 images, cache=0, took=0.0sec
Traceback (most recent call last):
  File "python/main.py", line 537, in <module>
    main()
  File "python/main.py", line 430, in main
    model = backend.load(args.model, inputs=args.inputs, outputs=args.outputs)
  File "/home/work/salt/mlperf/inference/v0.5/classification_and_detection/python/backend_onnxruntime.py", line 33, in load
    self.sess = rt.InferenceSession(model_path, opt)
  File "/home/work/.local/lib/python3.6/site-packages/onnxruntime/capi/session.py", line 25, in __init__
    self._load_model(providers)
  File "/home/work/.local/lib/python3.6/site-packages/onnxruntime/capi/session.py", line 32, in _load_model
    self._path_or_bytes, True)
RuntimeError: /onnxruntime_src/onnxruntime/core/session/inference_session.cc:220 onnxruntime::InferenceSession::InferenceSession(const onnxruntime::SessionOptions&, const string&, onnxruntime::logging::LoggingManager*) status.IsOK() was false. Given model could not be parsed while creating inference session. Error message: system error number 20
Stacktrace:
```

Hm, I ran this many times but not recently. Are there more messages from onnx runtime ?
This is the model from zenodo and onnxruntime-1.1 ?

Yes, the model is from zenodo, onnxruntime is version 1.1.1

Could this be an error related to onnxruntime?

I've also found that removing `--queries-offline` makes it work, albeit resulting in an accuracy of 62.5%

```--queries-offline``` is no longer an valid argument (guess we forgot to update the tutorial. we'll update it for v0.7).
The accuracy is not really meaningful since the tutorial uses a fake dataset with just a couple of images.

ok, thank you!