Module: tff.simulation.datasets.flair

Libraries for loading the FLAIR dataset.

For details on the FLAIR dataset, please see the associated paper:

FLAIR: Federated Learning Annotated Image Repository Congzheng Song, Filip Granqvist, Kunal Talwar

To load the dataset, first call download_data, followed by write_data. Once this is done, you can call load_data without having to re-download or re-write the data.


download_data(...): Downloads and unpacks the raw FLAIR data into a given directory.

load_data(...): Loads the FLAIR dataset.

write_data(...): Writes the raw FLAIR images to a processed dataset format.