Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Training new LPR for security_barrier_demo

goh__richard
Beginner
636 Views

Hi

I managed to train the LPR model and is able to run the inference as follows.

=========

(lpr)root@stratton:/deeplearning/openvino_training_extensions/tensorflow_toolkit/lpr# !545
python3 tools/infer_ie.py --model model/export/IR/FP32/lpr.xml   --device=CPU   --cpu_extension="${INTEL_OPENVINO_DIR}/deployment_tools/inference_engine/lib/intel64/libcpu_extension_avx2.so"   --config chinese_lp/config.py  /deeplearning/openvino_training_extensions/data/synthetic_chinese_license_plates/Synthetic_Chinese_License_Plates/crops/000000.png
[ INFO ] Initializing plugin for CPU device...
[ INFO ] Reading IR...
[ INFO ] Loading IR to the plugin...
Output: <Shandong>BNRD4L

======

so I tranferred lpr.xml and lpr.bin as inputs for security_barrier_camera_demo as follow and got the following error.

======

C:\Users\Emcore-i89M2\Documents\Intel\OpenVINO\inference_engine_demos_build\intel64\Release>security_barrier_camera_demo  -d CPU -m vehicle-license-plate-detection-barrier-0106.xml  -m_lpr lpr.xml -m_va vehicle-attributes-recognition-barrier-0039.xml  -i "rtsp://root:opt12345@192.168.1.93:554/live.sdp" -d_va CPU -d_lpr CPU -display_resolution 1200x980
[ INFO ] InferenceEngine:
        API version ............ 2.1
        Build .................. 32974
        Description ....... API
[ INFO ] Files were added: 1
[ INFO ]     rtsp://root:opt12345@192.168.1.93:554/live.sdp
AAA
BBB file [≡°ëε-]
INPUT [ INFO ] Loading device CPU
        CPU
        MKLDNNPlugin version ......... 2.1
        Build ........... 32974

[ INFO ] Loading detection model to the CPU plugin
[ INFO ] Loading Vehicle Attribs model to the CPU plugin
[ INFO ] Loading Licence Plate Recognition (LPR) model to the CPU plugin
[ ERROR ] LPR should have 2 inputs    <=============    ERROR 

=======================

What did I do wrong?

What do I have to do to train new lpr for security_barrier_camera_demo?

Appreciate advise please

Thank you

0 Kudos
2 Replies
Sahira_Intel
Moderator
636 Views

Hi Richard,

There was a fix for this issue, see here. You should be able to use 1 input. I think it should fix the problem.

Please let me know if this information is helpful.

Best Regards,

Sahira 

 

0 Kudos
goh__richard
Beginner
636 Views

Yes fixed.

Very helpful, thank you

0 Kudos
Reply