Skip to content

Commit

Permalink
Don't require model_runner for realtime processors (#16728)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 authored Feb 21, 2025
1 parent 60b34bc commit b3c1b21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions frigate/data_processing/real_time/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from frigate.config import FrigateConfig

from ..types import DataProcessorMetrics, DataProcessorModelRunner
from ..types import DataProcessorMetrics

logger = logging.getLogger(__name__)

Expand All @@ -18,11 +18,9 @@ def __init__(
self,
config: FrigateConfig,
metrics: DataProcessorMetrics,
model_runner: DataProcessorModelRunner,
) -> None:
self.config = config
self.metrics = metrics
self.model_runner = model_runner
pass

@abstractmethod
Expand Down
2 changes: 1 addition & 1 deletion frigate/data_processing/real_time/license_plate.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(
self.model_runner = model_runner
self.lpr_config = config.lpr
self.config = config
super().__init__(config, metrics, model_runner)
super().__init__(config, metrics)

def __update_metrics(self, duration: float) -> None:
"""
Expand Down

0 comments on commit b3c1b21

Please sign in to comment.