openvinotoolkit / openvino

OpenVINO™ is an open-source toolkit for optimizing and deploying AI inference
https://docs.openvino.ai
Apache License 2.0
6.84k stars 2.18k forks source link

[Bug]: [ GENERAL_ERROR ] label is too far #21573

Closed DanilZittser closed 9 months ago

DanilZittser commented 9 months ago

OpenVINO Version

2023.2.0-13089-cfd42bd2cb0-HEAD

Operating System

Ubuntu 20.04 (LTS)

Device used for inference

CPU

Framework

None

Model used

https://github.com/openvinotoolkit/open_model_zoo/tree/master/models/intel/person-reidentification-retail-0277

Issue description

Error when compile model person-reidentification-retail-0277 (FP32).

lscpu

Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: 39 bits physical, 48 bits virtual CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 156 Model name: Intel(R) Celeron(R) N5095A @ 2.00GHz Stepping: 0 CPU MHz: 2000.000 CPU max MHz: 2900,0000 CPU min MHz: 800,0000 BogoMIPS: 3993.60 Virtualization: VT-x L1d cache: 128 KiB L1i cache: 128 KiB L2 cache: 1,5 MiB L3 cache: 4 MiB NUMA node0 CPU(s): 0-3 Vulnerability Gather data sampling: Not affected Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Mmio stale data: Mitigation; Clear CPU buffers; SMT disabled Vulnerability Retbleed: Not affected Vulnerability Spec rstack overflow: Not affected Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Vulnerability Spectre v2: Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS Not affected Vulnerability Srbds: Vulnerable: No microcode Vulnerability Tsx async abort: Not affected Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dt s acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc art arch_p erfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_fre q pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave rdrand lahf_lm 3dnowprefe tch cpuid_fault epb cat_l2 cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vn mi flexpriority ept vpid ept_ad fsgsbase tsc_adjust smep erms rdt_a rdseed smap cl flushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect dth erm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req umip waitpk g gfni rdpid movdiri movdir64b md_clear flush_l1d arch_capabilities

/etc/os-release

NAME="Ubuntu" VERSION="20.04.6 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.6 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal

pip3 freeze

numpy==1.24.4 openvino==2023.2.0 openvino-telemetry==2023.2.1 pkg_resources==0.0.0

ov.get_version()

2023.2.0-13089-cfd42bd2cb0-HEAD

Step-by-step reproduction

  1. Download model
    wget -P person-reidentification-retail-0277 "https://storage.openvinotoolkit.org/repositories/open_model_zoo/2023.0/models_bin/1/person-reidentification-retail-0277/FP32/person-reidentification-retail-0277.xml"
    wget -P person-reidentification-retail-0277 "https://storage.openvinotoolkit.org/repositories/open_model_zoo/2023.0/models_bin/1/person-reidentification-retail-0277/FP32/person-reidentification-retail-0277.bin"
  2. Setup venv
    python3 -m venv venv
    source venv/bin/activate
    pip3 install -U pip
    pip3 install openvino==2023.2.0
  3. Write script

    # main.py
    import openvino.runtime as ov
    
    if __name__ == '__main__':
      core = ov.Core()
      model = core.compile_model('person-reidentification-retail-0277/person-reidentification-retail-0277.xml', 'CPU')
  4. Run script

    > python3 main,py
    
    Traceback (most recent call last):
    File "main.py", line 6, in <module>
      model = core.compile_model('person-reidentification-retail-0277/person-reidentification-retail-0277.xml', 'CPU')
    File ".../venv/lib/python3.8/site-packages/openvino/runtime/ie_api.py", line 543, in compile_model
      super().compile_model(model, device_name, {} if config is None else config),
    RuntimeError: Exception from src/inference/src/core.cpp:130:
    [ GENERAL_ERROR ] label is too far

Relevant log output

No response

Issue submission checklist

DanilZittser commented 9 months ago

It's similar with https://github.com/openvinotoolkit/openvino/issues/20623#issuecomment-1845217404

Iffa-Intel commented 9 months ago

Hi @DanilZittser ,

just to clarify, where did you get your OV version 2023.2.0-13089-cfd42bd2cb0-HEAD ?

chenhu-wang commented 9 months ago

fix is merged to master, https://github.com/openvinotoolkit/openvino/pull/21534

Iffa-Intel commented 9 months ago

Hi @DanilZittser, as @chenhu-wang mentioned, the fix has been merged to the master. Perhaps you could clarify whether that helps your issue.

DanilZittser commented 9 months ago

Hi @DanilZittser ,

just to clarify, where did you get your OV version 2023.2.0-13089-cfd42bd2cb0-HEAD ?

Just install from PyPI.

Screenshot_20231214_140631

DanilZittser commented 9 months ago

Hi @DanilZittser, as @chenhu-wang mentioned, the fix has been merged to the master. Perhaps you could clarify whether that helps your issue.

To get OpenVINO with fix I should build package from source with this guideline? If true I prefer to wait update OpenVINO on PyPI, because this issue is not critical for me.

Iffa-Intel commented 9 months ago

@DanilZittser yes, the fix is currently merged to the master (GitHub), where you need to build the package from source. In that case, can I proceed for the closure of this case?

DanilZittser commented 9 months ago

@DanilZittser yes, the fix is currently merged to the master (GitHub), where you need to build the package from source. In that case, can I proceed for the closure of this case?

Yes. Thanks for fix :1st_place_medal: