mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-23 12:40:08 +00:00
chore(docstrings): fixing deprecated root argument description in LeRobotDataset class (#3035)
* chore(docstrings): fixing deprecated `root` argument docstrings in LeRobotDataset class * chore(draccus): updating draccus CLI help * chore(revert): reverting changes in lerobot_dataset_viz.py --------- Co-authored-by: Steven Palma <imstevenpmwork@ieee.org>
This commit is contained in:
@@ -57,7 +57,7 @@ class DatasetReplayConfig:
|
|||||||
repo_id: str
|
repo_id: str
|
||||||
# Episode to replay.
|
# Episode to replay.
|
||||||
episode: int
|
episode: int
|
||||||
# Root directory where the dataset will be stored (e.g. 'dataset/path').
|
# Root directory where the dataset will be stored (e.g. 'dataset/path'). If None, defaults to $HF_LEROBOT_HOME/repo_id.
|
||||||
root: str | Path | None = None
|
root: str | Path | None = None
|
||||||
# Limit the frames per second. By default, uses the policy fps.
|
# Limit the frames per second. By default, uses the policy fps.
|
||||||
fps: int = 30
|
fps: int = 30
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class DatasetConfig:
|
|||||||
# "dataset_index" into the returned item. The index mapping is made according to the order in which the
|
# "dataset_index" into the returned item. The index mapping is made according to the order in which the
|
||||||
# datasets are provided.
|
# datasets are provided.
|
||||||
repo_id: str
|
repo_id: str
|
||||||
# Root directory where the dataset will be stored (e.g. 'dataset/path').
|
# Root directory where the dataset will be stored (e.g. 'dataset/path'). If None, defaults to $HF_LEROBOT_HOME/repo_id.
|
||||||
root: str | None = None
|
root: str | None = None
|
||||||
episodes: list[int] | None = None
|
episodes: list[int] | None = None
|
||||||
image_transforms: ImageTransformsConfig = field(default_factory=ImageTransformsConfig)
|
image_transforms: ImageTransformsConfig = field(default_factory=ImageTransformsConfig)
|
||||||
|
|||||||
@@ -664,11 +664,11 @@ class LeRobotDataset(torch.utils.data.Dataset):
|
|||||||
for the README).
|
for the README).
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
repo_id (str): This is the repo id that will be used to fetch the dataset. Locally, the dataset
|
repo_id (str): This is the repo id that will be used to fetch the dataset.
|
||||||
will be stored under root/repo_id.
|
root (Path | None, optional): Local directory where the dataset will be downloaded and
|
||||||
root (Path | None, optional): Local directory to use for downloading/writing files. You can also
|
stored. If set, all dataset files will be stored directly under this path. If not set, the
|
||||||
set the HF_LEROBOT_HOME environment variable to point to a different location. Defaults to
|
dataset files will be stored under $HF_LEROBOT_HOME/repo_id (configurable via the
|
||||||
'~/.cache/huggingface/lerobot'.
|
HF_LEROBOT_HOME environment variable).
|
||||||
episodes (list[int] | None, optional): If specified, this will only load episodes specified by
|
episodes (list[int] | None, optional): If specified, this will only load episodes specified by
|
||||||
their episode_index in this list. Defaults to None.
|
their episode_index in this list. Defaults to None.
|
||||||
image_transforms (Callable | None, optional): You can pass standard v2 image transforms from
|
image_transforms (Callable | None, optional): You can pass standard v2 image transforms from
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ class DatasetRecordConfig:
|
|||||||
repo_id: str
|
repo_id: str
|
||||||
# A short but accurate description of the task performed during the recording (e.g. "Pick the Lego block and drop it in the box on the right.")
|
# A short but accurate description of the task performed during the recording (e.g. "Pick the Lego block and drop it in the box on the right.")
|
||||||
single_task: str
|
single_task: str
|
||||||
# Root directory where the dataset will be stored (e.g. 'dataset/path').
|
# Root directory where the dataset will be stored (e.g. 'dataset/path'). If None, defaults to $HF_LEROBOT_HOME/repo_id.
|
||||||
root: str | Path | None = None
|
root: str | Path | None = None
|
||||||
# Limit the frames per second.
|
# Limit the frames per second.
|
||||||
fps: int = 30
|
fps: int = 30
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class DatasetReplayConfig:
|
|||||||
repo_id: str
|
repo_id: str
|
||||||
# Episode to replay.
|
# Episode to replay.
|
||||||
episode: int
|
episode: int
|
||||||
# Root directory where the dataset will be stored (e.g. 'dataset/path').
|
# Root directory where the dataset will be stored (e.g. 'dataset/path'). If None, defaults to $HF_LEROBOT_HOME/repo_id.
|
||||||
root: str | Path | None = None
|
root: str | Path | None = None
|
||||||
# Limit the frames per second. By default, uses the policy fps.
|
# Limit the frames per second. By default, uses the policy fps.
|
||||||
fps: int = 30
|
fps: int = 30
|
||||||
|
|||||||
Reference in New Issue
Block a user