INNER CODE UNIT · Python
load_objects
allenai/objaverse-xl · objaverse/__init__.py:127
def load_objects(uids: List[str], download_processes: int = 1) -> Dict[str, str]:
"""Return the path to the object files for the given uids.
If the object is not already downloaded, it will be downloaded.
Args:
uids: A list of uids.
download_processes: The number of processes to use to download the objects.
Returns:
A dictionary mapping the object uid to the local path of where the object
downloaded.
"""
object_paths = _load_object_paths()
out = {}
if download_processes == 1:
uids_to_download = []
for uid in uids: