Skip to content

Commit bc0db8d

Browse files
committed
add missing file: process_data.py; clean files in act-plus-plus
1 parent a1e208b commit bc0db8d

29 files changed

Lines changed: 116 additions & 4852 deletions

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ data/
5050
.debug.log
5151
*.run
5252
self-scripts/
53-
re3sim/gaussian_splatting/utils/campose2img.py
53+
re3sim/gaussian_splatting/utils/campose2img.py
54+
policies/act_plus_plus/lmdb_data/

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,15 @@ torchrun --nproc_per_node=8 --node_rank=1 --nnodes=2 --master_addr=<master ip> -
191191
```
192192

193193
#### Example
194-
We provide the data of `pick a bottle` task [here](https://huggingface.co/datasets/RE3SIM/act-dataset). And we show how to train the policy with our data. Please download the dataset and place them in `clean/policies/act_plus_plus/lmdb_data`
194+
We provide the data of `pick a bottle` task [here](https://huggingface.co/datasets/RE3SIM/act-dataset). And we show how to train the policy with our data. Please download the dataset and place them in `policies/act_plus_plus/lmdb_data`
195195
```shell
196-
python process_data.py --source-path /path/to/act_plus_plus/lmdb_data/pick_one --output-path /path/to/act_plus_plus/data/pick_one
196+
# in policies/act_plus_plus
197+
export PYTHONPATH=$PYTHONPATH:$(pwd)
198+
python process_data.py --source-path lmdb_data/pick_one --output-path data/pick_one --file-name _keys.json
197199
# The configs are in `constants.py` and `conf/pick_one_into_basket.yaml`
198200
torchrun --nproc_per_node=8 --master_port=12314 imitate_episodes_cosine.py --config-path=conf --config-name=pick_one_into_basket hydra.job.chdir=True params.num_epochs=24 params.seed=100
199201
```
202+
Note: The data paths are jointly indexed through `constants.py` and `conf/*.yaml`. For custom datasets, you need to add a task in `constants.py` (new element of the `SIM_TASK_CONFIGS` dictionary) and create a yaml file where the `params.task_name` matches the key in `constants.py`.
200203

201204
## 📝 TODO List
202205

policies/act_plus_plus/align.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

policies/act_plus_plus/clean_ckpt.py

Lines changed: 0 additions & 76 deletions
This file was deleted.

policies/act_plus_plus/compress_data.py

Lines changed: 0 additions & 213 deletions
This file was deleted.

0 commit comments

Comments
 (0)