open_model_zoo icon indicating copy to clipboard operation
open_model_zoo copied to clipboard

The NCS2 freezes while inferencing the face recognition demo and it looks like the NCS2 was half-dead at this time

Open Paper-Folding opened this issue 2 years ago • 0 comments

What happened?

I was using the face recognition demo from open_model_zoo using NCS2, and in the middle of inference, it stops to function and the opencv output frame freezes at the last frame.
I was using raspberry pi with buster version, here is the output of uname -a:
image

At the time it freezes, when I type lsusb in terminal, I can see that the NCS2 has reported a incomplete device name(Intel):
image

Normally, it should display the name Intel Movidius MyriadX

From dmesg, something not right was found: from the image below we can see that it show a message USB disconnect, device number 5 and then the NCS2 connected to usb port with number 6:
image Here is the full log of dmesg:

pi@raspberrypi:~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.103-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1529 SMP Tue Mar 8 12:24:00 GMT 2022
[    0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi Compute Module 4 Rev 1.0
[    0.000000] random: fast init done
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x000000001ac00000, size 320 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   Normal   empty
[    0.000000]   HighMem  [mem 0x0000000030000000-0x00000000fbffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000037ffffff]
[    0.000000]   node   0: [mem 0x0000000040000000-0x00000000fbffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000fbffffff]
[    0.000000] On node 0 totalpages: 999424
[    0.000000]   DMA zone: 1728 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 196608 pages, LIFO batch:63
[    0.000000]   HighMem zone: 802816 pages, LIFO batch:63
[    0.000000] percpu: Embedded 20 pages/cpu s50828 r8192 d22900 u81920
[    0.000000] pcpu-alloc: s50828 r8192 d22900 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 997696
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=E4:5F:01:91:51:17 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=tty1 root=PARTUUID=65b31224-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x0000000014890000-0x0000000018890000] (64MB)
[    0.000000] Memory: 3548364K/3997696K available (10240K kernel code, 1366K rwdata, 3196K rodata, 2048K init, 882K bss, 121652K reserved, 327680K cma-reserved, 3211264K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 34355 entries in 101 pages
[    0.000000] ftrace: allocated 101 pages with 4 groups
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x3c8/0x59c with crng_init=1
[    0.000008] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000027] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000086] bcm2835: system timer (irq = 25)
[    0.000743] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000761] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000778] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000793] Switching to timer-based delay loop, resolution 18ns
[    0.001048] Console: colour dummy device 80x30
[    0.001114] printk: console [tty1] enabled
[    0.001170] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
[    0.001203] pid_max: default: 32768 minimum: 301
[    0.001367] LSM: Security Framework initializing
[    0.001549] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001574] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.003034] cgroup: Disabling memory control group subsystem
[    0.003265] CPU: Testing write buffer coherency: ok
[    0.003720] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.004915] Setting up static identity map for 0x200000 - 0x20003c
[    0.005111] rcu: Hierarchical SRCU implementation.
[    0.006021] smp: Bringing up secondary CPUs ...
[    0.007200] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.008535] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.009797] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.009955] smp: Brought up 1 node, 4 CPUs
[    0.009976] SMP: Total of 4 processors activated (432.00 BogoMIPS).
[    0.009991] CPU: All CPU(s) started in HYP mode.
[    0.010005] CPU: Virtualization extensions available.
[    0.010923] devtmpfs: initialized
[    0.025376] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
[    0.025594] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.025624] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.033885] pinctrl core: initialized pinctrl subsystem
[    0.034956] NET: Registered protocol family 16
[    0.038767] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.039535] audit: initializing netlink subsys (disabled)
[    0.039792] audit: type=2000 audit(0.030:1): state=initialized audit_enabled=0 res=1
[    0.040349] thermal_sys: Registered thermal governor 'step_wise'
[    0.041140] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.041158] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.041569] Serial: AMBA PL011 UART driver
[    0.080699] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.100861] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-12-01T15:02:46, variant start_x
[    0.110874] raspberrypi-firmware soc:firmware: Firmware hash is 71bd3109023a0c8575585ba87cbb374d2eeb038f
[    0.152063] Kprobes globally optimized
[    0.157444] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[    0.161715] vgaarb: loaded
[    0.162156] SCSI subsystem initialized
[    0.162394] usbcore: registered new interface driver usbfs
[    0.162453] usbcore: registered new interface driver hub
[    0.162526] usbcore: registered new device driver usb
[    0.162899] usb_phy_generic phy: supply vcc not found, using dummy regulator
[    0.164857] clocksource: Switched to clocksource arch_sys_counter
[    1.110239] VFS: Disk quotas dquot_6.6.0
[    1.110331] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.110491] FS-Cache: Loaded
[    1.110695] CacheFiles: Loaded
[    1.111683] simple-framebuffer 3ea40000.framebuffer: framebuffer at 0x3ea40000, 0x177000 bytes, mapped to 0x(ptrval)
[    1.111703] simple-framebuffer 3ea40000.framebuffer: format=a8r8g8b8, mode=800x480x32, linelength=3200
[    1.112123] Console: switching to colour frame buffer device 100x30
[    1.114051] simple-framebuffer 3ea40000.framebuffer: fb0: simplefb registered!
[    1.124202] NET: Registered protocol family 2
[    1.124438] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.125966] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.126101] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.126165] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.126232] TCP: Hash tables configured (established 8192 bind 8192)
[    1.126393] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.126429] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.126658] NET: Registered protocol family 1
[    1.127775] RPC: Registered named UNIX socket transport module.
[    1.127791] RPC: Registered udp transport module.
[    1.127806] RPC: Registered tcp transport module.
[    1.127821] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.127844] PCI: CLS 0 bytes, default 64
[    1.130931] Initialise system trusted keyrings
[    1.131165] workingset: timestamp_bits=14 max_order=20 bucket_order=6
[    1.139633] zbud: loaded
[    1.141393] FS-Cache: Netfs 'nfs' registered for caching
[    1.142129] NFS: Registering the id_resolver key type
[    1.142198] Key type id_resolver registered
[    1.142214] Key type id_legacy registered
[    1.142346] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.142362] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.143417] Key type asymmetric registered
[    1.143435] Asymmetric key parser 'x509' registered
[    1.143637] bounce: pool size: 64 pages
[    1.143680] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    1.143886] io scheduler mq-deadline registered
[    1.143903] io scheduler kyber registered
[    1.148393] gpio-507 (ant1): hogged as output/high
[    1.149759] gpio-511 (ant2): hogged as output/low
[    1.151181] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    1.151212] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    1.151292] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.151381] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00ffffffff -> 0x0400000000
[    1.744878] brcm-pcie fd500000.pcie: link down
[    1.750834] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    1.751718] bcm2835-aux-uart fe215040.serial: there is not valid maps for state default
[    1.754353] iproc-rng200 fe104000.rng: hwrng registered
[    1.754690] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    1.755639] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[    1.767742] brd: module loaded
[    1.780017] loop: module loaded
[    1.781777] Loading iSCSI transport class v2.0-870.
[    1.786809] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[    1.905002] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[    1.906166] usbcore: registered new interface driver r8152
[    1.906233] usbcore: registered new interface driver lan78xx
[    1.906294] usbcore: registered new interface driver smsc95xx
[    1.906936] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.907298] dwc_otg: FIQ enabled
[    1.907312] dwc_otg: NAK holdoff enabled
[    1.907327] dwc_otg: FIQ split-transaction FSM enabled
[    1.907345] Module dwc_common_port init
[    1.907786] usbcore: registered new interface driver uas
[    1.907852] usbcore: registered new interface driver usb-storage
[    1.908063] mousedev: PS/2 mouse device common for all mice
[    1.909783] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    1.913183] sdhci: Secure Digital Host Controller Interface driver
[    1.913199] sdhci: Copyright(c) Pierre Ossman
[    1.913923] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[    1.914582] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.917558] ledtrig-cpu: registered to indicate activity on CPUs
[    1.917904] hid: raw HID events driver (C) Jiri Kosina
[    1.918084] usbcore: registered new interface driver usbhid
[    1.918099] usbhid: USB HID core driver
[    1.924211] Initializing XFRM netlink socket
[    1.924255] NET: Registered protocol family 17
[    1.924368] Key type dns_resolver registered
[    1.924779] Registering SWP/SWPB emulation handler
[    1.924994] registered taskstats version 1
[    1.925022] Loading compiled-in X.509 certificates
[    1.925975] Key type ._fscrypt registered
[    1.925991] Key type .fscrypt registered
[    1.926006] Key type fscrypt-provisioning registered
[    1.937300] uart-pl011 fe201000.serial: there is not valid maps for state default
[    1.937617] uart-pl011 fe201000.serial: cts_event_workaround enabled
[    1.937689] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2
[    1.938728] fe201600.serial: ttyAMA1 at MMIO 0xfe201600 (irq = 36, base_baud = 0) is a PL011 rev2
[    1.939774] fe201a00.serial: ttyAMA2 at MMIO 0xfe201a00 (irq = 36, base_baud = 0) is a PL011 rev2
[    1.946199] bcm2835-aux-uart fe215040.serial: there is not valid maps for state default
[    1.947102] fe215040.serial: ttyS0 at MMIO 0xfe215040 (irq = 38, base_baud = 62500000) is a 16550
[    1.948084] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    1.949166] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[    1.949183] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[    1.978278] of_cfs_init
[    1.978542] of_cfs_init: OK
[    1.995005] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.996716] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.998425] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.001487] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    2.003197] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.015337] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[    2.016247] Waiting for root device PARTUUID=65b31224-02...
[    2.068671] mmc1: new high speed SDIO card at address 0001
[    2.084126] mmc0: new DDR MMC card at address 0001
[    2.085095] mmcblk0: mmc0:0001 BJTD4R 29.1 GiB
[    2.085542] mmcblk0boot0: mmc0:0001 BJTD4R partition 1 4.00 MiB
[    2.086005] mmcblk0boot1: mmc0:0001 BJTD4R partition 2 4.00 MiB
[    2.086205] mmcblk0rpmb: mmc0:0001 BJTD4R partition 3 4.00 MiB, chardev (244:0)
[    2.088147]  mmcblk0: p1 p2
[    2.112217] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.112290] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.112833] devtmpfs: mounted
[    2.122934] Freeing unused kernel memory: 2048K
[    2.185196] Run /sbin/init as init process
[    2.185211]   with arguments:
[    2.185225]     /sbin/init
[    2.185240]     splash
[    2.185254]   with environment:
[    2.185268]     HOME=/
[    2.185282]     TERM=linux
[    2.426445] systemd[1]: System time before build time, advancing clock.
[    2.501733] NET: Registered protocol family 10
[    2.503231] Segment Routing with IPv6
[    2.543648] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    2.544707] systemd[1]: Detected architecture arm.
[    2.589336] systemd[1]: Set hostname to <raspberrypi>.
[    3.233799] random: systemd: uninitialized urandom read (16 bytes read)
[    3.243997] random: systemd: uninitialized urandom read (16 bytes read)
[    3.245337] systemd[1]: Listening on Journal Socket.
[    3.245722] random: systemd: uninitialized urandom read (16 bytes read)
[    3.246087] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    3.254202] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[    3.261692] systemd[1]: Starting Restore / save the current clock...
[    3.268965] systemd[1]: Mounting Kernel Debug File System...
[    3.276152] systemd[1]: Mounting RPC Pipe File System...
[    3.284146] systemd[1]: Starting Set the console keyboard layout...
[    3.400413] i2c /dev entries driver
[    3.778438] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    3.910261] systemd-journald[132]: Received request to flush runtime journal from PID 1
[    4.544996] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
[    4.545551] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
[    4.546073] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
[    4.546611] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
[    4.651893] mc: Linux media interface: v0.10
[    4.672903] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[    4.680994] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[    4.681021] [vc_sm_connected_init]: start
[    4.737200] [vc_sm_connected_init]: installed successfully
[    4.738192] videodev: Linux video capture interface: v2.00
[    4.763263] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    4.768266] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.768377] bcm2835_audio bcm2835_audio: there is not valid maps for state default
[    4.768832] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[    4.773070] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[    4.773726] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    4.833279] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[    4.864750] checking generic (3ea40000 177000) vs hw (0 ffffffffffffffff)
[    4.864772] fb0: switching to vc4drmfb from simple
[    4.865511] Console: switching to colour dummy device 80x30
[    4.914115] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
[    4.925293] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 0
[    4.930117] Console: switching to colour frame buffer device 100x30
[    4.930173] vc4-drm gpu: [drm] fb0: vc4drmfb frame buffer device
[    4.951072] input: raspberrypi-ts as /devices/platform/soc/soc:firmware/soc:firmware:touchscreen/input/input0
[    5.055144] dwc2 fe980000.usb: supply vusb_d not found, using dummy regulator
[    5.055444] dwc2 fe980000.usb: supply vusb_a not found, using dummy regulator
[    5.142445] dwc2 fe980000.usb: DWC OTG Controller
[    5.142486] dwc2 fe980000.usb: new USB bus registered, assigned bus number 1
[    5.142554] dwc2 fe980000.usb: irq 40, io mem 0xfe980000
[    5.143456] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    5.143478] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.143507] usb usb1: Product: DWC OTG Controller
[    5.143525] usb usb1: Manufacturer: Linux 5.10.103-v7l+ dwc2_hsotg
[    5.143542] usb usb1: SerialNumber: fe980000.usb
[    5.144318] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 1
[    5.144606] hub 1-0:1.0: USB hub found
[    5.144684] hub 1-0:1.0: 1 port detected
[    5.263692] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.322120] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.428091] brcmfmac: F1 signature read @0x18000000=0x15264345
[    5.445713] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.448741] usbcore: registered new interface driver brcmfmac
[    5.504919] usb 1-1: new high-speed USB device number 2 using dwc2
[    5.710075] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.710196] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.720521] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Jan  4 2021 19:56:29 version 7.45.229 (617f1f5 CY) FWID 01-2dbd9d2e
[    5.756140] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
[    5.756164] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    5.756182] usb 1-1: Product: USB 2.0 Hub
[    5.757049] hub 1-1:1.0: USB hub found
[    5.757184] hub 1-1:1.0: 4 ports detected
[    6.057209] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    6.057256] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    6.059695] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[    6.060239] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    6.060306] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    6.060841] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[    6.062180] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[    6.062871] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[    6.062899] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[    6.062924] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[    6.062947] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[    6.062969] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[    6.063576] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[    6.063666] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    6.063704] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    6.066155] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[    6.066201] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[    6.096279] bcm2835-v4l2-0: scene mode selected 0, was 0
[    6.096723] bcm2835-v4l2-0: V4L2 device registered as video0 - stills mode > 1280x720
[    6.101803] bcm2835-v4l2-0: Broadcom 2835 MMAL video capture ver 0.0.2 loaded.
[    6.195405] usb 1-1.1: new full-speed USB device number 3 using dwc2
[    6.427243] usb 1-1.1: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
[    6.427266] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.427284] usb 1-1.1: Product: CP2102 USB to UART Bridge Controller
[    6.427301] usb 1-1.1: Manufacturer: Silicon Labs
[    6.427318] usb 1-1.1: SerialNumber: 0001
[    6.531385] usbcore: registered new interface driver usbserial_generic
[    6.531785] usbserial: USB Serial support registered for generic
[    6.537561] usbcore: registered new interface driver cp210x
[    6.537641] usbserial: USB Serial support registered for cp210x
[    6.537779] cp210x 1-1.1:1.0: cp210x converter detected
[    6.543815] usb 1-1.1: cp210x converter now attached to ttyUSB0
[    6.624981] usb 1-1.2: new full-speed USB device number 4 using dwc2
[    6.694817] random: crng init done
[    6.694833] random: 7 urandom warning(s) missed due to ratelimiting
[    6.857086] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
[    6.857110] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.857128] usb 1-1.2: Product: CP2102 USB to UART Bridge Controller
[    6.857145] usb 1-1.2: Manufacturer: Silicon Labs
[    6.857163] usb 1-1.2: SerialNumber: 0001
[    6.860476] cp210x 1-1.2:1.0: cp210x converter detected
[    6.864539] usb 1-1.2: cp210x converter now attached to ttyUSB1
[    7.064934] usb 1-1.4: new high-speed USB device number 5 using dwc2
[    7.295999] usb 1-1.4: New USB device found, idVendor=03e7, idProduct=2485, bcdDevice= 0.01
[    7.296022] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.296041] usb 1-1.4: Product: Movidius MyriadX
[    7.296057] usb 1-1.4: Manufacturer: Movidius Ltd.
[    7.296075] usb 1-1.4: SerialNumber: 03e72485
[    7.513358] uart-pl011 fe201000.serial: no DMA platform data
[    7.657752] 8021q: 802.1Q VLAN Support v1.8
[    7.975093] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    8.237448] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[    8.650067] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[    8.650606] bcmgenet fd580000.ethernet eth0: Link is Down
[    9.744516] broken atomic modeset userspace detected, disabling atomic
[   10.282490] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   11.640363] fuse: init (API version 7.32)
[   14.334107] Bluetooth: Core ver 2.22
[   14.334202] NET: Registered protocol family 31
[   14.334210] Bluetooth: HCI device and connection manager initialized
[   14.334557] Bluetooth: HCI socket layer initialized
[   14.334570] Bluetooth: L2CAP socket layer initialized
[   14.334597] Bluetooth: SCO socket layer initialized
[   14.341733] Bluetooth: HCI UART driver ver 2.3
[   14.341746] Bluetooth: HCI UART protocol H4 registered
[   14.341811] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   14.343854] Bluetooth: HCI UART protocol Broadcom registered
[   14.548338] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   14.548350] Bluetooth: BNEP filters: protocol multicast
[   14.548364] Bluetooth: BNEP socket layer initialized
[   14.581271] Bluetooth: RFCOMM TTY layer initialized
[   14.581294] Bluetooth: RFCOMM socket layer initialized
[   14.581320] Bluetooth: RFCOMM ver 1.11
[   24.161557] usb 1-1.4: USB disconnect, device number 5
[   24.754855] usb 1-1.4: new high-speed USB device number 6 using dwc2
[   24.985965] usb 1-1.4: New USB device found, idVendor=03e7, idProduct=f63b, bcdDevice= 1.00
[   24.985974] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   24.985982] usb 1-1.4: Product: VSC Loopback Device
[   24.985989] usb 1-1.4: Manufacturer: Intel Corporation
[   24.985996] usb 1-1.4: SerialNumber: 41440410D16696BC00
[   38.596250] uart-pl011 fe201a00.serial: no DMA platform data
[ 5366.416732] v3d fec00000.v3d: MMU error from client L2T (0) at 0x61c1000, pte invalid

