preprocessing

Data preprocessing is the first transformation to data after loading from disk. It should comprise deterministic one-one mappings that can e.g. be used to unify data (resizing operations to stack image tensors later on). The preprocessing config determines the pipeline for this process. Note that preprocessing can be done on the fly - which is ideal for exploration - but for number crunching a single call to the pp mode can drastically improve efficiency (in exchange for disk space). Note that in contrast to augmentations only the albumentations backend is supported!

default

pipeline
default: pipeline consists of
  • SmallestMaxSize(max_size=256)

  • PadIfNeeded(min_height=288,min_width=288)

  • Resize(height=256,width=256)

example

pipeline
default: pipeline consists of
  • PadIfNeeded(min_height=512,min_width=512)

  • Resize(height=256,width=256)

none

pipeline
default: {}
  • an empty pipeline to neglect any preprocessing

size224

pipeline
default: pipeline consists of
  • SmallestMaxSize(max_size=224)

  • PadIfNeeded(min_height=256,min_width=256)

  • Resize(height=224,width=224)

size256

pipeline
default: pipeline consists of
  • SmallestMaxSize(max_size=256)

  • PadIfNeeded(min_height=288,min_width=288)

  • Resize(height=256,width=256)

size336

pipeline
default: pipeline consists of
  • SmallestMaxSize(max_size=336)

  • PadIfNeeded(min_height=368,min_width=368)

  • Resize(height=336,width=336)

size384

pipeline
default: pipeline consists of
  • SmallestMaxSize(max_size=384)

  • PadIfNeeded(min_height=416,min_width=416)

  • Resize(height=384,width=384)

size512

pipeline
default: pipeline consists of
  • SmallestMaxSize(max_size=512)

  • PadIfNeeded(min_height=574,min_width=574)

  • Resize(height=512,width=512)

size528

pipeline
default: pipeline consists of
  • SmallestMaxSize(max_size=528)

  • PadIfNeeded(min_height=592,min_width=592)

  • Resize(height=528,width=528)