Problem with `face-detection-retail-0004` with openvino_2020.1.023
See original GitHub issueI would like to use the latest OpenVino, but I have a problem running the face-detection-retail-0004
example. I’m following this tutorial and using this script. I can see the video capture from the camera and the script doesn’t report errors, but the inference does’t work. When I print out print(str(e['label']) + " " + str(e['conf']))
I get constant values:
1.0 0.04296875
1.0 0.04296875
1.0 0.04296875
1.0 0.04296875
1.0 0.04296875
.
.
.
Can I somehow debug further, or should I just switch to the older OpenVINO release?
Issue Analytics
- State:
- Created 3 years ago
- Comments:24
Top Results From Across the Web
OpenVINO 2020.1 doesn't work on Raspberry Pi and NCS2
OpenVINO 2020.1 simply refuses to work when using the NCS2 in a Raspberry Pi. ... same error as 105 -face-detection-retail-0004 do not work....
Read more >face-detection-retail-0004 - OpenVINO™ Documentation
Face detector based on SqueezeNet light (half-channels) as a backbone with a single SSD for indoor/outdoor scenes shot by a front-facing camera.
Read more >face-detection-retail-0004 zero dimension error when reading ...
Solved: I assume this model should run fine but I get this error when reading it: File "ie_api.pyx", line 136, in.
Read more >face_detection_retail_0004 | ncappzoo
Takes an image and runs an inference on the face-detection-retail-0004 model. The sample can also be used to crop images and write them...
Read more >Student Attendance with Face ID - Hackster.io
Intel OpenVINO is the most powerful AI platform around the world. It's ability to run inference ... face-detection-retail-0004.xml ^ -m_lm .
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 Free
Top 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
So @mariusz-r ,
Here’s what I did to quickly get the face detection running.
Also, I didn’t checkout any special branch, just master, and then modified depthai.py, this line:
Changed this to:
/home/pi/Desktop/depthai-python-extras/resources/nn/object_detection_4shave/face-detection-retail-0004.blob
As below:
Notice I didn’t change the path to where the class names are, so it says ‘aeroplane’ over my face instead of ‘face’. You can change that as you desire. The first class in the path that I left it pointed to is ‘aeroplane’. If you change this path (or just change the class in the existing file) than you can properly get the face display.
Sorry about the messy examples. We need to clean them up. Will do so this week.
Thanks, Brandon
So @mariusz-r I just updated the OpenVINO face-detection post w/ current use of DepthAI.
https://docs.luxonis.com/tutorials/openvino_model_zoo_pretrained_model/
We’ll probably be updating a bit more as we go forward, specifically to not have to select the neural
.blob
, the labels.txt
, and the tensor format.json
all independently. We’re going to move the labels into the .json and have the.blob
and the.json
live in their own folders so you can just select the folder and the.blob
and the.json
(which now includes the labels) are used together.@szabi-luxonis is implementing this change now.
Also closing this issue now but feel free to re-open it if there’s anything more on this.