intel / webml-polyfill

Deprecated, the Web Neural Network Polyfill project has been moved to https://github.com/webmachinelearning/webnn-polyfill
Apache License 2.0
161 stars 46 forks source link

Update OpenCV.js from 4.3.0 to 4.5.2. #1396

Closed BruceDai closed 2 years ago

BruceDai commented 3 years ago

The OpenCV.js of 4.5.2 was built opencv of tag 4.5.2 by emsdk of tag 1.39.15. Here's its performance data (ms) of SqueezeNet, MobileNet v2, ResNet50 v1 and v2 models on TGL i7-1165G7 laptop.

SqueezeNet (ONNX) OpenCV.js 4.5.2 OpenCV.js 4.3.0
WASM 217.30+-16.44 210.11+-12.44
WASM Threads+SIMD 9.42+-0.75 9.75+-0.47
MobileNet v2(ONNX) OpenCV.js 4.5.2 OpenCV.js 4.3.0
WASM 253.01+-13.10 308.39+-21.99
WASM Threads+SIMD 15.79+-0.68 25.78+-1.38
ResNet50 v1(ONNX) OpenCV.js 4.5.2 OpenCV.js 4.3.0
WASM 2042.87+-123.76 2267.05+-143.92
WASM Threads+SIMD 114.76+-8.78 128.98+-12.46
ResNet50 v2(ONNX) OpenCV.js 4.5.2 OpenCV.js 4.3.0
WASM 2159.82+-136.44 2393.13+-154.32
WASM Threads+SIMD 120.91+-10.61 135.11+-10.65

@ibelem PTAL, thanks.

ibelem commented 2 years ago

Thanks, merged.