Skip to content

Custom types#

The data_type parameter of the DataConfig class is a string that is used to choose the data loader within CAREamics. We currently only support array and tiff explicitly.

However, users can set the data_type to custom and use their own read function.

Custom data type
from careamics.config import DataConfig

data_config = DataConfig(
    data_type="custom",  # (1)!
    axes="YX",
    patch_size=[128, 128],
    batch_size=8,
    num_epochs=20,
)
  1. As far as the configuration is concerned, you only set the data_type to custom. The rest happens in the CAREamist instance.

Full example in other sections

A full example of the use of a custom data type is available in the CAREamist and Applications sections.