Skip to content

All transforms need to work on batches as well as the whole dataset #58

@KonstantinWilleke

Description

@KonstantinWilleke

The Transforms for the dataset classes in mlutils.data.datasets are usually applied for a single entity. Since the dataset can be called either as a batch, or accessing the whole dataset (data.dataset[:].images for example), the transforms should work in both cases.

This behavior is true for the Normalizer, Sampler, ToTensor, AddBehaviorAsChannels. The other Transforms have to be tested, and all new transforms also have to adhere to this convention.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions