Installation#

Python Version#

Flower Datasets requires Python 3.8 or above.

Install stable release (pip)#

Stable releases are available on PyPI

python -m pip install flwr-datasets

For vision datasets (e.g. MNIST, CIFAR10) flwr-datasets should be installed with the vision extra

python -m pip install flwr_datasets[vision]

For audio datasets (e.g. Speech Command) flwr-datasets should be installed with the audio extra

python -m pip install flwr_datasets[audio]

Verify installation#

The following command can be used to verify if Flower Datasets was successfully installed:

python -c "import flwr_datasets;print(flwr_datasets.__version__)"

If everything worked, it should print the version of Flower Datasets to the command line:

0.0.1