mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-22 20:19:43 +00:00
add episode inddex to complementary data
This commit is contained in:
@@ -170,8 +170,9 @@ def _extract_complementary_data(batch: dict[str, Any]) -> dict[str, Any]:
|
|||||||
task_key = {"task": batch["task"]} if "task" in batch else {}
|
task_key = {"task": batch["task"]} if "task" in batch else {}
|
||||||
index_key = {"index": batch["index"]} if "index" in batch else {}
|
index_key = {"index": batch["index"]} if "index" in batch else {}
|
||||||
task_index_key = {"task_index": batch["task_index"]} if "task_index" in batch else {}
|
task_index_key = {"task_index": batch["task_index"]} if "task_index" in batch else {}
|
||||||
|
episode_index_key = {"episode_index": batch["episode_index"]} if "episode_index" in batch else {}
|
||||||
|
|
||||||
return {**pad_keys, **task_key, **index_key, **task_index_key}
|
return {**pad_keys, **task_key, **index_key, **task_index_key, **episode_index_key}
|
||||||
|
|
||||||
|
|
||||||
def create_transition(
|
def create_transition(
|
||||||
|
|||||||
Reference in New Issue
Block a user