def from_fddb(
    batch_size: int = 1,
    **data_module_kwargs,
) -> FaceDetectionData:
    """Downloads and loads the FDDB data set."""
    import fastface as ff

    train_dataset = ff.dataset.FDDBDataset(source_dir="data/", phase="train")
    val_dataset = ff.dataset.FDDBDataset(source_dir="data/", phase="val")

    return FaceDetectionData.from_datasets(
        train_dataset=train_dataset,
        val_dataset=val_dataset,
        batch_size=batch_size,
        **data_module_kwargs,
    )
Downloads and loads the FDDB data set.
src/flash/image/face_detection/cli.py