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

Function common_pipeline

dali/test/python/test_RN50_external_source_parallel_utils.py:173–186  ·  view source on GitHub ↗
(images)

Source from the content-addressed store, hash-verified

171
172
173def common_pipeline(images):
174 images = dali.fn.random_resized_crop(images, device="gpu", size=(224, 224))
175 rng = dali.fn.random.coin_flip(probability=0.5)
176 images = dali.fn.crop_mirror_normalize(
177 images,
178 mirror=rng,
179 device="gpu",
180 dtype=types.FLOAT,
181 output_layout=types.NCHW,
182 crop=(224, 224),
183 mean=[125, 125, 125],
184 std=[255, 255, 255],
185 )
186 return images
187
188
189def file_reader_pipeline(

Callers 3

file_reader_pipelineFunction · 0.85
external_source_pipelineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected