GR00T 跨形态机器人策略模型

GR00T 是 NVIDIA 面向通用人形机器人推理与技能的基础模型家族,作为跨形态策略接受语言、图像和本体感知等多模态输入执行操作任务。LeRobot 通过 groot 策略类型集成 GR00T N1.7,并提供 SimplerEnv、DROID 和 LIBERO 的检查点。

# GR00T 政策 GR00T是通用人造机器人推理和技能的NVIDIA基础模型家族,是一种接受包括语言,图像,自主等多种模式输入的交叉化政策,用于在多样的环境中执行操纵任务. LeRobot 集成 GR00T N1 7通过. `groot` 政策类型。 > [!WARNING] > **中断更改 :** GR00T N1 5支持被从LeRobot中移除,当前发布支持GR00T N1 7只. N1 5 检查点和配置被用移民通知书拒绝. 继续使用N1 5 检查点,将支持它的最后一次发布点标为: `pip install 'lerobot==0.5.1'`. 要使用当前发布,请迁移到 GR00T N1 7 (基准模型) [`nvidia/GR00T-N1.7-3B`](https://huggingface.co/nvidia/GR00T-N1.7-3B)). ## 模型概览 GR00T N1 7使用Cosmos-Reason2/Qwen3-VL骨干,并为SimplerEnv,DROID和LIBERO提供检查站. 开发者和研究人员可以用他们自己的真数据或合成数据来进行GR00T后训练,以适应特定的人造机器人或任务. GR00T使用预训的视觉和语言编码器,并配有流匹配动作变压器,以模型化以视觉,语言,自主为条件的一整块动作. < img 语句 src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/lerobot/lerobot-groot-paper1%20(1). png" (中文(简体) ). alt="GR00T概况". 宽=“80%” /> 其强效表现来自于接受关于一个广泛和多样的人类类数据集的培训,其中包括: - 真正的俘获数据来自机器人。 - 使用NVIDIA Isaac GR00T蓝本生成的合成数据. - 互联网规模视频数据. 这种方法使得该模式能够通过针对具体表现、任务和环境的后期培训而高度适应性。 ## 安装要求 GR00T用于NVIDIA GPU加速系统. 安裝LeRobot 附加GR00T: ```bash pip install "lerobot[groot]" ``` 用于源检出 : ```bash pip install -e ".[groot]" ``` ## 使用量 使用 GR00T N1 7 : ```bash --policy.type=groot ``` ## 培训 ### 训练命令示例 这里有一个完整的训练命令,用于在您自己的数据集上微调基础的GR00T模型: 此命令是使用 `new_embodiment` 旗,用于SO-101机器人, [阅读更多关于GR00T如何处理不同的浮雕.](https://github.com/NVIDIA/Isaac-GR00T/blob/main/getting_started/policy.md#--embodiment-tag). ```bash # install extra deps for training pip install "lerobot[training]" hf auth login # Trackio needs no login for local runs; pass --trackio.space_id=<user>/<space> to sync runs to a Hugging Face Space. export DATASET_NAME=your_data_set export HF_USER=your_hf_username export DATASET=$HF_USER/$DATASET_NAME export REPO_ID="${DATASET}_GR00T17" #this is the model that will be uploaded to huggingface export OUTPUT_DIR=outputs/train/$REPO_ID lerobot-train \ --dataset.repo_id=$DATASET \ --dataset.image_transforms.enable=true \ --policy.type=groot \ --policy.device=cuda \ --policy.base_model_path=nvidia/GR00T-N1.7-3B \ --policy.embodiment_tag=new_embodiment \ --policy.chunk_size=16 \ --policy.n_action_steps=16 \ --policy.use_relative_actions=true \ --policy.relative_exclude_joints='["gripper"]' \ --policy.use_bf16=true \ --policy.push_to_hub=true \ --policy.repo_id=$REPO_ID \ --seed=42 \ --batch_size=64 \ --steps=20000 \ --save_checkpoint=true \ --save_freq=5000 \ --use_policy_training_preset=true \ --env_eval_freq=0 \ --eval_steps=0 \ --log_freq=10 \ --output_dir=$OUTPUT_DIR \ --job_name=$DATASET \ --trackio.enable=true \ --trackio.disable_artifact=true ``` ## 实绩 ### LIBERO 基准结果 > [!NOTE] > 跟着 [LIBERO](<https://github.com/huggingface/lerobot/blob/HEAD/docs/source/libero>) 运行前设置指令 `lerobot-eval`. GR00T N1 7在LIBERO基准套件上表现出了强效的性能. 要复制LeRobot结果,请遵循该套件中的指示. [LIBERO](<https://github.com/huggingface/lerobot/blob/HEAD/docs/source/libero>) 节。 ### LIBERO型列车 LIBERO套件的示例培训命令(此处) `libero_spatial`): ```bash IMAGE_TRANSFORMS='{ "brightness": {"weight": 1.0, "type": "ColorJitter", "kwargs": {"brightness": [0.7, 1.3]}}, "contrast": {"weight": 1.0, "type": "ColorJitter", "kwargs": {"contrast": [0.6, 1.4]}}, "saturation": {"weight": 1.0, "type": "ColorJitter", "kwargs": {"saturation": [0.5, 1.5]}}, "hue": {"weight": 1.0, "type": "ColorJitter", "kwargs": {"hue": [-0.08, 0.08]}} }' lerobot-train \ --dataset.repo_id=IPEC-COMMUNITY/libero_spatial_no_noops_1.0.0_lerobot \ --dataset.root=/datasets/libero_spatial \ --dataset.revision=main \ --dataset.video_backend=pyav \ --dataset.image_transforms.enable=true \ --dataset.image_transforms.max_num_transforms=4 \ --dataset.image_transforms.tfs="$IMAGE_TRANSFORMS" \ --policy.type=groot \ --policy.base_model_path=nvidia/GR00T-N1.7-3B \ --policy.embodiment_tag=libero_sim \ --policy.push_to_hub=false \ --policy.use_relative_actions=false \ --policy.max_steps=20000 \ --batch_size=320 \ --steps=20000 \ --save_freq=2000 \ --env_eval_freq=0 \ --eval_steps=0 \ --log_freq=10 \ --trackio.enable=true \ --trackio.project=lerobot \ --trackio.disable_artifact=true \ --num_workers=4 \ --prefetch_factor=2 \ --persistent_workers=true \ --output_dir=$OUTPUT_DIR \ --job_name=$JOB_NAME ``` 这会跟随发现的食谱 [这儿](https://github.com/NVIDIA/Isaac-GR00T/blob/main/examples/LIBERO/README.md). ### GR00T N1 7 LIBERO 结果. 初步LeRobot集成结果(GR00T-LeRobot , `eval.n_episodes >= 50` 每个套房: | 套间 | 成功率 | 检查站 | | ---------------- | -----------: | ------------------------------------------------------------------------------------------------------------- | | LIBERO 空间 | 95% | [nvidia/gr00t17-lerobot-libero_spatial-640](https://huggingface.co/nvidia/gr00t17-lerobot-libero_spatial-640) | | LIBERO 对象 | 100% | [nvidia/gr00t17-lerobot-libero_object-640](https://huggingface.co/nvidia/gr00t17-lerobot-libero_object-640) | | LIBERO 目标 | 98% | [nvidia/gr00t17-lerobot-libero_goal-640](https://huggingface.co/nvidia/gr00t17-lerobot-libero_goal-640) | | LIBERO 10 (长) | 93% | [nvidia/gr00t17-lerobot-libero_10-640](https://huggingface.co/nvidia/gr00t17-lerobot-libero_10-640) | | **平均数** | **96.5%** | | ```bash export MODEL_ID=your_trained_model_on_huggingface lerobot-eval \ --policy.path=$MODEL_ID \ --policy.embodiment_tag=libero_sim \ --env.type=libero \ --env.task=libero_spatial \ --eval.n_episodes=50 ``` 使用( U) `eval.n_episodes >= 50` 每套报告成功率时。 ### 在您的硬件设置中进行评估 使用参数训练模型后,您就可以在下游任务中进行推断。 [政策部署(灵活推出)](<https://github.com/huggingface/lerobot/blob/HEAD/docs/source/inference>)。例如: ```bash # install extra deps for roullout and real hardware pip install "lerobot[feetech,viz]" export MODEL_ID=your_trained_model_on_huggingface # make sure that camera index matches your setup! # find index using `uv run lerobot-find-cameras opencv` WRIST_CAM='wrist: {type: opencv, index_or_path: 2, width: 640, height: 480, fps: 30, fourcc: "MJPG"}' FRONT_CAM='front: {type: opencv, index_or_path: 0, width: 640, height: 480, fps: 30, fourcc: "MJPG"}' export ROBOT_CAMERAS="{ $WRIST_CAM, $FRONT_CAM }" export ROBOT_ID=follower_robot export ROBOT_PORT=/dev/ttyACM0 # Set --inference.rtc.enabled=False if RTC causes inference instability uv run lerobot-rollout \ --strategy.type=base \ --policy.path=$MODEL_ID \ --policy.base_model_path=nvidia/GR00T-N1.7-3B \ --policy.n_action_steps=8 \ --robot.type=so101_follower \ --robot.port=$ROBOT_PORT \ --robot.id=$ROBOT_ID \ --robot.cameras="$ROBOT_CAMERAS" \ --task="place the vial in the rack" \ --duration=60 \ --device=cuda \ --display_data=true \ --inference.type=rtc \ --inference.rtc.enabled=True \ --inference.rtc.execution_horizon=8 \ --inference.queue_threshold=0 ``` > [!NOTE] > 价值 `inference.queue_threshold` 不应超过5,以确保稳定的推论. ## 许可证 GR00T N1 7 发布于该版本下. [NVIDIA 开放型号许可协议](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/).

查看原始来源