def from_movie_posters(
    batch_size: int = 4,
    num_workers: int = 0,
    **data_module_kwargs,
) -> ImageClassificationData:
    """Downloads and loads the movie posters genre classification data set."""
    download_data("https://pl-flash-data.s3.amazonaws.com/movie_posters.zip", "./data")

    def resolver(root, file_id):
        return os.path.join(root, f"{file_id}.jpg")

    return ImageClassificationData.from_csv(
        "Id",
        ["Action", "Romance", "Crime", "Thriller", "Adventure"],
        train_file="data/movie_posters/train/metadata.csv",
        train_resolver=resolver,
        val_file="data/movie_posters/val/metadata.csv",
        val_resolver=resolver,
        batch_size=batch_size,
        num_workers=num_workers,
        **data_module_kwargs,
    )
Downloads and loads the movie posters genre classification data set.
src/flash/image/classification/cli.py