[example]Add new super-resolution model from OpenVINO model zoo #1245
Description
Add new super-resolution model from openvino.
Here is the corresponding information of the model :
- single-image-super-resolution-1032
- single-image-super-resolution-1032 Model Performance In OpenVINO
- single-image-super-resolution-1032
- single-image-super-resolution-1033 Model Performance In OpenVINO
- Paper
These two models can be run in OpenVINO and the performance of these two models is
Model | OpenVINO Plugin | Inference Time (ms) |
---|---|---|
single-image-super-resolution-1032 | clDNN(UHD630) | 249 |
single-image-super-resolution-1032 | MKL-DNN(i7-10710U) | 1352 |
single-image-super-resolution-1033 | clDNN(UHD630) | 247 |
single-image-super-resolution-1033 | MKL-DNN(i7-10710U) | 1224 |
I tried to run these two models in polyfill, but I encountered the following problems during the model compilation stage:
Error: Tensor 7:2 is not found
at OpenVINOModelImporter._getTensorId (OpenVINOModelImporter.js:215)
at OpenVINOModelImporter._addOpsAndParams (OpenVINOModelImporter.js:388)
at OpenVINOModelImporter.createCompiledModel (OpenVINOModelImporter.js:49)
at async BaseRunner.compileModel (BaseRunner.js:255)
at async SuperResolutionExample._compileModel (BaseExample.js:394)
at async SuperResolutionExample.main (BaseExample.js:509)
The reason is that the Tensor corresponding to the input cannot be found in the .bin file when analysing the eltwise operation . This problem can be reproduced in this repo.
I only made small changes to OpenVINOModelImporter.js
and the problem seems to be in the weight file or when OpenVINOModelImporter.js
calling the _addTensorOperands
function the corresponding Tensor was not resolved . Currently I can't locate the problem.
I encountered this error in eltwise operation in both models,corresponding to the operation of name = "39" and the operation of name = "37" respectively.