Unable to find models or images when I run ./test/images/run.sh?

tazz: <p>I have setup a virtual environment . After that, I ran the python script download_datasets_and_models.py in the utils folder. Now, I am trying to run the run.sh script in the test/images folder and I get the following error</p>
<pre><code class="lang-auto">(venv-glow) [tkavathe@ adas2-linux build 11:18 AM]$   ./tests/images/run.sh
Model: .
Running 1 thread(s).
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0623 11:19:01.687749  5214 Error.cpp:119] exitOnError(Error) got an unexpected ErrorValue: 
Error code: MODEL_LOADER_INVALID_PROTOBUF
Error message: Can't find the model or network files for squeezenet.
Error return stack:
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:895
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:4463
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:4474
*** Check failure stack trace: ***
./bin/image-classifier[0x9acbbf]
./bin/image-classifier[0x9aafe2]
./bin/image-classifier[0x9ad298]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7fa9e0c0b390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7fa9de400428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7fa9de40202a]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0x9e49)[0x7fa9e2210e49]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0xb5cd)[0x7fa9e22125cd]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage9SendToLogEv+0x283)[0x7fa9e2214433]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage5FlushEv+0xbb)[0x7fa9e221215b]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google15LogMessageFatalD2Ev+0xe)[0x7fa9e2214e1e]
./bin/image-classifier[0x2b321a1]
./bin/image-classifier[0x8a14de]
./bin/image-classifier[0x4ec7bc]
./bin/image-classifier[0x4e8394]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xb8c80)[0x7fa9dea63c80]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7fa9e0c016ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fa9de4d241d]
./tests/images/run.sh: line 29:  5211 Aborted                 ./bin/image-classifier $1 $indices -image-mode=neg128to127 -m=squeezenet$model -model-input-name=data$suffix
Model: .
Running 1 thread(s).
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0623 11:19:01.723178  5220 Error.cpp:119] exitOnError(Error) got an unexpected ErrorValue: 
Error code: MODEL_LOADER_INVALID_PROTOBUF
Error message: Can't find the model or network files for squeezenet.
Error return stack:
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:895
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:4463
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:4474
*** Check failure stack trace: ***
./bin/image-classifier[0x9acbbf]
./bin/image-classifier[0x9aafe2]
./bin/image-classifier[0x9ad298]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7ff157684390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7ff154e79428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7ff154e7b02a]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0x9e49)[0x7ff158c89e49]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0xb5cd)[0x7ff158c8b5cd]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage9SendToLogEv+0x283)[0x7ff158c8d433]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage5FlushEv+0xbb)[0x7ff158c8b15b]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google15LogMessageFatalD2Ev+0xe)[0x7ff158c8de1e]
./bin/image-classifier[0x2b321a1]
./bin/image-classifier[0x8a14de]
./bin/image-classifier[0x4ec7bc]
./bin/image-classifier[0x4e8394]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xb8c80)[0x7ff1554dcc80]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7ff15767a6ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7ff154f4b41d]
./tests/images/run.sh: line 29:  5217 Aborted                 ./bin/image-classifier $1 $indices -image-mode=neg128to127 -m=squeezenet$model -model-input-name=data$suffix
Model: squeezenet
Running 1 thread(s).
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0623 11:19:01.733387  5226 Error.cpp:119] exitOnError(Error) got an unexpected ErrorValue: 
Error code: MODEL_LOADER_INVALID_PROTOBUF
Error message: Can't find the model or network files for squeezenet/model.onnx.
Error return stack:
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:895
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:4463
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:4474
*** Check failure stack trace: ***
./bin/image-classifier[0x9acbbf]
./bin/image-classifier[0x9aafe2]
./bin/image-classifier[0x9ad298]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f2364b95390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f236238a428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f236238c02a]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0x9e49)[0x7f236619ae49]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0xb5cd)[0x7f236619c5cd]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage9SendToLogEv+0x283)[0x7f236619e433]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage5FlushEv+0xbb)[0x7f236619c15b]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google15LogMessageFatalD2Ev+0xe)[0x7f236619ee1e]
./bin/image-classifier[0x2b321a1]
./bin/image-classifier[0x8a14de]
./bin/image-classifier[0x4ec7bc]
./bin/image-classifier[0x4e8394]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xb8c80)[0x7f23629edc80]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f2364b8b6ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f236245c41d]
./tests/images/run.sh: line 29:  5225 Aborted                 ./bin/image-classifier $1 $indices -image-mode=neg128to127 -m=squeezenet$model -model-input-name=data$suffix
Model: squeezenet
Running 1 thread(s).
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0623 11:19:01.744666  5238 Error.cpp:119] exitOnError(Error) got an unexpected ErrorValue: 
Error code: MODEL_LOADER_INVALID_PROTOBUF
Error message: Can't find the model or network files for squeezenet/model.onnx.
Error return stack:
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:895
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:4463
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:4474
*** Check failure stack trace: ***
./bin/image-classifier[0x9acbbf]
./bin/image-classifier[0x9aafe2]
./bin/image-classifier[0x9ad298]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7fb67f8d5390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7fb67d0ca428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7fb67d0cc02a]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0x9e49)[0x7fb680edae49]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0xb5cd)[0x7fb680edc5cd]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage9SendToLogEv+0x283)[0x7fb680ede433]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage5FlushEv+0xbb)[0x7fb680edc15b]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google15LogMessageFatalD2Ev+0xe)[0x7fb680edee1e]
./bin/image-classifier[0x2b321a1]
./bin/image-classifier[0x8a14de]
./bin/image-classifier[0x4ec7bc]
./bin/image-classifier[0x4e8394]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xb8c80)[0x7fb67d72dc80]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7fb67f8cb6ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fb67d19c41d]
./tests/images/run.sh: line 29:  5230 Aborted                 ./bin/image-classifier $1 $indices -image-mode=neg128to127 -m=squeezenet$model -model-input-name=data$suffix
Model: squeezenet
Running 1 thread(s).
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0623 11:19:01.755416  5241 Error.cpp:119] exitOnError(Error) got an unexpected ErrorValue: 
Error code: MODEL_LOADER_INVALID_PROTOBUF
Error message: Can't find the model or network files for squeezenet/model.onnx.
Error return stack:
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:895
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:4463
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:4474
*** Check failure stack trace: ***
./bin/image-classifier[0x9acbbf]
./bin/image-classifier[0x9aafe2]
./bin/image-classifier[0x9ad298]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f2007f71390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f2005766428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f200576802a]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0x9e49)[0x7f2009576e49]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0xb5cd)[0x7f20095785cd]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage9SendToLogEv+0x283)[0x7f200957a433]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage5FlushEv+0xbb)[0x7f200957815b]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google15LogMessageFatalD2Ev+0xe)[0x7f200957ae1e]
./bin/image-classifier[0x2b321a1]
./bin/image-classifier[0x8a14de]
./bin/image-classifier[0x4ec7bc]
./bin/image-classifier[0x4e8394]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xb8c80)[0x7f2005dc9c80]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f2007f676ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f200583841d]
./tests/images/run.sh: line 29:  5240 Aborted                 ./bin/image-classifier $1 $indices -image-mode=neg128to127 -m=squeezenet$model -model-input-name=data$suffix
Model: squeezenet
Running 1 thread(s).
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0623 11:19:01.766302  5244 Error.cpp:119] exitOnError(Error) got an unexpected ErrorValue: 
Error code: MODEL_LOADER_INVALID_PROTOBUF
Error message: Can't find the model or network files for squeezenet/model.onnx.
Error return stack:
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:895
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:4463
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/ONNXModelLoader.cpp:4474
*** Check failure stack trace: ***
./bin/image-classifier[0x9acbbf]
./bin/image-classifier[0x9aafe2]
./bin/image-classifier[0x9ad298]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7fea46016390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7fea4380b428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7fea4380d02a]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0x9e49)[0x7fea4761be49]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0xb5cd)[0x7fea4761d5cd]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage9SendToLogEv+0x283)[0x7fea4761f433]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage5FlushEv+0xbb)[0x7fea4761d15b]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google15LogMessageFatalD2Ev+0xe)[0x7fea4761fe1e]
./bin/image-classifier[0x2b321a1]
./bin/image-classifier[0x8a14de]
./bin/image-classifier[0x4ec7bc]
./bin/image-classifier[0x4e8394]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xb8c80)[0x7fea43e6ec80]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7fea4600c6ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fea438dd41d]
./tests/images/run.sh: line 29:  5243 Aborted                 ./bin/image-classifier $1 $indices -image-mode=neg128to127 -m=squeezenet$model -model-input-name=data$suffix
Model: squeezenet
Running 1 thread(s).
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0623 11:19:01.784961  5247 Error.cpp:119] exitOnError(Error) got an unexpected ErrorValue: 
Error message: Can't find the model or network files for squeezenet/predict_net.pb
Error return stack:
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/Caffe2ModelLoader.cpp:251
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/Caffe2ModelLoader.cpp:2076
/local/mnt2/workspace2/Virtual_Env/venv-glow/glow/lib/Importer/Caffe2ModelLoader.cpp:2098
*** Check failure stack trace: ***
./bin/image-classifier[0x9acbbf]
./bin/image-classifier[0x9aafe2]
./bin/image-classifier[0x9ad298]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f3b5812d390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f3b55922428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f3b5592402a]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0x9e49)[0x7f3b59732e49]
/usr/lib/x86_64-linux-gnu/libglog.so.0(+0xb5cd)[0x7f3b597345cd]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage9SendToLogEv+0x283)[0x7f3b59736433]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google10LogMessage5FlushEv+0xbb)[0x7f3b5973415b]
/usr/lib/x86_64-linux-gnu/libglog.so.0(_ZN6google15LogMessageFatalD2Ev+0xe)[0x7f3b59736e1e]
./bin/image-classifier[0x2b321a1]
./bin/image-classifier[0x7648ae]
./bin/image-classifier[0x4ec715]
./bin/image-classifier[0x4e8394]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xb8c80)[0x7f3b55f85c80]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f3b581236ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f3b559f441d]
./tests/images/run.sh: line 56:  5246 Aborted                 ./bin/image-classifier tests/images/imagenet/*.png -expected-labels=${imagenetIdxValues} -image-mode=neg128to127 -m=squeezenet/predict_net.pb -m=squeezenet/init_net.pb -model-input-name=data "$@"

</code></pre>

jfix: <p>Can you run ls in the directory you’re running <code>./test/images/run.sh</code>? Do you see a folder called <code>squeezenet/</code>? Does it have anything inside it?</p>

tazz: <p>Hi <a class="mention" href="/u/jfix">@jfix</a> ,</p>
<p>I was able to get the run.sh file running. I this case there was no option to specify the directory for the models. Also another suggestion would be to mention the directory structure during the installation procedure. As I see a lot of problems related to installation and working with things.</p>

Kittu28: <p>I have got almost same kind of error when running that  , can you please tell me how you solved it…?</p>

jfix: <p>You need to run the <code>run.sh</code> script from the same directory where the folders containing the model protobufs is.</p>

Marjorie5: <p>I appreciate you taking the time to share that information<a href="https://valerocreditcard.fun/" rel="noopener nofollow ugc">.</a> It really helps to broaden our understanding</p>