Shortcuts

Postprocess

class flash.core.data.process.Postprocess(save_path=None)[source]

The Postprocess encapsulates all the data processing logic that should run after the model.

static per_batch_transform(batch)[source]

Transforms to apply on a whole batch before uncollation to individual samples.

Can involve both CPU and Device transforms as this is not applied in separate workers.

Return type

Any

static per_sample_transform(sample)[source]

Transforms to apply to a single sample after splitting up the batch.

Can involve both CPU and Device transforms as this is not applied in separate workers.

Return type

Any

static save_data(data, path)[source]

Saves all data together to a single path.

Return type

None

static save_sample(sample, path)[source]

Saves each sample individually to a given path.

Return type

None

static uncollate(batch)[source]

Uncollates a batch into single samples.

Tries to preserve the type whereever possible.

Return type

Any

Read the Docs v: latest
Versions
latest
stable
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0post1
Downloads
pdf
html
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.