Catch hailo initialization error (#12558)

This commit is contained in:
Nicolas Mowen 2024-07-22 12:59:30 -06:00
parent b4eb83d892
commit 331c882af2

View File

@ -3,6 +3,8 @@ import os
import urllib.request import urllib.request
import numpy as np import numpy as np
try:
from hailo_platform import ( from hailo_platform import (
HEF, HEF,
ConfigureParams, ConfigureParams,
@ -14,6 +16,9 @@ from hailo_platform import (
OutputVStreamParams, OutputVStreamParams,
VDevice, VDevice,
) )
except ModuleNotFoundError:
pass
from pydantic import BaseModel, Field from pydantic import BaseModel, Field
from typing_extensions import Literal from typing_extensions import Literal