mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-25 10:46:01 +00:00
fix(datasets): default private to None in push_to_hub to respect Hub org visibility settings (#3713)
This commit is contained in:
@@ -41,8 +41,8 @@ class DatasetRecordConfig:
|
|||||||
video: bool = True
|
video: bool = True
|
||||||
# Upload dataset to Hugging Face hub.
|
# Upload dataset to Hugging Face hub.
|
||||||
push_to_hub: bool = True
|
push_to_hub: bool = True
|
||||||
# Upload on private repository on the Hugging Face hub.
|
# If True, upload as private; if None, defer to the org default on the Hub (only affects orgs).
|
||||||
private: bool = False
|
private: bool | None = None
|
||||||
# Add tags to your dataset on the hub.
|
# Add tags to your dataset on the hub.
|
||||||
tags: list[str] | None = None
|
tags: list[str] | None = None
|
||||||
# Number of subprocesses handling the saving of frames as PNG. Set to 0 to use threads only;
|
# Number of subprocesses handling the saving of frames as PNG. Set to 0 to use threads only;
|
||||||
|
|||||||
@@ -524,7 +524,7 @@ class LeRobotDataset(torch.utils.data.Dataset):
|
|||||||
license: str | None = "apache-2.0",
|
license: str | None = "apache-2.0",
|
||||||
tag_version: bool = True,
|
tag_version: bool = True,
|
||||||
push_videos: bool = True,
|
push_videos: bool = True,
|
||||||
private: bool = False,
|
private: bool | None = None,
|
||||||
allow_patterns: list[str] | str | None = None,
|
allow_patterns: list[str] | str | None = None,
|
||||||
upload_large_folder: bool = False,
|
upload_large_folder: bool = False,
|
||||||
**card_kwargs,
|
**card_kwargs,
|
||||||
@@ -543,7 +543,8 @@ class LeRobotDataset(torch.utils.data.Dataset):
|
|||||||
tag_version: If ``True``, create a Git tag for the current codebase
|
tag_version: If ``True``, create a Git tag for the current codebase
|
||||||
version.
|
version.
|
||||||
push_videos: If ``False``, skip uploading the ``videos/`` directory.
|
push_videos: If ``False``, skip uploading the ``videos/`` directory.
|
||||||
private: If ``True``, create a private repository.
|
private: If ``True``, create a private repository. If ``None``
|
||||||
|
(default), defer to the org default on the Hub (only affects orgs).
|
||||||
allow_patterns: Glob pattern(s) restricting which files to upload.
|
allow_patterns: Glob pattern(s) restricting which files to upload.
|
||||||
upload_large_folder: If ``True``, use ``upload_large_folder`` instead
|
upload_large_folder: If ``True``, use ``upload_large_folder`` instead
|
||||||
of ``upload_folder`` for very large datasets.
|
of ``upload_folder`` for very large datasets.
|
||||||
|
|||||||
Reference in New Issue
Block a user