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

Function test_fancy_upsampling

dali/test/python/decoder/test_imgcodec.py:273–293  ·  view source on GitHub ↗
(batch_size)

Source from the content-addressed store, hash-verified

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