imagenette
ImagenetteClassificationDataModule(data_path, name='imagenette_classification_datamodule', imagenette_version='320', force_download=False, class_to_idx=None, **kwargs)
¶
Bases: ClassificationDataModule
Initializes the classification data module for Imagenette dataset.
Parameters:
-
data_path
(
str
) –Path to the dataset.
-
name
(
str
, default:'imagenette_classification_datamodule'
) –Name of the dataset.
-
imagenette_version
(
str
, default:'320'
) –Version of the Imagenette dataset. Can be 320 or 160 or full.
-
force_download
(
bool
, default:False
) –If True, the dataset will be downloaded even if the data_path already exists. The data_path will be deleted and recreated.
-
class_to_idx
(
dict[str, int] | None
, default:None
) –Dictionary mapping class names to class indices.
-
**kwargs
(
Any
, default:{}
) –Keyword arguments for the ClassificationDataModule.
Source code in quadra/datamodules/generic/imagenette.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|
download_data(download_url, force_download=False)
¶
Download the Imagenette dataset.
Parameters:
-
download_url
(
str
) –Dataset download url.
-
force_download
(
bool
, default:False
) –If True, the dataset will be downloaded even if the data_path already exists. The data_path will be removed.
Source code in quadra/datamodules/generic/imagenette.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
|
ImagenetteSSLDataModule(*args, name='imagenette_ssl', **kwargs)
¶
Bases: ImagenetteClassificationDataModule
, SSLDataModule
Initializes the SSL data module for Imagenette dataset.
Source code in quadra/datamodules/generic/imagenette.py
138 139 140 141 142 143 144 |
|