| # import os | |
| # os.environ['HF_ENDPOINT'] = 'https://alpha.hf-mirror.com' | |
| # https://hf-mirror.com | |
| # export HF_ENDPOINT="https://hf-mirror.com" | |
| # export HF_ENDPOINT="https://alpha.hf-mirror.com" | |
| from huggingface_hub import HfApi | |
| api = HfApi() | |
| api.upload_large_folder( | |
| folder_path=".", # 本地文件夹 | |
| repo_id="Dubhe-zmc/OmniObject3D-V2", # 数据集仓库 | |
| repo_type="dataset", | |
| ) | |
| # hf upload-large-folder Dubhe-zmc/OmniObject3D-V2 . --repo-type dataset | |