mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-20 23:28:23 +03:00
Remove redundant tensorflow import in BirdRealTimeProcessor
Was added inae0c1ca(#21301) and then incompletely reverted inec1d794(#21320).
This commit is contained in:
parent
352d271fe4
commit
88c4d496ec
@ -73,11 +73,6 @@ class CustomStateClassificationProcessor(RealTimeProcessorApi):
|
|||||||
self.__build_detector()
|
self.__build_detector()
|
||||||
|
|
||||||
def __build_detector(self) -> None:
|
def __build_detector(self) -> None:
|
||||||
try:
|
|
||||||
from tflite_runtime.interpreter import Interpreter
|
|
||||||
except ModuleNotFoundError:
|
|
||||||
from tensorflow.lite.python.interpreter import Interpreter
|
|
||||||
|
|
||||||
model_path = os.path.join(self.model_dir, "model.tflite")
|
model_path = os.path.join(self.model_dir, "model.tflite")
|
||||||
labelmap_path = os.path.join(self.model_dir, "labelmap.txt")
|
labelmap_path = os.path.join(self.model_dir, "labelmap.txt")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user