Pipeline: improve performance by using direct mode
This commit is contained in:
@@ -19,9 +19,9 @@ class BasePipeline(FrameProcessor):
|
||||
metrics collection from their contained processors.
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, **kwargs):
|
||||
"""Initialize the base pipeline."""
|
||||
super().__init__()
|
||||
super().__init__(**kwargs)
|
||||
|
||||
@abstractmethod
|
||||
def processors_with_metrics(self) -> List[FrameProcessor]:
|
||||
|
||||
@@ -98,7 +98,7 @@ class Pipeline(BasePipeline):
|
||||
Args:
|
||||
processors: List of frame processors to connect in sequence.
|
||||
"""
|
||||
super().__init__()
|
||||
super().__init__(enable_direct_mode=True)
|
||||
|
||||
# Add a source and a sink queue so we can forward frames upstream and
|
||||
# downstream outside of the pipeline.
|
||||
|
||||
Reference in New Issue
Block a user