openvino_notebooks icon indicating copy to clipboard operation
openvino_notebooks copied to clipboard

405 OCR memory quick use out & Can it use "GPU" device

Open AmazingYi opened this issue 3 years ago • 5 comments

Describe the bug Memory quick use out when run 405 code in commd line .and system broke down .

Expected behavior run code in command line and set use_popup True.It works and show recongenized characters at first ,but soon,the memory quickly grow up and the system broke down

Screenshots screen got stuck and can't boot after a force reboot

Installation instructions (Please mark the checkbox) openvino 2022.1 pip installed ,conda env ,ubuntu 20.04 ,paddle cpu pip installed .

** Environment information ** python 3.8(conda) env , I 5 1135G7

Additional context I also have a question that can it use "GPU" device to infer . I tried to modified "CPU" to "GPU" . but it turn a error seems like "unsurport dynamic layer ". I install the NEO installration and Core().avilibaledevice show "GPU" in list.

AmazingYi avatar Jun 17 '22 10:06 AmazingYi

I notice a few time there is a memory issue with the webcam demo,.. Will look deeper into it next @adrianboguszewski

raymondlo84 avatar Jun 24 '22 05:06 raymondlo84

@AmazingYi thanks for this bug report. Answering your question: no, you cannot use GPU with this notebook as it uses the Dynamic Shapes feature. Dynamic Shapes require to use CPU.

adrianboguszewski avatar Jun 28 '22 11:06 adrianboguszewski

Please update the documentation in the notebooks. @zhuo-yoyowz

raymondlo84 avatar Jul 12 '22 19:07 raymondlo84

Please update the documentation in the notebooks. @zhuo-yoyowz

Done updating the documentation for notebook 405 on the iGPU issue.

zhuo-yoyowz avatar Jul 13 '22 06:07 zhuo-yoyowz

The bug is confirmed. There is a memory leak in the OCR model. It's already fixed in master branch of OpenVINO (see: https://github.com/openvinotoolkit/openvino/pull/12053) but we need to wait for new release.

adrianboguszewski avatar Jul 15 '22 09:07 adrianboguszewski

@riverlijunjie It looks like the bug still exists after updating to 2022.2...

adrianboguszewski avatar Oct 05 '22 09:10 adrianboguszewski

The bug is fixed but this is a natural behavior of this feature showing increasing memory. However, it shouldn't be quick.

adrianboguszewski avatar Oct 13 '22 14:10 adrianboguszewski