Skip to main content
Version: 0.10.x [Latest Beta]

Classic Pipeline flow

The classic Pipeline flow exposes each step directly: initialize, subscribe to output topics, publish an input tensor, run, and receive raw output tensors. It provides full control over topic wiring and tensor decoding. For most integrations, SimplifiedPipeline covers the same task with less code.

Concepts referenced below (pipelines, nodes, topics, tensors) are described in Pipeline fundamentals.

Running an exported pipeline

from denkflow import Pipeline, ImageTensor

pipeline = Pipeline.from_denkflow("path/to/model.denkflow", pat="YOUR-PAT")
pipeline.initialize()

receiver = pipeline.subscribe("bounding_box_filter_node/filtered_bounding_boxes")

pipeline.publish_image_tensor("/image", ImageTensor.from_file("path/to/image.jpg"))
pipeline.run()

objects = receiver.receive_bounding_box_tensor().to_objects(0.5)

for obj in objects:
print(obj.class_label.name, obj.confidence)

Output topic names vary by export. They are discovered after initialize() with pipeline.get_topics() (see Pipeline fundamentals).

When to use this flow

The classic flow is the basis for custom pipeline construction from .denkmodel files and for reading intermediate topics that SimplifiedPipeline does not expose. In-memory input formats are covered in Creating ImageTensors.