Skip to content

Commit

Permalink
avoid import error for non-rk builds (#8454)
Browse files Browse the repository at this point in the history
* avoid import error for non-rk builds

* linter
  • Loading branch information
blakeblackshear committed Nov 4, 2023
1 parent 63233a5 commit 65e3e67
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion frigate/detectors/plugins/rknn.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
import cv2
import cv2.dnn
import numpy as np
from hide_warnings import hide_warnings

try:
from hide_warnings import hide_warnings
except: # noqa: E722

def hide_warnings(func):
pass


from pydantic import Field

from frigate.detectors.detection_api import DetectionApi
Expand Down

0 comments on commit 65e3e67

Please sign in to comment.