Instructions to use adityabhaskara/decluttering_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use adityabhaskara/decluttering_model with LeRobot:
# See https://github.com/huggingface/lerobot?tab=readme-ov-file#installation for more details git clone https://github.com/huggingface/lerobot.git cd lerobot pip install -e .[smolvla]
# Launch finetuning on your dataset python lerobot/scripts/train.py \ --policy.path=adityabhaskara/decluttering_model \ --dataset.repo_id=lerobot/svla_so101_pickplace \ --batch_size=64 \ --steps=20000 \ --output_dir=outputs/train/my_smolvla \ --job_name=my_smolvla_training \ --policy.device=cuda \ --wandb.enable=true
# Run the policy using the record function python -m lerobot.record \ --robot.type=so101_follower \ --robot.port=/dev/ttyACM0 \ # <- Use your port --robot.id=my_blue_follower_arm \ # <- Use your robot id --robot.cameras="{ front: {type: opencv, index_or_path: 8, width: 640, height: 480, fps: 30}}" \ # <- Use your cameras --dataset.single_task="Grasp a lego block and put it in the bin." \ # <- Use the same task description you used in your dataset recording --dataset.repo_id=HF_USER/dataset_name \ # <- This will be the dataset name on HF Hub --dataset.episode_time_s=50 \ --dataset.num_episodes=10 \ --policy.path=adityabhaskara/decluttering_model - Notebooks
- Google Colab
- Kaggle
Upload DataProcessorPipeline
Browse files
policy_preprocessor.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "policy_preprocessor",
|
| 3 |
+
"steps": [
|
| 4 |
+
{
|
| 5 |
+
"registry_name": "rename_observations_processor",
|
| 6 |
+
"config": {
|
| 7 |
+
"rename_map": {
|
| 8 |
+
"observation.images.left_gripper": "observation.images.left_wrist",
|
| 9 |
+
"observation.images.right_gripper": "observation.images.right_wrist"
|
| 10 |
+
}
|
| 11 |
+
}
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"registry_name": "to_batch_processor",
|
| 15 |
+
"config": {}
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"registry_name": "smolvla_new_line_processor",
|
| 19 |
+
"config": {}
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"registry_name": "tokenizer_processor",
|
| 23 |
+
"config": {
|
| 24 |
+
"max_length": 48,
|
| 25 |
+
"task_key": "task",
|
| 26 |
+
"padding_side": "right",
|
| 27 |
+
"padding": "max_length",
|
| 28 |
+
"truncation": true,
|
| 29 |
+
"tokenizer_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct"
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"registry_name": "device_processor",
|
| 34 |
+
"config": {
|
| 35 |
+
"device": "cuda",
|
| 36 |
+
"float_dtype": null
|
| 37 |
+
}
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"registry_name": "normalizer_processor",
|
| 41 |
+
"config": {
|
| 42 |
+
"eps": 1e-08,
|
| 43 |
+
"features": {
|
| 44 |
+
"observation.state": {
|
| 45 |
+
"type": "STATE",
|
| 46 |
+
"shape": [
|
| 47 |
+
12
|
| 48 |
+
]
|
| 49 |
+
},
|
| 50 |
+
"observation.images.top": {
|
| 51 |
+
"type": "VISUAL",
|
| 52 |
+
"shape": [
|
| 53 |
+
3,
|
| 54 |
+
480,
|
| 55 |
+
640
|
| 56 |
+
]
|
| 57 |
+
},
|
| 58 |
+
"observation.images.left_gripper": {
|
| 59 |
+
"type": "VISUAL",
|
| 60 |
+
"shape": [
|
| 61 |
+
3,
|
| 62 |
+
480,
|
| 63 |
+
640
|
| 64 |
+
]
|
| 65 |
+
},
|
| 66 |
+
"observation.images.right_gripper": {
|
| 67 |
+
"type": "VISUAL",
|
| 68 |
+
"shape": [
|
| 69 |
+
3,
|
| 70 |
+
480,
|
| 71 |
+
640
|
| 72 |
+
]
|
| 73 |
+
},
|
| 74 |
+
"action": {
|
| 75 |
+
"type": "ACTION",
|
| 76 |
+
"shape": [
|
| 77 |
+
12
|
| 78 |
+
]
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
"norm_map": {
|
| 82 |
+
"VISUAL": "IDENTITY",
|
| 83 |
+
"STATE": "MEAN_STD",
|
| 84 |
+
"ACTION": "MEAN_STD"
|
| 85 |
+
}
|
| 86 |
+
},
|
| 87 |
+
"state_file": "policy_preprocessor_step_5_normalizer_processor.safetensors"
|
| 88 |
+
}
|
| 89 |
+
]
|
| 90 |
+
}
|
policy_preprocessor_step_5_normalizer_processor.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0758412072403d1907c36315fa2d8437dbbc08f2ed3a1619c8f539c98ed1f45a
|
| 3 |
+
size 9184
|