Method
__init__
(
self, batch_size, num_threads, device_id, _seed, image_dir, prefetch_queue_depth=2
)
Source from the content-addressed store, hash-verified
| 51 | |
| 52 | class CommonPipeline(Pipeline): |
| 53 | def __init__( |
| 54 | self, batch_size, num_threads, device_id, _seed, image_dir, prefetch_queue_depth=2 |
| 55 | ): |
| 56 | super().__init__( |
| 57 | batch_size, |
| 58 | num_threads, |
| 59 | device_id, |
| 60 | seed=_seed, |
| 61 | prefetch_queue_depth=prefetch_queue_depth, |
| 62 | ) |
| 63 | self.input = ops.readers.File(file_root=image_dir) |
| 64 | self.decode = ops.decoders.Image(device="cpu", output_type=types.RGB) |
| 65 | self.resize = ops.PythonFunction(function=resize, output_layouts="HWC") |
| 66 | |
| 67 | def load(self): |
| 68 | jpegs, labels = self.input() |
Callers
nothing calls this directly
Tested by
no test coverage detected