From 03f49ceaf0b740445ba9521da420feeec08dbfe5 Mon Sep 17 00:00:00 2001 From: berjaoui Date: Mon, 9 Dec 2024 00:17:49 +0100 Subject: [PATCH 1/2] Update 7_get_started_with_real_robot.md (#559) --- examples/7_get_started_with_real_robot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/7_get_started_with_real_robot.md b/examples/7_get_started_with_real_robot.md index 76408275d..1c5cd1047 100644 --- a/examples/7_get_started_with_real_robot.md +++ b/examples/7_get_started_with_real_robot.md @@ -29,7 +29,7 @@ For a visual walkthrough of the assembly process, you can refer to [this video t ## 2. Configure motors, calibrate arms, teleoperate your Koch v1.1 -First, install the additional dependencies required for robots built with dynamixel motors like Koch v1.1 by running one of the following commands. +First, install the additional dependencies required for robots built with dynamixel motors like Koch v1.1 by running one of the following commands (make sure gcc is installed). Using `pip`: ```bash From 44f9b21e74936c366b55609d1847b843bd04f3ab Mon Sep 17 00:00:00 2001 From: Claudio Coppola Date: Mon, 9 Dec 2024 10:32:25 +0000 Subject: [PATCH 2/2] LerobotDataset pushable to HF from any folder (#563) --- lerobot/common/datasets/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lerobot/common/datasets/utils.py b/lerobot/common/datasets/utils.py index 5f088b118..af5b03cc0 100644 --- a/lerobot/common/datasets/utils.py +++ b/lerobot/common/datasets/utils.py @@ -13,6 +13,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +import importlib.resources import json import logging import textwrap @@ -476,6 +477,8 @@ def create_lerobot_dataset_card( Note: If specified, license must be one of https://huggingface.co/docs/hub/repositories-licenses. """ card_tags = ["LeRobot"] + card_template_path = importlib.resources.path("lerobot.common.datasets", "card_template.md") + if tags: card_tags += tags if dataset_info: @@ -493,8 +496,9 @@ def create_lerobot_dataset_card( } ], ) + return DatasetCard.from_template( card_data=card_data, - template_path="./lerobot/common/datasets/card_template.md", + template_path=str(card_template_path), **kwargs, )