Add dataset card for M2Tok data
#1
by nielsr HF Staff - opened
README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
task_categories:
|
| 3 |
+
- robotics
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# M2Tok Data
|
| 7 |
+
|
| 8 |
+
This repository contains the preprocessed action dataset used in [M2Tok: Multi-head Multi-codebook Discrete Action Tokenization for Vision-Language-Action Models](https://huggingface.co/papers/2609.18259).
|
| 9 |
+
|
| 10 |
+
Code: https://github.com/cpaaax/M2Tok
|
| 11 |
+
|
| 12 |
+
## Dataset Preparation
|
| 13 |
+
|
| 14 |
+
Download `RoboTwin_actions_chunk_8.pkl` from this repository and place it under your data directory. Ensure the `train_data_path` in `action_tokenizer/pretrain_config_epoch200.yaml` is set correctly.
|
| 15 |
+
|
| 16 |
+
## Sample Usage
|
| 17 |
+
|
| 18 |
+
Train the action tokenizer using an 8-GPU distributed setup via `torchrun`:
|
| 19 |
+
|
| 20 |
+
```bash
|
| 21 |
+
cd src/action_tokenizer
|
| 22 |
+
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 torchrun --nproc_per_node=8 pretrain_vqvae.py config=pretrain_config_epoch200.yaml
|
| 23 |
+
```
|