Ultra-Light-Fast-Generic-Face-Detector-1MB icon indicating copy to clipboard operation
Ultra-Light-Fast-Generic-Face-Detector-1MB copied to clipboard

onnx.js : cannot resolve operator 'Shape' with opsets: ai.onnx v9

Open local-dev-31 opened this issue 5 years ago • 2 comments

First, thanks for the great work, the onnx models on python works just like expected.

Your models seem to be perfectly fitted for a javascript implementation, light and fast, but when I tried them on onnx.js in a browser, it returns this error :

cannot resolve operator 'Shape' with opsets: ai.onnx v9

Is there a way to get around this error, or should I investigate other solutions like : _ onnx > caffe > webassembly _ onnx > tensorflow > tensroflow.js

Thanks.

local-dev-31 avatar Jan 02 '20 23:01 local-dev-31

I haven't researched onnx.js yet, you can try these solutions.

Linzaer avatar Jan 08 '20 14:01 Linzaer

cannot resolve operator 'Shape' with opsets: ai.onnx v9

I think the problem here confidence.size(0) (and similar places). There used dynamically calculation of the shape (ONNX js can`t do that). You should set it explicitly

smilemakc avatar Apr 06 '21 14:04 smilemakc