!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

510 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant128 Servers

Load older messages


SenderMessageTime
21 Nov 2024
@hexa:lossy.network@hexa:lossy.network *
{ lib, pkgs, ... }:
{
  nixpkgs.overlays = [
    (self: super: {
      frigate = super.frigate.overridePythonAttrs (oldAttrs: {
        patches = oldAttrs.patches or [ ] ++ [
          (pkgs.substituteAll {
            src = ./libedgetpu.patch;
            libedgetpu = "${lib.getLib pkgs.libedgetpu}/lib/libedgetpu.so.1.0";
           })
        ];
      });
     })
  ];
}
00:49:41
@netpleb:matrix.orgnetpleb
In reply to @hexa:lossy.network
{ lib, pkgs, ... }:
{
  nixpkgs.overlays = [
    (self: super: {
      frigate = super.frigate.overridePythonAttrs (oldAttrs: {
        patches = oldAttrs.patches or [ ] ++ [
          (pkgs.substituteAll {
            src = ./libedgetpu.patch;
            libedgetpu = "${lib.getLib pkgs.libedgetpu}/lib/libedgetpu.so.1.0";
           })
        ];
      });
     })
  ];
}
ok, so I get rid of my services.frigate.package = ... and instead add the above?
00:49:45
@hexa:lossy.network@hexa:lossy.networkyes00:49:49
@hexa:lossy.network@hexa:lossy.networkmaybe I messed up the brackets, not sure00:49:57
@netpleb:matrix.orgnetpleb
In reply to @hexa:lossy.network
maybe I messed up the brackets, not sure
I can fix that part usually ;)
00:50:13
@netpleb:matrix.orgnetplebit is rebuilding the frigate package now!00:52:04
@netpleb:matrix.orgnetpleb

well, we were so close!

Nov 20 16:52:26 aleph0 frigate[10493]: Process detector:coral:
Nov 20 16:52:26 aleph0 frigate[10446]: [2024-11-20 16:52:26] frigate.detectors.plugins.edgetpu_tfl ERROR   : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
Nov 20 16:52:26 aleph0 frigate[10493]: Traceback (most recent call last):
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/y7wsnapb7w8pqkifah4v7s271n30d84z-python3.12-tensorflow-2.18.0/lib/python3.12/site-packages/tensorflow/lite/python/interpreter.py", line 166, in load_delegate
Nov 20 16:52:26 aleph0 frigate[10493]:     delegate = Delegate(library, options)
Nov 20 16:52:26 aleph0 frigate[10493]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/y7wsnapb7w8pqkifah4v7s271n30d84z-python3.12-tensorflow-2.18.0/lib/python3.12/site-packages/tensorflow/lite/python/interpreter.py", line 104, in __init__
Nov 20 16:52:26 aleph0 frigate[10493]:     raise ValueError(capture.message)
Nov 20 16:52:26 aleph0 frigate[10493]: ValueError
Nov 20 16:52:26 aleph0 frigate[10493]: During handling of the above exception, another exception occurred:
Nov 20 16:52:26 aleph0 frigate[10493]: Traceback (most recent call last):
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/px2nj16i5gc3d4mnw5l1nclfdxhry61p-python3-3.12.7/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
Nov 20 16:52:26 aleph0 frigate[10493]:     self.run()
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/px2nj16i5gc3d4mnw5l1nclfdxhry61p-python3-3.12.7/lib/python3.12/multiprocessing/process.py", line 108, in run
Nov 20 16:52:26 aleph0 frigate[10493]:     self._target(*self._args, **self._kwargs)
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/p49rj7jjwy759rw3dv2x9a88gs2vqggy-frigate-0.14.1/lib/python3.12/site-packages/frigate/object_detection.py", line 102, in run_detector
Nov 20 16:52:26 aleph0 frigate[10493]:     object_detector = LocalObjectDetector(detector_config=detector_config)
Nov 20 16:52:26 aleph0 frigate[10493]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/p49rj7jjwy759rw3dv2x9a88gs2vqggy-frigate-0.14.1/lib/python3.12/site-packages/frigate/object_detection.py", line 53, in __init__
Nov 20 16:52:26 aleph0 frigate[10493]:     self.detect_api = create_detector(detector_config)
Nov 20 16:52:26 aleph0 frigate[10493]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/p49rj7jjwy759rw3dv2x9a88gs2vqggy-frigate-0.14.1/lib/python3.12/site-packages/frigate/detectors/__init__.py", line 18, in create_detector
Nov 20 16:52:26 aleph0 frigate[10493]:     return api(detector_config)
Nov 20 16:52:26 aleph0 frigate[10493]:            ^^^^^^^^^^^^^^^^^^^^
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/p49rj7jjwy759rw3dv2x9a88gs2vqggy-frigate-0.14.1/lib/python3.12/site-packages/frigate/detectors/plugins/edgetpu_tfl.py", line 41, in __init__
Nov 20 16:52:26 aleph0 frigate[10493]:     edge_tpu_delegate = load_delegate("/nix/store/fvjzhbpnvdfn00ngw53nyc9qngkh5j5m-libedgetpu-0-unstable-2024-03-14/lib/libedgetpu.so.1.0", device_config)
Nov 20 16:52:26 aleph0 frigate[10493]:                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/y7wsnapb7w8pqkifah4v7s271n30d84z-python3.12-tensorflow-2.18.0/lib/python3.12/site-packages/tensorflow/lite/python/interpreter.py", line 168, in load_delegate
Nov 20 16:52:26 aleph0 frigate[10493]:     raise ValueError('Failed to load delegate from {}\n{}'.format(
Nov 20 16:52:26 aleph0 frigate[10493]: ValueError: Failed to load delegate from /nix/store/fvjzhbpnvdfn00ngw53nyc9qngkh5j5m-libedgetpu-0-unstable-2024-03-14/lib/libedgetpu.so.1.0
Nov 20 16:52:31 aleph0 frigate[10446]: [2024-11-20 16:52:31] frigate.watchdog               INFO    : Detection appears to have stopped. Exiting Frigate...

00:54:12
@netpleb:matrix.orgnetpleb
In reply to @netpleb:matrix.org

well, we were so close!

Nov 20 16:52:26 aleph0 frigate[10493]: Process detector:coral:
Nov 20 16:52:26 aleph0 frigate[10446]: [2024-11-20 16:52:26] frigate.detectors.plugins.edgetpu_tfl ERROR   : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
Nov 20 16:52:26 aleph0 frigate[10493]: Traceback (most recent call last):
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/y7wsnapb7w8pqkifah4v7s271n30d84z-python3.12-tensorflow-2.18.0/lib/python3.12/site-packages/tensorflow/lite/python/interpreter.py", line 166, in load_delegate
Nov 20 16:52:26 aleph0 frigate[10493]:     delegate = Delegate(library, options)
Nov 20 16:52:26 aleph0 frigate[10493]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/y7wsnapb7w8pqkifah4v7s271n30d84z-python3.12-tensorflow-2.18.0/lib/python3.12/site-packages/tensorflow/lite/python/interpreter.py", line 104, in __init__
Nov 20 16:52:26 aleph0 frigate[10493]:     raise ValueError(capture.message)
Nov 20 16:52:26 aleph0 frigate[10493]: ValueError
Nov 20 16:52:26 aleph0 frigate[10493]: During handling of the above exception, another exception occurred:
Nov 20 16:52:26 aleph0 frigate[10493]: Traceback (most recent call last):
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/px2nj16i5gc3d4mnw5l1nclfdxhry61p-python3-3.12.7/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
Nov 20 16:52:26 aleph0 frigate[10493]:     self.run()
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/px2nj16i5gc3d4mnw5l1nclfdxhry61p-python3-3.12.7/lib/python3.12/multiprocessing/process.py", line 108, in run
Nov 20 16:52:26 aleph0 frigate[10493]:     self._target(*self._args, **self._kwargs)
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/p49rj7jjwy759rw3dv2x9a88gs2vqggy-frigate-0.14.1/lib/python3.12/site-packages/frigate/object_detection.py", line 102, in run_detector
Nov 20 16:52:26 aleph0 frigate[10493]:     object_detector = LocalObjectDetector(detector_config=detector_config)
Nov 20 16:52:26 aleph0 frigate[10493]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/p49rj7jjwy759rw3dv2x9a88gs2vqggy-frigate-0.14.1/lib/python3.12/site-packages/frigate/object_detection.py", line 53, in __init__
Nov 20 16:52:26 aleph0 frigate[10493]:     self.detect_api = create_detector(detector_config)
Nov 20 16:52:26 aleph0 frigate[10493]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/p49rj7jjwy759rw3dv2x9a88gs2vqggy-frigate-0.14.1/lib/python3.12/site-packages/frigate/detectors/__init__.py", line 18, in create_detector
Nov 20 16:52:26 aleph0 frigate[10493]:     return api(detector_config)
Nov 20 16:52:26 aleph0 frigate[10493]:            ^^^^^^^^^^^^^^^^^^^^
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/p49rj7jjwy759rw3dv2x9a88gs2vqggy-frigate-0.14.1/lib/python3.12/site-packages/frigate/detectors/plugins/edgetpu_tfl.py", line 41, in __init__
Nov 20 16:52:26 aleph0 frigate[10493]:     edge_tpu_delegate = load_delegate("/nix/store/fvjzhbpnvdfn00ngw53nyc9qngkh5j5m-libedgetpu-0-unstable-2024-03-14/lib/libedgetpu.so.1.0", device_config)
Nov 20 16:52:26 aleph0 frigate[10493]:                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 20 16:52:26 aleph0 frigate[10493]:   File "/nix/store/y7wsnapb7w8pqkifah4v7s271n30d84z-python3.12-tensorflow-2.18.0/lib/python3.12/site-packages/tensorflow/lite/python/interpreter.py", line 168, in load_delegate
Nov 20 16:52:26 aleph0 frigate[10493]:     raise ValueError('Failed to load delegate from {}\n{}'.format(
Nov 20 16:52:26 aleph0 frigate[10493]: ValueError: Failed to load delegate from /nix/store/fvjzhbpnvdfn00ngw53nyc9qngkh5j5m-libedgetpu-0-unstable-2024-03-14/lib/libedgetpu.so.1.0
Nov 20 16:52:31 aleph0 frigate[10446]: [2024-11-20 16:52:31] frigate.watchdog               INFO    : Detection appears to have stopped. Exiting Frigate...

at least it is a different error this time
00:54:44
@hexa:lossy.network@hexa:lossy.networkwe are here https://github.com/tensorflow/tensorflow/blob/605e172b30b466c4842c5c9548083f60c151ee61/tensorflow/lite/python/interpreter.py#L17500:55:34
@hexa:lossy.network@hexa:lossy.networkthe ValueError is raised from here https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/python/interpreter.py#L110-L11100:55:59
@netpleb:matrix.orgnetpleb right, and here is what lsusb says: Bus 002 Device 002: ID 1a6e:089a Global Unichip Corp. 00:57:27
@netpleb:matrix.orgnetpleb do we need to include a kernel driver or is libedgetpu supposedly enough? 00:58:15
@hexa:lossy.network@hexa:lossy.networkno idea00:58:38
@hexa:lossy.network@hexa:lossy.networkI don't have such a device00:58:41
@netpleb:matrix.orgnetpleb
In reply to @hexa:lossy.network
I don't have such a device
ah, good point. This would have been surely easier if you did. Well I appreciate the help so far. I will try to poke at it some more later. Feels like we are close!
00:59:38
@hexa:lossy.network@hexa:lossy.networkwell, I don't expect it to00:59:47
@hexa:lossy.network@hexa:lossy.networkyou can communicate with a usb device from userspace well enough00:59:59
@netpleb:matrix.orgnetplebthis device was about $70 or something. I'm wondering if it would be better for me to just get a different device that you have had success getting to work? do you have a recommendation?01:00:59
@netpleb:matrix.orgnetpleb * this device was about $70 or something. I'm wondering if it would be better for me to just get a different device that you have had success getting to work with frigate? do you have a recommendation?01:01:12
@hexa:lossy.network@hexa:lossy.networkopenvino just requires an intel cpu or gpu 😄 01:01:12
@netpleb:matrix.orgnetpleb
In reply to @hexa:lossy.network
openvino just requires an intel cpu or gpu 😄
ugg...i fail that requirement currently
01:01:29
@hexa:lossy.network@hexa:lossy.networkand then there is CUDA01:02:49
@hexa:lossy.network@hexa:lossy.networkbut apparently we fail at that currently due to a too small ffmpeg variant https://github.com/NixOS/nixpkgs/issues/34411401:03:09
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/NixOS/nixpkgs/issues/188719#issuecomment-214313435001:29:45
@hexa:lossy.network@hexa:lossy.networkapparently the gasket driver is also required?01:29:56
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/NixOS/nixpkgs/issues/188719#issuecomment-209457586001:30:28
@hexa:lossy.network@hexa:lossy.networkcheck the "Frigate system config" here01:30:34
@hexa:lossy.network@hexa:lossy.networkhacky, but might work01:30:39
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/NixOS/nixpkgs/pull/35771715:17:51
@hexa:lossy.network@hexa:lossy.networka number of frigate fixes worth test-driving15:17:59

Show newer messages


Back to Room ListRoom Version: 6