Instructions to use Fransece/diffusion_orange_cube_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use Fransece/diffusion_orange_cube_v1 with LeRobot:
- Notebooks
- Google Colab
- Kaggle
Upload policy weights, train config and readme
Browse files- README.md +62 -0
- model.safetensors +1 -1
- train_config.json +3 -3
README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
datasets: Fransece/franka_orange_cube_full
|
| 3 |
+
library_name: lerobot
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
model_name: diffusion
|
| 6 |
+
pipeline_tag: robotics
|
| 7 |
+
tags:
|
| 8 |
+
- lerobot
|
| 9 |
+
- diffusion
|
| 10 |
+
- robotics
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Model Card for diffusion
|
| 14 |
+
|
| 15 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
[Diffusion Policy](https://huggingface.co/papers/2303.04137) treats visuomotor control as a generative diffusion process, producing smooth, multi-step action trajectories that excel at contact-rich manipulation.
|
| 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
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1072124188
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a6a3e854e1405ebee7bc04d245b04565750d2957bb6b97698877d7326f3acf0
|
| 3 |
size 1072124188
|
train_config.json
CHANGED
|
@@ -124,7 +124,7 @@
|
|
| 124 |
"private": null,
|
| 125 |
"tags": null,
|
| 126 |
"license": null,
|
| 127 |
-
"pretrained_path":
|
| 128 |
"horizon": 16,
|
| 129 |
"n_action_steps": 8,
|
| 130 |
"normalization_mapping": {
|
|
@@ -175,7 +175,7 @@
|
|
| 175 |
},
|
| 176 |
"output_dir": "outputs/train/diffusion_orange_cube_v1",
|
| 177 |
"job_name": "diffusion_orange_cube_v1",
|
| 178 |
-
"resume":
|
| 179 |
"seed": 1000,
|
| 180 |
"cudnn_deterministic": false,
|
| 181 |
"num_workers": 4,
|
|
@@ -227,5 +227,5 @@
|
|
| 227 |
"rabc_epsilon": 1e-06,
|
| 228 |
"rabc_head_mode": "sparse",
|
| 229 |
"rename_map": {},
|
| 230 |
-
"checkpoint_path":
|
| 231 |
}
|
|
|
|
| 124 |
"private": null,
|
| 125 |
"tags": null,
|
| 126 |
"license": null,
|
| 127 |
+
"pretrained_path": "outputs/train/diffusion_orange_cube_v1/checkpoints/last/pretrained_model",
|
| 128 |
"horizon": 16,
|
| 129 |
"n_action_steps": 8,
|
| 130 |
"normalization_mapping": {
|
|
|
|
| 175 |
},
|
| 176 |
"output_dir": "outputs/train/diffusion_orange_cube_v1",
|
| 177 |
"job_name": "diffusion_orange_cube_v1",
|
| 178 |
+
"resume": true,
|
| 179 |
"seed": 1000,
|
| 180 |
"cudnn_deterministic": false,
|
| 181 |
"num_workers": 4,
|
|
|
|
| 227 |
"rabc_epsilon": 1e-06,
|
| 228 |
"rabc_head_mode": "sparse",
|
| 229 |
"rename_map": {},
|
| 230 |
+
"checkpoint_path": "outputs/train/diffusion_orange_cube_v1/checkpoints/last"
|
| 231 |
}
|