Sending one component data to anaother #356
-
Hello I need to ask how I can send the data or output from one component to another like I have a pipeline which has an image layout service and text extraction service is data or output of the image layout service sent to the text extraction service? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Each pipeline component processes its data using data flows (e.g. generators). Once the pipeline component is instantiated The pipeline is responsible for processing data through every component. What the pipeline is doing under the hood is concatenating all components to a dataflow: df = # some incoming dataflow
df = image_layout.predict_dataflow(df)
df = text_extract.predict_dataflow(df)
... The reference code is here: deepdoctection/deepdoctection/pipe/base.py Line 227 in 661185a Does this answer your question? |
Beta Was this translation helpful? Give feedback.
Once you use a pipeline, e.g. DoctectionPipe it will take care of passing the data forward to the next component, yes. The order for running pipeline components is determined by their position in the pipeline_component_list.