MCPcopy Create free account
hub / github.com/NVIDIA/DALI / DetectionPipeline

Class DetectionPipeline

dali/test/python/test_fw_iterators_detection.py:27–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27class DetectionPipeline(Pipeline):
28 def __init__(self, batch_size, device_id, file_root, annotations_file):
29 super().__init__(batch_size, 2, device_id, True, 12)
30
31 # Reading COCO dataset
32 self.input = ops.readers.COCO(
33 file_root=file_root,
34 annotations_file=annotations_file,
35 shard_id=device_id,
36 num_shards=1,
37 ratio=True,
38 ltrb=True,
39 )
40
41 def define_graph(self):
42 inputs, boxes, labels = self.input(name="Reader")
43 return inputs, boxes.gpu(), labels
44
45
46def data_paths():

Callers 4

test_api_fw_check1Function · 0.70
test_api_fw_check2Function · 0.70

Calls

no outgoing calls

Tested by 4

test_api_fw_check1Function · 0.56
test_api_fw_check2Function · 0.56