Module download

Functions

def download_url(url: str, path: str, chunk_size: int)
def main(args: Args)

Classes

class Args (root: str = '.', imagenet_v2: bool = True, chunk_size_kb: int = 1)

Args(root: str = '.', imagenet_v2: bool = True, chunk_size_kb: int = 1)

Expand source code
@dataclasses.dataclass(frozen=True)
class Args:
    root: str = "."
    """where to download files."""

    imagenet_v2: bool = True
    """whether to download imagenet v2."""

    chunk_size_kb: int = 1
    """how many KB to download at a time before writing to file."""

Class variables

var chunk_size_kb : int

how many KB to download at a time before writing to file.

var imagenet_v2 : bool

whether to download imagenet v2.

var root : str

where to download files.