Module contrib.classification.download_cub
Functions
def main(args: Args)
-
Download CUB-200-2011.
Classes
class Args (dir: str = '.',
chunk_size_kb: int = 1,
seed: int = 42,
download: bool = True,
extract: bool = True)-
Configure download options.
Expand source code
@beartype.beartype @dataclasses.dataclass(frozen=True) class Args: """Configure download options.""" dir: str = "." """Where to save data.""" chunk_size_kb: int = 1 """How many KB to download at a time before writing to file.""" seed: int = 42 """Random seed used to generate split.""" download: bool = True """Whether to download.""" extract: bool = True """Whether to extract from .tgz file."""
Class variables
var chunk_size_kb : int
-
How many KB to download at a time before writing to file.
var dir : str
-
Where to save data.
var download : bool
-
Whether to download.
var extract : bool
-
Whether to extract from .tgz file.
var seed : int
-
Random seed used to generate split.