And if I reboot at this time, it won't do anything, it will only show me RuntimeError: Failed to allocate graph: MYRIAD device is not opened. to me, and the device cannot be found in lsusb even if I did not do anything to NCS2 physically:
image

I was using python3 face_recognition_demo.py -i 0 -d_fd MYRIAD -m_fd intel/face-detection-retail-0004/FP16/face-detection-retail-0004.xml -d_lm MYRIAD -m_lm intel/landmarks-regression-retail-0009/FP16/landmarks-regression-retail-0009.xml -d_reid MYRIAD -m_reid intel/face-reidentification-retail-0095/FP16/face-reidentification-retail-0095.xml --verbose --run_detector --output_resolution 800x600 -fg /home/pi/faces to run the demo,
and my opencv is compiled and build myself on raspberry pi with gstreamer support from opencv-openvino branch with version 4.5.2-openvino, here is the full log of it:

pi@raspberrypi:~/ori/face_recognition_demo/python $ python3 face_recognition_demo.py -i 0 -d_fd MYRIAD -m_fd intel/face-detection-retail-0004/FP16/face-detection-retail-0004.xml -d_lm MYRIAD -m_lm intel/landmarks-regression-retail-0009/FP16/landmarks-regression-retail-0009.xml -d_reid MYRIAD -m_reid intel/face-reidentification-retail-0095/FP16/face-reidentification-retail-0095.xml --verbose --run_detector --output_resolution 800x600 -fg /home/pi/faces
[ WARN:0] global /home/pi/opencv/modules/videoio/src/cap_gstreamer.cpp (854) open OpenCV | GStreamer warning: Error opening bin: no element "0"
[ WARN:0] global /home/pi/opencv/modules/videoio/src/cap_gstreamer.cpp (597) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[ WARN:0] global /home/pi/opencv/modules/videoio/src/cap_gstreamer.cpp (1081) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
[ WARN:0] global /home/pi/opencv/modules/videoio/src/cap_gstreamer.cpp (1371) setProperty OpenCV | GStreamer warning: GStreamer: unhandled property
[ WARN:0] global /home/pi/opencv/modules/videoio/src/cap_gstreamer.cpp (1371) setProperty OpenCV | GStreamer warning: GStreamer: unhandled property
[ WARN:0] global /home/pi/opencv/modules/videoio/src/cap_gstreamer.cpp (1371) setProperty OpenCV | GStreamer warning: GStreamer: unhandled property
[ INFO ] OpenVINO Runtime
[ INFO ] 	build: custom_HEAD_cdb9bec7210f8c24fde3e416c7ada820faaaa23e
[ INFO ] Reading Face Detection model intel/face-detection-retail-0004/FP16/face-detection-retail-0004.xml
[ INFO ] Reading Landmarks Detection model intel/landmarks-regression-retail-0009/FP16/landmarks-regression-retail-0009.xml
[ INFO ] Reading Face Reidentification model intel/face-reidentification-retail-0095/FP16/face-reidentification-retail-0095.xml
Traceback (most recent call last):
  File "face_recognition_demo.py", line 233, in <module>
    sys.exit(main() or 0)
  File "face_recognition_demo.py", line 177, in main
    frame_processor = FrameProcessor(args)
  File "face_recognition_demo.py", line 100, in __init__
    self.face_detector.deploy(args.d_fd)
  File "/home/pi/ori/face_recognition_demo/python/ie_module.py", line 33, in deploy
    compiled_model = self.core.compile_model(self.model, device)
  File "/home/pi/openvino_dist/python/python3.7/openvino/runtime/ie_api.py", line 266, in compile_model
    super().compile_model(model, device_name, {} if config is None else config)
RuntimeError: Failed to allocate graph: MYRIAD device is not opened.
pi@raspberrypi:~/ori/face_recognition_demo/python $ lsusb
Bus 001 Device 004: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP2102/CP2109 UART Bridge Controller [CP210x family]
Bus 001 Device 003: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP2102/CP2109 UART Bridge Controller [CP210x family]
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

My openvino was using 2022.1.0 version.

Can anyone help me?

Paper-Folding avatar Sep 23 '22 02:09 Paper-Folding