ImageDecoder

class dragon.vm.dali.ops.ImageDecoder[source]

Decode image from bytes.

Examples:

decode = dali.ops.ImageDecoder()
y = decode(inputs['x'], out_type='BGR')

__new__

static ImageDecoder.__new__(
  cls,
  output_type='BGR',
  host_memory_padding=8388608,
  device_memory_padding=16777216
)[source]

Create a ImageDecoder operator.

Parameters:
  • output_type ({'BGR', 'RGB'}, optional) – The output color space.
  • host_memory_padding (int, optional, default=8388608) – The number of bytes for host buffer.
  • device_memory_padding (int, optional, default=16777216) – The number of bytes for device buffer.
Returns:

nvidia.dali.ops.ImageDecoder – The operator.