-
Notifications
You must be signed in to change notification settings - Fork 280
Some models do not work with CANN backend #136
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
List of models not working with CANN backend:
- lpd_yunet
- nanodet
- mobilenet v2
- pphumanseg
- dasiamrpn, cannot reproduce without the API, loading separately is good, not going to fix it.
- handpose mp
Fixed by opencv/opencv#23319 except DaSiamRPN.
The following models need to be updated:
- lpd_yunet, bump the opset version of Slice.
- pphumanseg, replace with an newer and simpler one.
Reproducer of lpd_yunet:
$ python3 benchmark.py --cfg config/license_plate_detection_yunet.yaml --fp32
Benchmarking LPD_YuNet with ['license_plate_detection_lpd_yunet_2022may.onnx']
Traceback (most recent call last):
File "benchmark.py", line 143, in <module>
benchmark.run(model)
File "benchmark.py", line 103, in run
self._benchmark_results[filename][str(size)] = self._metric.forward(model, *data[1:])
File "/home/test_user01/fytao/opencv_zoo/benchmark/utils/metrics/detection.py", line 21, in forward
model.infer(img)
File "/home/test_user01/fytao/opencv_zoo/models/license_plate_detection_yunet/lpd_yunet.py", line 56, in infer
outputBlob = self.model.forward(self.output_names)
cv2.error: OpenCV(4.7.0-dev) /home/test_user01/fytao/opencv-opencv/modules/dnn/src/layers/slice_layer.cpp:640: error: (-215:Assertion failed) sliceSteps.size() == 1 in function 'initCann'Looks like the issue is the out-of-date Slice in the model (starts and ends are attributes, and no steps). Should have a try with upgrading opset version of lpd_yunet.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working