OpenCV => opencv_python-4.2.0.32 (inside a venv installed via pip) and also a version built from master (commit hash 0979940)
Operating System / Platform => Ubuntu 20.04 (amd64)
Compiler => ❔ N/A
Detailed description
The converted bodypix (mobilenet v2?) dnn model from tfjs loaded into opencv in python using cvNet = cv2.dnn.readNetFromTensorflow fails when calling cvNet.forward() with the following error:
Traceback (most recent call last):
File "test-bodypix.py", line 7, in <module>
results = cvNet.forward()
cv2.error: OpenCV(4.2.0) /io/opencv/modules/dnn/src/dnn.cpp:562: error: (-2:Unspecified error) Can't create layer "clip_by_value/Minimum" of type "Minimum" in function 'getLayerInstance'
Download URLs for original unconverted bodypix model.json files (I've also attached the converted model.pb that I am using below):
I edited my post before you replied to indicate that I also tried master branch. Also note that 4.3.0 does not exist in the pypi.org package repository.
I manage to draw the graph using tensor board. The Minimum / Maximum operation is actually at the very last operation for "float_parts_offsets" @dkurt has implemented some graph transformation for fusing this into Relu6 ?
I am not sure why it isn't for this case
diddledani commentedMay 8, 2020
•
edited
System information (version)
pip
) and also a version built from master (commit hash 0979940)Detailed description
The converted bodypix (mobilenet v2?) dnn model from tfjs loaded into opencv in python using
cvNet = cv2.dnn.readNetFromTensorflow
fails when callingcvNet.forward()
with the following error:Download URLs for original unconverted bodypix
model.json
files (I've also attached the convertedmodel.pb
that I am using below):https://storage.googleapis.com/tfjs-models/savedmodel/bodypix/mobilenet/float/050/model-stride16.json
https://storage.googleapis.com/tfjs-models/savedmodel/bodypix/mobilenet/float/050/group1-shard1of1.bin
Steps to reproduce
model.pb
and minimum python implementation for reproduction: bodypix-test.zipmodel.pb
: model.zipIssue submission checklist
answers.opencv.org, Stack Overflow, etc and have not found solution
The text was updated successfully, but these errors were encountered: