Frigate tensorrt #880

Closed
opened 2025-11-20 04:55:38 -05:00 by saavagebueno · 1 comment
Owner

Originally created by @Ava0730 on GitHub (Apr 8, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Frigate

📂 What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/frigate.sh)"

📝 Provide a clear and concise description of the issue.

I installed Frigate using the script.
I dropped the video card into the container and installed the drivers.
The frigate menu shows the video card resources, but I can't configure the tensorrt detection.
Tell me, does this script contain tensorrt models?
Or am I doing something wrong?

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

Image

Paste the full error output (if available).

2025-04-08 16:15:53.332531 [INFO] Preparing Frigate...
2025-04-08 16:15:53.332597 [INFO] Starting Frigate...
2025-04-08 16:15:54.559020 [2025-04-08 16:15:54] frigate.app INFO : Starting Frigate (0.14.1-)
2025-04-08 16:15:54.559127 [2025-04-08 16:15:54] frigate.util.config INFO : Checking if frigate config needs migration...
2025-04-08 16:15:54.566799 [2025-04-08 16:15:54] frigate.util.config INFO : frigate config does not need migration...
2025-04-08 16:15:56.375360 [2025-04-08 16:15:56] peewee_migrate.logs INFO : Starting migrations
2025-04-08 16:15:56.375438 [2025-04-08 16:15:56] peewee_migrate.logs INFO : There is nothing to migrate
2025-04-08 16:15:56.380523 [2025-04-08 16:15:56] frigate.app INFO : Recording process started: 1405
2025-04-08 16:15:56.386079 [2025-04-08 16:15:56] frigate.app INFO : Recording process started: 1414
2025-04-08 16:15:56.387939 [2025-04-08 16:15:56] frigate.app INFO : go2rtc process pid: 141
2025-04-08 16:15:56.407270 [2025-04-08 16:15:56] detector.tensorrt INFO : Starting detection process: 1433
2025-04-08 16:15:56.407581 Process detector:tensorrt:
2025-04-08 16:15:56.408256 Traceback (most recent call last):
2025-04-08 16:15:56.408294 File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2025-04-08 16:15:56.408311 self.run()
2025-04-08 16:15:56.408323 File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2025-04-08 16:15:56.408334 self._target(*self._args, **self._kwargs)
2025-04-08 16:15:56.408346 File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector
2025-04-08 16:15:56.408357 object_detector = LocalObjectDetector(detector_config=detector_config)
2025-04-08 16:15:56.408368 File "/opt/frigate/frigate/object_detection.py", line 53, in init
2025-04-08 16:15:56.408380 self.detect_api = create_detector(detector_config)
2025-04-08 16:15:56.408391 File "/opt/frigate/frigate/detectors/init.py", line 18, in create_detector
2025-04-08 16:15:56.408402 return api(detector_config)
2025-04-08 16:15:56.408414 File "/opt/frigate/frigate/detectors/plugins/tensorrt.py", line 225, in init
2025-04-08 16:15:56.408425 assert (
2025-04-08 16:15:56.408436 AssertionError: TensorRT libraries not found, tensorrt detector not present
2025-04-08 16:15:56.408448 Exception ignored in: <function TensorRtDetector.del at 0x7eab36ef34c0>
2025-04-08 16:15:56.408460 Traceback (most recent call last):
2025-04-08 16:15:56.408471 File "/opt/frigate/frigate/detectors/plugins/tensorrt.py", line 265, in del
2025-04-08 16:15:56.408483 if self.outputs is not None:
2025-04-08 16:15:56.408495 AttributeError: 'TensorRtDetector' object has no attribute 'outputs'
2025-04-08 16:15:56.410281 [2025-04-08 16:15:56] frigate.app INFO : Output process started: 1435
2025-04-08 16:15:56.428118 [2025-04-08 16:15:56] frigate.app INFO : Camera processor started for coridor: 1449
2025-04-08 16:15:56.436602 [2025-04-08 16:15:56] frigate.app INFO : Capture process started for coridor: 1451

🖼️ Additional context (optional).

No response

Originally created by @Ava0730 on GitHub (Apr 8, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Frigate ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/frigate.sh)" ### 📝 Provide a clear and concise description of the issue. I installed Frigate using the script. I dropped the video card into the container and installed the drivers. The frigate menu shows the video card resources, but I can't configure the tensorrt detection. Tell me, does this script contain tensorrt models? Or am I doing something wrong? ### ⚙️ What settings are you using? - [ ] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. ![Image](https://github.com/user-attachments/assets/fcf4d646-fce2-492d-9329-3910c728a4fe) ### ❌ Paste the full error output (if available). 2025-04-08 16:15:53.332531 [INFO] Preparing Frigate... 2025-04-08 16:15:53.332597 [INFO] Starting Frigate... 2025-04-08 16:15:54.559020 [2025-04-08 16:15:54] frigate.app INFO : Starting Frigate (0.14.1-) 2025-04-08 16:15:54.559127 [2025-04-08 16:15:54] frigate.util.config INFO : Checking if frigate config needs migration... 2025-04-08 16:15:54.566799 [2025-04-08 16:15:54] frigate.util.config INFO : frigate config does not need migration... 2025-04-08 16:15:56.375360 [2025-04-08 16:15:56] peewee_migrate.logs INFO : Starting migrations 2025-04-08 16:15:56.375438 [2025-04-08 16:15:56] peewee_migrate.logs INFO : There is nothing to migrate 2025-04-08 16:15:56.380523 [2025-04-08 16:15:56] frigate.app INFO : Recording process started: 1405 2025-04-08 16:15:56.386079 [2025-04-08 16:15:56] frigate.app INFO : Recording process started: 1414 2025-04-08 16:15:56.387939 [2025-04-08 16:15:56] frigate.app INFO : go2rtc process pid: 141 2025-04-08 16:15:56.407270 [2025-04-08 16:15:56] detector.tensorrt INFO : Starting detection process: 1433 2025-04-08 16:15:56.407581 Process detector:tensorrt: 2025-04-08 16:15:56.408256 Traceback (most recent call last): 2025-04-08 16:15:56.408294 File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap 2025-04-08 16:15:56.408311 self.run() 2025-04-08 16:15:56.408323 File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run 2025-04-08 16:15:56.408334 self._target(*self._args, **self._kwargs) 2025-04-08 16:15:56.408346 File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector 2025-04-08 16:15:56.408357 object_detector = LocalObjectDetector(detector_config=detector_config) 2025-04-08 16:15:56.408368 File "/opt/frigate/frigate/object_detection.py", line 53, in __init__ 2025-04-08 16:15:56.408380 self.detect_api = create_detector(detector_config) 2025-04-08 16:15:56.408391 File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector 2025-04-08 16:15:56.408402 return api(detector_config) 2025-04-08 16:15:56.408414 File "/opt/frigate/frigate/detectors/plugins/tensorrt.py", line 225, in __init__ 2025-04-08 16:15:56.408425 assert ( 2025-04-08 16:15:56.408436 AssertionError: TensorRT libraries not found, tensorrt detector not present 2025-04-08 16:15:56.408448 Exception ignored in: <function TensorRtDetector.__del__ at 0x7eab36ef34c0> 2025-04-08 16:15:56.408460 Traceback (most recent call last): 2025-04-08 16:15:56.408471 File "/opt/frigate/frigate/detectors/plugins/tensorrt.py", line 265, in __del__ 2025-04-08 16:15:56.408483 if self.outputs is not None: 2025-04-08 16:15:56.408495 AttributeError: 'TensorRtDetector' object has no attribute 'outputs' 2025-04-08 16:15:56.410281 [2025-04-08 16:15:56] frigate.app INFO : Output process started: 1435 2025-04-08 16:15:56.428118 [2025-04-08 16:15:56] frigate.app INFO : Camera processor started for coridor: 1449 2025-04-08 16:15:56.436602 [2025-04-08 16:15:56] frigate.app INFO : Capture process started for coridor: 1451 ### 🖼️ Additional context (optional). _No response_
saavagebueno added the bug label 2025-11-20 04:55:38 -05:00
Author
Owner

@MickLesk commented on GitHub (Apr 8, 2025):

not an script issue. I convert it into discussion.

@MickLesk commented on GitHub (Apr 8, 2025): not an script issue. I convert it into discussion.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#880