zavierand commited on
Commit
34f865f
·
verified ·
1 Parent(s): ebde64e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +149 -0
README.md ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ pretty_name: CAPs (Contact-Anchored Policies) Dataset
6
+ tasks:
7
+ - Pick
8
+ - Open
9
+ - Close
10
+ tags:
11
+ - behavior-cloning
12
+ - bc
13
+ - robotics
14
+ - behavior-transformers
15
+ - manipulation
16
+ - imitation-learning
17
+ - egocentric-video
18
+ - contact-rich
19
+ - pick
20
+ - open
21
+ - close
22
+ type:
23
+ - dataset
24
+ size_categories:
25
+ - 10K<n<100K
26
+ ---
27
+
28
+ # Contact-Anchored Policies: Contact Conditioning Creates Strong Robot Utility Models - Dataset
29
+
30
+ Zichen Jeff Cui<sup>1</sup>, Omar Rayyan<sup>3</sup>, Haritheja Etukuru<sup>2</sup>, Bowen Tan<sup>1</sup>, Zavier Andrianarivo<sup>1</sup>, Zicheng Teng<sup>1</sup>, Yihang Zhou<sup>1</sup>, Krish Mehta<sup>6</sup>, Nicholas Wojno<sup>1</sup>, Kevin Yuanbo Wu<sup>1</sup>, Manan H. Anjaria<sup>1</sup>, Ziyuan Wu<sup>1</sup>, Manrong Mao<sup>1</sup>, Guangxun Zhang<sup>1</sup>, Binit Shah<sup>4</sup>, Yejin Kim<sup>5</sup>, Soumith Chintala<sup>1</sup>, Lerrel Pinto<sup>1</sup>, and Nur Muhammad Mahi Shafiullah<sup>2</sup>
31
+
32
+ <sup>1</sup> New York University, <sup>2</sup> UC Berkeley, <sup>3</sup> UCLA, <sup>4</sup> Hello Robot Inc., <sup>5</sup> Ai2, <sup>6</sup> University of Waterloo
33
+
34
+ This is the official CAPs dataset used to train CAPs policies. It is released under the MIT license.
35
+
36
+ ## Overview of Dataset
37
+
38
+ The [root of the dataset](./) contains the raw dataset used for training as well as a soon-to-be-released *LeRobot* format of the dataset. The [raw dataset](./dataset_raw) contains the three tasks trained in the paper — [Pick](./dataset_raw/Pick), [Open](./dataset_raw/Open), and [Close](./dataset_raw/Close).
39
+
40
+ Each task contains the following trajectories:
41
+
42
+ | | Pick | Open | Close |
43
+ | -------- | ------- | ------ | ------ |
44
+ | Trajs | 14,606 | 7,380 | 4,152 |
45
+
46
+ In total, there are 26,138 trajectories totaling ~23 hours of human-collected data.
47
+
48
+ ### Dataset Structure
49
+
50
+ Each task (`Pick`, `Open`, `Close`) follows the same layout:
51
+
52
+ ```
53
+ <Task>/
54
+ └── home_xx/ # anonymized home ID (may include _flipped)
55
+ └── <env>/ # environment (e.g. Env1, lemon-pickup-x169)
56
+ └── <timestamp>/ # demonstration timestamp
57
+ ├── compressed_video_h264.mp4
58
+ └── labels.json
59
+ ```
60
+
61
+ And at the dataset root:
62
+
63
+ ```
64
+ dataset_raw/
65
+ ├── Pick/
66
+ ├── Open/
67
+ └── Close/
68
+ ```
69
+
70
+ **Collecting Your Own Data:**
71
+ To collect your own data, the [STL files](https://nyu-gripper.pages.dev/) for our handheld-collection grippers have also been open-sourced and released in an effort to further robot-learning research. Collecting your own data is as simple as collecting with the [AnySense app](https://apps.apple.com/in/app/anysense/id6742254654) and storing your data in the format structure provided above.
72
+
73
+ ## Download the Dataset
74
+
75
+ To download the dataset, you can use GitHub's `clone` command to download the dataset into a directory of your choice:
76
+
77
+ ```
78
+ # clone entire repo
79
+ mkdir path/to/store/dataset && cd path/to/store/dataset
80
+ git clone https://huggingface.co/datasets/zavierand/CAPs
81
+ ```
82
+
83
+ This should take ~ 40 minutes to clone.
84
+
85
+ ## Installation (Raw Dataset)
86
+
87
+ ### 1. Get Conda/Mamba Running
88
+
89
+ From the [CAPs docs](https://cap-policy.gitbook.io/guide), clone the [repo](https://github.com/jeffacce/cap-policy), `cd` into the project directory, and install the conda environment `home_robot`.
90
+
91
+ ```
92
+ git clone https://github.com/jeffacce/cap-policy
93
+ cd cap-policy
94
+
95
+ conda env create -f conda_env.yaml
96
+
97
+ conda activate home_robot
98
+
99
+ # optionally, mamba is supported as well
100
+ # mamba env create -f conda_env.yaml
101
+ # mamba activate home_robot
102
+ ```
103
+
104
+ ### 2. Set Environment Variables
105
+
106
+ From the project root, run `setup.sh` to configure environment variables:
107
+
108
+ ```
109
+ # in cap-policy
110
+
111
+ ./setup.sh
112
+ ```
113
+
114
+ ### 3. Set Dataset Paths
115
+
116
+ After installing the `home_robot` environment and setting up your environment variables, set the `data_root.train` and `data_root.val` variables to the root path of your dataset. The environment variables config file should be at the path `cap-policy/imitation-in-homes/configs/env_vars/env_vars.yaml`.
117
+
118
+ Your `env_vars.yaml` file should look something like this after the changes:
119
+
120
+ ```
121
+ project_root: /path/to/folder/imitation-in-homes
122
+
123
+ data_root:
124
+ - train: /path/to/dataset_raw/
125
+ - val: /path/to/dataset_raw/
126
+
127
+ data_original_root:
128
+ - train: /path/to/dataset_raw/
129
+ - val: /path/to/dataset_raw/
130
+ ```
131
+
132
+ **Note**: When cloning, if the whole repo is cloned and saved under `CAPs` and you wish to train on the raw dataset, you will need to set the environment variables in `setup.sh` to the path of the `dataset_raw` directory.
133
+
134
+ ## Training
135
+
136
+ Now, you're ready to run a training job! Training documentation will be updated. Check the official [GitHub repo](https://github.com/jeffacce/cap-policy.git) for updates consistently on when training documentation will be up. An update will also be provided here once training documentation is up!
137
+
138
+ ## BibTeX
139
+
140
+ If you use our dataset, codebase, or models, please consider citing! Contributions are welcome!
141
+
142
+ ```bibtex
143
+ @article{cui2026contact,
144
+ title={Contact-Anchored Policies: Contact Conditioning Creates Strong Robot Utility Models},
145
+ author={Zichen Jeff Cui and Omar Rayyan and Haritheja Etukuru and Bowen Tan and Zavier Andrianarivo and Zicheng Teng and Yihang Zhou and Krish Mehta and Nicholas Wojno and Kevin Yuanbo Wu and Manan H Anjaria and Ziyuan Wu and Manrong Mao and Guangxun Zhang and Binit Shah and Yejin Kim and Soumith Chintala and Lerrel Pinto and Nur Muhammad Mahi Shafiullah},
146
+ journal={arXiv preprint arXiv:2602.09017},
147
+ year={2026}
148
+ }
149
+ ```