openvinotoolkit / open_model_zoo

Pre-trained Deep Learning models and demos (high quality and extremely fast)
https://docs.openvino.ai/latest/model_zoo.html
Apache License 2.0
4.1k stars 1.37k forks source link

Fix plugin bug in object detection demo #3951

Closed junwenwu closed 6 months ago

junwenwu commented 6 months ago

In the Python demo, the argument -device can only take AUTO because of the previous bug inside of the async_pipeline.py script. Updated the script so it can handle the device configuration correctly.

openmodelzooci commented 6 months ago

Can one of the admins verify this patch?

Wovchena commented 6 months ago

Wasn't it fixed by https://github.com/openvinotoolkit/open_model_zoo/pull/3936?

junwenwu commented 6 months ago

3936 introduced a bug. config is initialized as an empty dict and then 'device' is used as a key to reference the empty dictionary and causes error. This is trying to fix this bug.