mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-22 12:09:42 +00:00
fix use local dir
This commit is contained in:
@@ -278,12 +278,14 @@ class PortEgoDexShards(PipelineStep):
|
|||||||
|
|
||||||
# 4. Create a LeRobot dataset for this shard
|
# 4. Create a LeRobot dataset for this shard
|
||||||
shard_repo_id = f"{self.repo_id}_world_{world_size}_rank_{rank}"
|
shard_repo_id = f"{self.repo_id}_world_{world_size}_rank_{rank}"
|
||||||
|
shard_root = self.local_dir / shard_repo_id if self.local_dir else None
|
||||||
|
|
||||||
dataset = LeRobotDataset.create(
|
dataset = LeRobotDataset.create(
|
||||||
repo_id=shard_repo_id,
|
repo_id=shard_repo_id,
|
||||||
fps=30,
|
fps=30,
|
||||||
robot_type="hand",
|
robot_type="hand",
|
||||||
features=EGODEX_FEATURES,
|
features=EGODEX_FEATURES,
|
||||||
|
root=shard_root,
|
||||||
)
|
)
|
||||||
|
|
||||||
# 5. Process each file
|
# 5. Process each file
|
||||||
|
|||||||
Reference in New Issue
Block a user