Skip to content

Base

base #

BaseDownloader #

Bases: abc.ABC

Base class for all downloaders.

size abstractmethod property #

size: float

Return the size of the instances in GB.

members abstractmethod property #

members: list[str]

Return the members of the source.

download abstractmethod #

download(output_path: pathlib.Path, instance_ids: list[str] | None = None, **kwargs: typing.Any) -> None

Download the instances from the source.

Source code in src/imgnet/download/base.py
@abstractmethod
def download(
    self,
    output_path: Path,
    instance_ids: list[str] | None = None,
    **kwargs: Any,  # noqa: ANN401
) -> None:
    """Download the instances from the source."""
    ...