Spaces:
Paused
Paused
File size: 702 Bytes
c9fc56f 7f3c2df c9fc56f 7f3c2df 669413d 7f3c2df c139251 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import zipfile
import os
from pathlib import Path
from huggingface_hub import snapshot_download
def unzip(file):
file_path = file.as_posix()
dir_path = file.parent.as_posix()
with zipfile.ZipFile(file_path, 'r') as zip_ref:
zip_ref.extractall(dir_path)
print("Loading public dataset")
snapshot_download(repo_id='XDimLab/HUGSIM',revision='main',local_dir='/app/app_datas/',local_dir_use_symlinks=False,allow_patterns=['3DRealCar/**'],repo_type='dataset')
snapshot_download(repo_id='XDimLab/HUGSIM',revision='main',local_dir='/app/app_datas/',local_dir_use_symlinks=False,allow_patterns=['nusc_map_cache.zip'],repo_type='dataset')
unzip(Path("/app/app_datas/nusc_map_cache.zip")) |