INNER CODE UNIT · Python
_download_object
allenai/objaverse-xl · objaverse/__init__.py:88
def _download_object(
uid: str,
object_path: str,
total_downloads: float,
start_file_count: int,
) -> Tuple[str, str]:
"""Download the object for the given uid.
Args:
uid: The uid of the object to load.
object_path: The path to the object in the Hugging Face repo.
Returns:
The local path of where the object was downloaded.
"""
# print(f"downloading {uid}")
local_path = os.path.join(_VERSIONED_PATH, object_path)
tmp_local_path = os.path.join(_VERSIONED_PATH, object_path + ".tmp")