INNER CODE UNIT · Python

download_objects

allenai/objaverse-xl · objaverse/xl/__init__.py:69

def download_objects(
    objects: pd.DataFrame,
    download_dir: Optional[str] = "~/.objaverse",
    processes: Optional[int] = None,
    handle_found_object: Optional[Callable] = None,
    handle_modified_object: Optional[Callable] = None,
    handle_missing_object: Optional[Callable] = None,
    **kwargs,
) -> Dict[str, str]:
    """Downloads all objects from the source.

    Args:
        objects (pd.DataFrame): Objects to download. Must have columns for
            the object "fileIdentifier", "source", and "sha256". Use the
            `get_annotations` function to get all objects as a DataFrame.
        download_dir (Optional[str], optional): Directory to download the objects
            to. Supports all file systems supported by fsspec. If None, the objects
            will be deleted after they are downloaded. Defaults to "~/.objaverse".

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…