Don't run bird classification if model is not downloaded yet (#18474)

This commit is contained in:
Nicolas Mowen
2025-05-29 15:15:25 -06:00
committed by GitHub
parent c11ca42fb5
commit 27914fc3b8

View File

@@ -97,6 +97,9 @@ class BirdRealTimeProcessor(RealTimeProcessorApi):
line = f.readline()
def process_frame(self, obj_data, frame):
if not self.interpreter:
return
if obj_data["label"] != "bird":
return