meerkat.datasets.imagenette package

Module contents

class imagenette(dataset_dir: Optional[str] = None, version: Optional[str] = None, download_mode: str = 'reuse', **kwargs)[source]

Bases: DatasetBuilder

build()[source]
download()[source]
REVISIONS: List[str]
VERSIONS = ['full', '320px', '160px']
VERSION_TO_URL = {'160px': 'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2-160.tgz', '320px': 'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2-320.tgz', 'full': 'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2.tgz'}
property data_dir
info: DatasetInfo = DatasetInfo(name='imagenette', full_name='ImageNette', description='Imagenette is a subset of 10 easily classified classes from Imagenet (tench, English springer, cassette player, chain saw, church, French horn, garbage truck, gas pump, golf ball, parachute).', citation=None, homepage='https://github.com/fastai/imagenette', license=None, tags=['image', 'classification'])
build_imagenette_dp(dataset_dir: str, download: bool = False, version: str = '160px') DataPanel[source]

Build DataPanel for the Imagenette dataset.

Parameters
  • download_dir (str) – The directory path to save to or load from.

  • version (str, optional) – Imagenette version. Choices: "full", "320px", "160px".

  • overwrite (bool, optional) – If True, redownload the datasets.

Returns

A DataPanel corresponding to the dataset.

Return type

mk.DataPanel

References

fastai/imagenette

download_imagenette(download_dir, version='160px', overwrite: bool = False, return_df: bool = False)[source]

Download Imagenette dataset.

Parameters
  • download_dir (str) – The directory path to save to.

  • version (str, optional) – Imagenette version. Choices: "full", "320px", "160px".

  • overwrite (bool, optional) – If True, redownload the dataset.

  • return_df (bool, optional) – If True, return a pd.DataFrame.

Returns

If return_df=True, returns a pandas DataFrame.

Otherwise, returns the directory path where the data is stored.

Return type

Union[str, pd.DataFrame]

References

fastai/imagenette