Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Detector Support]: Error importing detector runtime ... ELF load command alignment not page-aligned #9407

Closed
allstarnz opened this issue Jan 21, 2024 · 4 comments

Comments

@allstarnz
Copy link

Describe the problem you are having

Frigate will start, but I am seeing the following message in the logs. Detection isn't working at all.

I have verified the Coral is working correctly outside of Frigate using the 'parrot check'.

The Coral is showing up correctly on the Detectors section of the System page.

Version

0.12.1-367d724

Frigate config file

detectors:
  coral:
   type: edgetpu
   device: usb

mqtt:
  enabled: False

ffmpeg:
  hwaccel_args: preset-rpi-64-h264 #Enable Hardware Acceleration

cameras:
  frontdoor:
    ffmpeg:
      inputs:
        - path: rtsp://[redacted]:8554/front-door-camera
          input_args: preset-rtsp-restream
          roles:
            - detect
    detect:
      enabled: True # Detection is disabled
      width: 640 # The Cameras resolution
      height: 360 # The Cameras resolution
      fps: 5
    motion:
      mask:
      - 154,720,350,720,914,720,1036,453,1134,82,998,0,854,591,817,103,635,94,582,356,238,314

    objects:
      track:
        - person
        - car

docker-compose file or Docker CLI command

version: "3.9"
services:
  frigate:
    container_name: frigate
    privileged: true # this may not be necessary for all setups
    restart: unless-stopped
    image: ghcr.io/blakeblackshear/frigate:stable
    shm_size: "64mb"
    devices:
      - /dev/bus/usb:/dev/bus/usb #Used for Coral if Available
      - /dev/video10 #Map the Pi hardware acceleration
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /home/alister/frigate-nvr/config.yml:/config/config.yml
      - /home/alister/frigate-nvr/storage:/media/frigate
      #- type: tmpfs #Remove this if using a Pi with 2GB or Less RAM
      #  target: /tmp/cache
      #  tmpfs:
      #    size: 1000000000
    ports:
      - "15000:5000"
      - "18554:8554" # RTSP feeds
      - "18555:8555/tcp" # WebRTC over tcp
      - "18555:8555/udp" # WebRTC over udp
#    environment:
      #FRIGATE_RTSP_PASSWORD: "password"

Relevant log output

2024-01-19 15:57:47.619128759  [INFO] Starting Frigate...
2024-01-19 15:57:48.733832978  Error importing detector runtime: /usr/local/lib/python3.9/dist-packages/openvino/pyopenvino.cpython-39-aarch64-linux-gnu.so: ELF load command alignment not page-aligned
2024-01-19 15:57:48.953226774  [2024-01-19 15:57:48] frigate.app                    INFO    : Starting Frigate (0.12.1-367d724)
2024-01-19 15:57:48.974517794  [2024-01-19 15:57:48] frigate.app                    INFO    : Creating directory: /tmp/cache
2024-01-19 15:57:48.977431813  [2024-01-19 15:57:48] peewee_migrate                 INFO    : Starting migrations
2024-01-19 15:57:48.982830517  [2024-01-19 15:57:48] peewee_migrate                 INFO    : There is nothing to migrate
2024-01-19 15:57:49.010725704  [2024-01-19 15:57:49] frigate.app                    INFO    : Output process started: 291
2024-01-19 15:57:49.030994465  [2024-01-19 15:57:49] frigate.app                    INFO    : Camera processor started for frontdoor: 297
2024-01-19 15:57:49.041486429  [2024-01-19 15:57:49] frigate.app                    INFO    : Capture process started for frontdoor: 299
2024-01-19 15:57:51.688341826  [2024-01-19 15:57:49] detector.coral                 INFO    : Starting detection process: 290
2024-01-19 15:57:51.694241123  [2024-01-19 15:57:49] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2024-01-19 15:57:51.694872531  [2024-01-19 15:57:51] frigate.detectors.plugins.edgetpu_tfl INFO    : TPU found

Operating system

Debian

Install method

Docker Compose

Coral version

USB

Any other information that may be helpful

System: OS: Linux raspberrypi5 6.1.0-rpi7-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux

Raspberry Pi 5

I am using Docker with Portainer

@NickM-27
Copy link
Collaborator

in what way is detection not working? What happens when you open the debug live view with bounding boxes enabled and someone is in the camera frame?

@allstarnz
Copy link
Author

allstarnz commented Jan 22, 2024

Actually, on closer inspection it now seems to be doing its job. It detects my car in the driveway and people walking on the street outside seem to be detected. I should note nothing is showing up in events, but that may be due to me not configuring it?

I was concerned about the error on startup:
024-01-19 15:57:48.733832978 Error importing detector runtime: /usr/local/lib/python3.9/dist-packages/openvino/pyopenvino.cpython-39-aarch64-linux-gnu.so: ELF load command alignment not page-aligned

Should I be trying to make this go away?

@NickM-27
Copy link
Collaborator

no, this is not something to worry about

@NickM-27
Copy link
Collaborator

I'll close this, feel free to create a new issue if something else comes up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants