Changed GPU and now detection doesn't work, frigate crashes

I was using an intel iGPU, and now I'm using an Nvidia GPU on a different computer.
I changed the image to "frigate:0.17.2**-tensorrt**"
/dev/dri/renderD128 stayed the same as before.

#Solution: Remove "-tensorrt" from the image name
Install Nvidia drivers on my Ubuntu VM to where the 'NVIDIA-SMI' command would work.
THEN add this to the docker config:

deploy:
  resources:
    reservations:
      devices:
        # Reserve all available GPUs
        - driver: nvidia
          count: all
          capabilities: [gpu]

Thank you.

#Docker Config services: frigate: container_name: frigate privileged: true restart: unless-stopped stop_grace_period: 30s image: ghcr.io/blakeblackshear/frigate:0.17.2-tensorrt secrets: - frigate_rtsp_pass shm_size: "512mb" devices: - /dev/dri/renderD128:/dev/dri/renderD128 volumes: - /etc/localtime:/etc/localtime:ro - frigate:/config - /mnt/FrigateMedia:/media/frigate - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear target: /tmp/cache tmpfs: size: 1000000000 ports: - "8971:8971" - "5000:5000" # Internal unauthenticated access. Expose carefully. - "8554:8554" # RTSP feeds - "8555:8555/tcp" # WebRTC over tcp - "8555:8555/udp" # WebRTC over udp - "1984:1984" # Go2RTC environment: FRIGATE_RTSP_PASSWORD: frigate_rtsp_pass YOLO_MODELS: yolov9-t-320 NVIDIA_VISIBLE_DEVICES: all NVIDIA_DRIVER_CAPABILITIES: compute,utility,video

secrets:
  frigate_rtsp_pass:
    file: /var/lib/docker/secrets/frigate_rtsp_pass.txt

volumes:
  frigate:

#Frigate Config version: 0.17-2

detect:
  enabled: true

tls:
  enabled: false

detectors:
  onnx_0:
    type: onnx
    device: GPU

model:
  model_type: yolo-generic
  width: 320 # <--- should match the imgsize set during model export
  height: 320 # <--- should match the imgsize set during model export
  input_tensor: nchw
  input_dtype: float
  path: /config/model_cache/yolov9-t-320.onnx
  labelmap_path: /labelmap/coco-80.txt

ffmpeg:
  hwaccel_args: preset-nvidia


#Record
record:
  enabled: true

go2rtc:
  streams:
    FrontYard: 
      rtsp://admin:PASSWORD@192.168.1.6/cam/realmonitor?channel=1&subtype=0
    FrontYardSub: 
      rtsp://admin:PASSWORD@192.168.1.6/cam/realmonitor?channel=1&subtype=1

cameras:
  FrontYard:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/FrontYard?video=copy
          input_args: preset-rtsp-restream
          roles:
            - record
        - path: rtsp://127.0.0.1:8554/FrontYardSub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
      output_args:
        record: preset-record-generic-audio-copy
    live:
      streams:
        FrontYard: FrontYard
reddit.com
u/scottocs — 6 days ago
▲ 18 r/opnsense+1 crossposts

Will this network setup work? Attempting to setup OPNsense HA using CARP

u/scottocs — 6 days ago
▲ 4 r/zfs

ZFS Replicate 8tb on one host to 18tb on second host

I'm jumping into the world of ZFS on Proxmox and would like some advice. I don't need RAID to protect drive failures since the data will be mirrored on each host and isn't critical data.

I will have two pve nodes (and a third as witness) with a 512GB SSD on host 1 mirrored two a 512GB SSD on host 2.

I also have an 8TB and 18TB HDD. I want to put the 18TB on host 1 and the 8tb on host 2. From what I read, I can create an 8TB and 10TB partition to use the extra 10TB for extra data, right?

I may one day match the drives, but I'm saving money for now. I may even sell the 18TB to get 2x 8TB, or similar.

Do you have any suggestions or corrections for this?

Thank you

reddit.com
u/scottocs — 9 days ago

[Guide] How to resize or delete local-lvm and increase local boot disk storage

During my original install, I made my root partition a bit too small for comfort. I went in a few circles trying to find the answers to this because most posts are either deleting local-lvm without recreating it. Then I ran into an error when allocating 100% free space to local-lvm and trying to create the thin pool. So anyways...

#Delete Local-lvm and Increase Local lvremove /dev/pve/data -y lvresize -L +100%FREE /dev/pve/root resize2fs /dev/mapper/pve-root

#Shrink Local-lvm and Increase Local

Notes

On the lvresize command, change 30G to the exact size you want, or use +10G to increase 10GB.

On the vgs command, check your free space of pve and subtract about 1GB to leave room for metadata.

lvremove /dev/pve/data -y
lvresize -L 30G /dev/pve/root
resize2fs /dev/mapper/pve-root
vgs
lvcreate -L 189G -n data pve
lvconvert --type thin-pool pve/data -y

#Re-add local-lvm to Proxmox via UI Go to Datacenter -> Storage -> Add -> LVM-Thin
ID: local-lvm
Volume Group: PVE
Thin Pool: Data

reddit.com
u/scottocs — 1 month ago

Question about setting up OpenVINO with YOLOv9

I have a 9th gen Intel CPU. I'm looking at the docs, but I'm stuck after expanding "YOLOv Setup & Config". > > After placing the downloaded onnx model in your config folder, you can use the following configuration:

What is this onnx file it's referring to and where do I get it?

I've been running a Google Coral for awhile now and not had to do anything with YOLOv9, so I'm a little lost here.

Thank you

u/scottocs — 2 months ago