Skip to content

Commit

Permalink
Catch hailo initialization error (#12558)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Jul 26, 2024
1 parent 979f4ac commit 1c617ed
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions frigate/detectors/plugins/hailo8l.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,22 @@
import urllib.request

import numpy as np
from hailo_platform import (
HEF,
ConfigureParams,
FormatType,
HailoRTException,
HailoStreamInterface,
InferVStreams,
InputVStreamParams,
OutputVStreamParams,
VDevice,
)

try:
from hailo_platform import (
HEF,
ConfigureParams,
FormatType,
HailoRTException,
HailoStreamInterface,
InferVStreams,
InputVStreamParams,
OutputVStreamParams,
VDevice,
)
except ModuleNotFoundError:
pass

from pydantic import BaseModel, Field
from typing_extensions import Literal

Expand Down

0 comments on commit 1c617ed

Please sign in to comment.