mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-16 17:20:05 +00:00
removed outdated todos
This commit is contained in:
@@ -104,9 +104,6 @@ class LeRobotDatasetMetadata:
|
|||||||
self.revision = get_safe_version(self.repo_id, self.revision)
|
self.revision = get_safe_version(self.repo_id, self.revision)
|
||||||
|
|
||||||
(self.root / "meta").mkdir(exist_ok=True, parents=True)
|
(self.root / "meta").mkdir(exist_ok=True, parents=True)
|
||||||
# TODO(rcadene): instead of downloading all episodes metadata files,
|
|
||||||
# download only the ones associated to the requested episodes. This would
|
|
||||||
# require adding `episodes: list[int]` as argument.
|
|
||||||
self.pull_from_repo(allow_patterns="meta/")
|
self.pull_from_repo(allow_patterns="meta/")
|
||||||
self.load_metadata()
|
self.load_metadata()
|
||||||
|
|
||||||
|
|||||||
Vendored
-1
@@ -54,7 +54,6 @@ class LeRobotDatasetFactory(Protocol):
|
|||||||
|
|
||||||
|
|
||||||
def get_task_index(tasks: datasets.Dataset, task: str) -> int:
|
def get_task_index(tasks: datasets.Dataset, task: str) -> int:
|
||||||
# TODO(rcadene): a bit complicated no? ^^
|
|
||||||
task_idx = tasks.loc[task].task_index.item()
|
task_idx = tasks.loc[task].task_index.item()
|
||||||
return task_idx
|
return task_idx
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user