Downloads · 30 days
11
14% of all-time downloads
lcccluck/mujoco-lerobot-train
mujoco-lerobot-train is a robotics model from lcccluck. Use it for the robotics task on the model card, and read the license before you ship it in a product. It is set up for lerobot.
Downloads · 30 days
11
14% of all-time downloads
All-time downloads
76
Public
Repo size
—
Likes
1
Public
Click a slice to open those files.
.py28.7 KB · 58%
From the Hugging Face model README
Minimal MuJoCo + LeRobot pipeline for:
lerobot-dataset-vizlerobot-trainThis directory is intentionally small. All parameters are read from one file:
config.json这是一个最小化的 MuJoCo + LeRobot 工程,包含 4 步:
lerobot-dataset-viz 可视化数据lerobot-train 训练 ACT 策略整个目录尽量保持小而清晰,所有参数都只从一个文件读取:
config.jsonmujocolerobotSee:
requirements.txtmujocolerobot依赖文件见:
requirements.txtcollect_dataset.py: collect a MuJoCo pick-place dataset in LeRobot formatviz_dataset.py: open lerobot-dataset-viz for the configured datasettrain_policy.py: Python entry that reads config and launches trainingeval_policy.py: closed-loop MuJoCo evaluation using the trained policycommon.py: shared minimal implementationconfig.json: all parameterscollect_dataset.py:采集 MuJoCo 抓取放置数据,并写成 LeRobot 标准格式viz_dataset.py:调用 lerobot-dataset-viz 可视化当前数据集train_policy.py:读取配置后启动训练eval_policy.py:在 MuJoCo 中闭环评估训练好的策略common.py:公共最小实现config.json:全部参数Activate your environment first:
conda activate lerobot
cd mujoco_lerobot_train
先激活环境并进入目录:
conda activate lerobot
cd mujoco_lerobot_train
Collect dataset:
python collect_dataset.py
Visualize dataset:
python viz_dataset.py
Train with the Python entry:
python train_policy.py
Closed-loop MuJoCo evaluation:
python eval_policy.py
闭环 MuJoCo 评估:
python eval_policy.py
config.json controls:
config.json 统一控制:
Login first:
huggingface-cli login
先登录:
huggingface-cli login
Then upload this folder:
bash ./upload_to_hf.sh <user_or_org>/<repo_name>
Private repo:
HF_PRIVATE=1 bash ./upload_to_hf.sh <user_or_org>/<repo_name>
Dataset repo instead of model repo:
HF_REPO_TYPE=dataset bash ./upload_to_hf.sh <user_or_org>/<repo_name>
Ignored during upload:
outputs/__pycache__/*.pyc上传时会自动忽略:
outputs/__pycache__/*.pyc