Upload policy weights, train config and readme
Browse files- README.md +62 -0
- config.json +2 -2
- train_config.json +4 -4
README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
datasets: kodate/record-all-5-fix
|
| 3 |
+
library_name: lerobot
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
model_name: act
|
| 6 |
+
pipeline_tag: robotics
|
| 7 |
+
tags:
|
| 8 |
+
- lerobot
|
| 9 |
+
- robotics
|
| 10 |
+
- act
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Model Card for act
|
| 14 |
+
|
| 15 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
[Action Chunking with Transformers (ACT)](https://huggingface.co/papers/2304.13705) is an imitation-learning method that predicts short action chunks instead of single steps. It learns from teleoperated data and often achieves high success rates.
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
|
| 22 |
+
See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
|
| 23 |
+
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
## How to Get Started with the Model
|
| 27 |
+
|
| 28 |
+
For a complete walkthrough, see the [training guide](https://huggingface.co/docs/lerobot/il_robots#train-a-policy).
|
| 29 |
+
Below is the short version on how to train and run inference/eval:
|
| 30 |
+
|
| 31 |
+
### Train from scratch
|
| 32 |
+
|
| 33 |
+
```bash
|
| 34 |
+
lerobot-train \
|
| 35 |
+
--dataset.repo_id=${HF_USER}/<dataset> \
|
| 36 |
+
--policy.type=act \
|
| 37 |
+
--output_dir=outputs/train/<desired_policy_repo_id> \
|
| 38 |
+
--job_name=lerobot_training \
|
| 39 |
+
--policy.device=cuda \
|
| 40 |
+
--policy.repo_id=${HF_USER}/<desired_policy_repo_id>
|
| 41 |
+
--wandb.enable=true
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
_Writes checkpoints to `outputs/train/<desired_policy_repo_id>/checkpoints/`._
|
| 45 |
+
|
| 46 |
+
### Evaluate the policy/run inference
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
lerobot-record \
|
| 50 |
+
--robot.type=so100_follower \
|
| 51 |
+
--dataset.repo_id=<hf_user>/eval_<dataset> \
|
| 52 |
+
--policy.path=<hf_user>/<desired_policy_repo_id> \
|
| 53 |
+
--episodes=10
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a local or hub checkpoint.
|
| 57 |
+
|
| 58 |
+
---
|
| 59 |
+
|
| 60 |
+
## Model Details
|
| 61 |
+
|
| 62 |
+
- **License:** apache-2.0
|
config.json
CHANGED
|
@@ -40,7 +40,7 @@
|
|
| 40 |
"private": null,
|
| 41 |
"tags": null,
|
| 42 |
"license": null,
|
| 43 |
-
"pretrained_path":
|
| 44 |
"chunk_size": 100,
|
| 45 |
"n_action_steps": 100,
|
| 46 |
"normalization_mapping": {
|
|
@@ -50,7 +50,7 @@
|
|
| 50 |
},
|
| 51 |
"vision_backbone": "resnet18",
|
| 52 |
"pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
|
| 53 |
-
"replace_final_stride_with_dilation":
|
| 54 |
"pre_norm": false,
|
| 55 |
"dim_model": 512,
|
| 56 |
"n_heads": 8,
|
|
|
|
| 40 |
"private": null,
|
| 41 |
"tags": null,
|
| 42 |
"license": null,
|
| 43 |
+
"pretrained_path": "outputs/train/gpu_class_test1/checkpoints/last/pretrained_model",
|
| 44 |
"chunk_size": 100,
|
| 45 |
"n_action_steps": 100,
|
| 46 |
"normalization_mapping": {
|
|
|
|
| 50 |
},
|
| 51 |
"vision_backbone": "resnet18",
|
| 52 |
"pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
|
| 53 |
+
"replace_final_stride_with_dilation": 0,
|
| 54 |
"pre_norm": false,
|
| 55 |
"dim_model": 512,
|
| 56 |
"n_heads": 8,
|
train_config.json
CHANGED
|
@@ -122,7 +122,7 @@
|
|
| 122 |
"private": null,
|
| 123 |
"tags": null,
|
| 124 |
"license": null,
|
| 125 |
-
"pretrained_path":
|
| 126 |
"chunk_size": 100,
|
| 127 |
"n_action_steps": 100,
|
| 128 |
"normalization_mapping": {
|
|
@@ -132,7 +132,7 @@
|
|
| 132 |
},
|
| 133 |
"vision_backbone": "resnet18",
|
| 134 |
"pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
|
| 135 |
-
"replace_final_stride_with_dilation":
|
| 136 |
"pre_norm": false,
|
| 137 |
"dim_model": 512,
|
| 138 |
"n_heads": 8,
|
|
@@ -152,7 +152,7 @@
|
|
| 152 |
},
|
| 153 |
"output_dir": "outputs/train/gpu_class_test1",
|
| 154 |
"job_name": "gpu_class_test1",
|
| 155 |
-
"resume":
|
| 156 |
"seed": 1000,
|
| 157 |
"num_workers": 4,
|
| 158 |
"batch_size": 8,
|
|
@@ -188,6 +188,6 @@
|
|
| 188 |
"run_id": null,
|
| 189 |
"mode": null
|
| 190 |
},
|
| 191 |
-
"checkpoint_path":
|
| 192 |
"rename_map": {}
|
| 193 |
}
|
|
|
|
| 122 |
"private": null,
|
| 123 |
"tags": null,
|
| 124 |
"license": null,
|
| 125 |
+
"pretrained_path": "outputs/train/gpu_class_test1/checkpoints/last/pretrained_model",
|
| 126 |
"chunk_size": 100,
|
| 127 |
"n_action_steps": 100,
|
| 128 |
"normalization_mapping": {
|
|
|
|
| 132 |
},
|
| 133 |
"vision_backbone": "resnet18",
|
| 134 |
"pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
|
| 135 |
+
"replace_final_stride_with_dilation": 0,
|
| 136 |
"pre_norm": false,
|
| 137 |
"dim_model": 512,
|
| 138 |
"n_heads": 8,
|
|
|
|
| 152 |
},
|
| 153 |
"output_dir": "outputs/train/gpu_class_test1",
|
| 154 |
"job_name": "gpu_class_test1",
|
| 155 |
+
"resume": true,
|
| 156 |
"seed": 1000,
|
| 157 |
"num_workers": 4,
|
| 158 |
"batch_size": 8,
|
|
|
|
| 188 |
"run_id": null,
|
| 189 |
"mode": null
|
| 190 |
},
|
| 191 |
+
"checkpoint_path": "outputs/train/gpu_class_test1/checkpoints/last",
|
| 192 |
"rename_map": {}
|
| 193 |
}
|