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

Function test_fancy_upsampling

dali/test/python/decoder/test_image.py:275–295  ·  view source on GitHub ↗
(batch_size)

Source from the content-addressed store, hash-verified

273
274@params(1, 8)
275def test_fancy_upsampling(batch_size):
276 if get_nvjpeg_ver() < (12, 1, 0):
277 raise SkipTest("nvimgcodec/nvjpeg doesn't support fancy upsampling in this version")
278
279 data_path = os.path.join(test_data_root, good_path, "jpeg")
280 compare_pipelines(
281 decoder_pipe(
282 data_path=data_path,
283 batch_size=batch_size,
284 num_threads=3,
285 device_id=0,
286 device="mixed",
287 jpeg_fancy_upsampling=True,
288 ),
289 decoder_pipe(
290 data_path=data_path, batch_size=batch_size, num_threads=3, device_id=0, device="cpu"
291 ),
292 batch_size=batch_size,
293 N_iterations=3,
294 eps=1,
295 )
296
297
298batch_size_test = 16

Callers

nothing calls this directly

Calls 3

get_nvjpeg_verFunction · 0.90
compare_pipelinesFunction · 0.90
decoder_pipeFunction · 0.70

Tested by

no test coverage detected