INNER CODE UNIT · Python
get_annotations
allenai/objaverse-xl · objaverse/xl/__init__.py:20
def get_annotations(
download_dir: str = "~/.objaverse", refresh: bool = False
) -> pd.DataFrame:
"""Loads the 3D object metadata as a Pandas DataFrame.
Args:
download_dir (str, optional): Directory to download the parquet metadata
file. Supports all file systems supported by fsspec. Defaults to
"~/.objaverse".
refresh (bool, optional): Whether to refresh the annotations by downloading
them from the remote source. Defaults to False.
Returns:
pd.DataFrame: Metadata of the 3D objects as a Pandas DataFrame with columns
for the object "fileIdentifier", "license", "source", "fileType",
"sha256", and "metadata".
"""
annotations = [