Instructions to use arshjeevs/lora-policy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use arshjeevs/lora-policy 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=arshjeevs/lora-policy \ --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=arshjeevs/lora-policy - Notebooks
- Google Colab
- Kaggle
Upload model card and train config
Browse files- README.md +2 -3
- config.json +4 -12
- train_config.json +6 -14
README.md
CHANGED
|
@@ -56,9 +56,8 @@ The policy consumes these observation features and produces these action feature
|
|
| 56 |
| Feature | Type | Shape |
|
| 57 |
| --- | --- | --- |
|
| 58 |
| `observation.state` | STATE | `(6,)` |
|
| 59 |
-
| `observation.images.camera1` | VISUAL | `(3,
|
| 60 |
-
| `observation.images.camera2` | VISUAL | `(3,
|
| 61 |
-
| `observation.images.camera3` | VISUAL | `(3, 256, 256)` |
|
| 62 |
|
| 63 |
**Outputs**
|
| 64 |
|
|
|
|
| 56 |
| Feature | Type | Shape |
|
| 57 |
| --- | --- | --- |
|
| 58 |
| `observation.state` | STATE | `(6,)` |
|
| 59 |
+
| `observation.images.camera1` | VISUAL | `(3, 480, 640)` |
|
| 60 |
+
| `observation.images.camera2` | VISUAL | `(3, 480, 640)` |
|
|
|
|
| 61 |
|
| 62 |
**Outputs**
|
| 63 |
|
config.json
CHANGED
|
@@ -12,24 +12,16 @@
|
|
| 12 |
"type": "VISUAL",
|
| 13 |
"shape": [
|
| 14 |
3,
|
| 15 |
-
|
| 16 |
-
|
| 17 |
]
|
| 18 |
},
|
| 19 |
"observation.images.camera2": {
|
| 20 |
"type": "VISUAL",
|
| 21 |
"shape": [
|
| 22 |
3,
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
]
|
| 26 |
-
},
|
| 27 |
-
"observation.images.camera3": {
|
| 28 |
-
"type": "VISUAL",
|
| 29 |
-
"shape": [
|
| 30 |
-
3,
|
| 31 |
-
256,
|
| 32 |
-
256
|
| 33 |
]
|
| 34 |
}
|
| 35 |
},
|
|
|
|
| 12 |
"type": "VISUAL",
|
| 13 |
"shape": [
|
| 14 |
3,
|
| 15 |
+
480,
|
| 16 |
+
640
|
| 17 |
]
|
| 18 |
},
|
| 19 |
"observation.images.camera2": {
|
| 20 |
"type": "VISUAL",
|
| 21 |
"shape": [
|
| 22 |
3,
|
| 23 |
+
480,
|
| 24 |
+
640
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
]
|
| 26 |
}
|
| 27 |
},
|
train_config.json
CHANGED
|
@@ -99,24 +99,16 @@
|
|
| 99 |
"type": "VISUAL",
|
| 100 |
"shape": [
|
| 101 |
3,
|
| 102 |
-
|
| 103 |
-
|
| 104 |
]
|
| 105 |
},
|
| 106 |
"observation.images.camera2": {
|
| 107 |
"type": "VISUAL",
|
| 108 |
"shape": [
|
| 109 |
3,
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
]
|
| 113 |
-
},
|
| 114 |
-
"observation.images.camera3": {
|
| 115 |
-
"type": "VISUAL",
|
| 116 |
-
"shape": [
|
| 117 |
-
3,
|
| 118 |
-
256,
|
| 119 |
-
256
|
| 120 |
]
|
| 121 |
}
|
| 122 |
},
|
|
@@ -188,8 +180,8 @@
|
|
| 188 |
"compile_mode": "max-autotune"
|
| 189 |
},
|
| 190 |
"reward_model": null,
|
| 191 |
-
"output_dir": "outputs\\
|
| 192 |
-
"job_name": "
|
| 193 |
"resume": false,
|
| 194 |
"seed": 1000,
|
| 195 |
"cudnn_deterministic": false,
|
|
|
|
| 99 |
"type": "VISUAL",
|
| 100 |
"shape": [
|
| 101 |
3,
|
| 102 |
+
480,
|
| 103 |
+
640
|
| 104 |
]
|
| 105 |
},
|
| 106 |
"observation.images.camera2": {
|
| 107 |
"type": "VISUAL",
|
| 108 |
"shape": [
|
| 109 |
3,
|
| 110 |
+
480,
|
| 111 |
+
640
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
]
|
| 113 |
}
|
| 114 |
},
|
|
|
|
| 180 |
"compile_mode": "max-autotune"
|
| 181 |
},
|
| 182 |
"reward_model": null,
|
| 183 |
+
"output_dir": "outputs\\smolvla_lora_2cam",
|
| 184 |
+
"job_name": "smolvla_lora_2cam",
|
| 185 |
"resume": false,
|
| 186 |
"seed": 1000,
|
| 187 |
"cudnn_deterministic": false,
|