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.
Functions
download_data(...): Downloads and unpacks the raw FLAIR data into a given directory.
[null,null,["Last updated 2024-09-20 UTC."],[],[],null,["# Module: tff.simulation.datasets.flair\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |\n\nLibraries for loading the FLAIR dataset.\n\nFor details on the FLAIR dataset, please see the associated paper:\n\nFLAIR: Federated Learning Annotated Image Repository\nCongzheng Song, Filip Granqvist, Kunal Talwar\n\u003chttps://arxiv.org/abs/2207.08869\u003e\n\nTo load the dataset, first call `download_data`, followed by `write_data`. Once\nthis is done, you can call `load_data` without having to re-download or re-write\nthe data.\n| **Note:** Please ensure that you use the same `data_dir` argument in both `download_data` and `write_data`. Similarly, please ensure that you use the same `cache_dir` in both `write_data` and `load_data`.\n\nFunctions\n---------\n\n[`download_data(...)`](../../../tff/simulation/datasets/flair/download_data): Downloads and unpacks the raw FLAIR data into a given directory.\n\n[`load_data(...)`](../../../tff/simulation/datasets/flair/load_data): Loads the FLAIR dataset.\n\n[`write_data(...)`](../../../tff/simulation/datasets/flair/write_data): Writes the raw FLAIR images to a processed dataset format."]]