build.sh not working out of the box.
See original GitHub issueWill be investigating this further, but as of now, the instructions given in the README.md
and samples/README.md
do not seem to work out-of-the-box:
README.md
Building
To get started, build the service as a standalone component execute the following command
./docker/build.sh
samples/README.md
- Build the service container with sample pipelines:
~/video-analytics-serving$ ./docker/build.sh
When running build.sh
the following error is thrown:
./docker/build.sh: line 165: ${MODELS^^}: bad substitution
I’m assuming necessary flags aren’t being set, but in such case, I believe that the README’s must be updated. Will update this thread further into the night after some code-reading.
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
build.sh not found when doing docker build #30 - GitHub
Hi, I followed the procedures of multi-stage image build described in chapter 2 but was getting the build.sh not found problem.
Read more >docker run fails to run shell script (file not found) although the ...
1 Answer 1 · either use a CMD in shell form: CMD chmod 755 login.sh && ./login.sh · or keep a CMD in...
Read more >How do I run .sh scripts? - command line - Ask Ubuntu
Double-click on the file; Click run in terminal. This has problem. The terminal will close immediately and you will not be able to...
Read more >Kodi Not Working on Firestick? Try these Fixes (Updated 2022)
Struggling to figure out why Kodi isn't working on your firestick? We explain some of the most common Kodi problems and how to...
Read more >Overview of Docker Build - Docker Documentation
Learn how to use Docker in your continuous integration pipelines. Arrow coming out of a box. Exporters . Export any artifact you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You should be able to increase the log_level to DEBUG to get more info on the exact error. Most probably in this case there is a typo in the pipeline.
We are working on improving the documentation, but we can help you through. The basics are to add a directory under models with the structure: model_name/version/FP32/*.bin, *.xml. Once the model is there you can refer to it in a pipeline by: models[model_name][version][network] and VA Serving will fill in the full path at runtime.
The challenge with this specific model is that it’s post-processing is not currently handled directly by DLStreamer and you will have to write some custom processing code to convert the tensor output into a bounding box. The simplest approach would be to use the gvapython element and implement the post processing in python. (Section 3 here)
https://github.com/opencv/gst-video-analytics/wiki/Custom-Processing
The post processing for this model can be found here:
https://github.com/opencv/open_model_zoo/blob/master/demos/text_detection_demo/src/text_detection.cpp
Many models (ssd, tiny lolo, mobilenet-v2 classification) work out of the box - but unfortunately not this one (yet). If you’d like to see this feature please add a request on the DLStreamer repo.
https://github.com/opencv/gst-video-analytics
If you decide to go the custom processing route - let us know if you run into any issues
We will double check the shell requirements and try to find a way to make it portable - in the mean time let us know if those commands work - thanks!