po03087 commited on
Commit
3de4238
·
verified ·
1 Parent(s): 4921388

EgoLM baseline code (Ego3DLM snapshot, unmodified) + upload notes

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitignore +35 -0
  2. HF_NOTES.md +14 -0
  3. LICENSE +21 -0
  4. README.md +151 -0
  5. configs/assets_egovlm.yaml +39 -0
  6. configs/config_h3d_stage1_pq_4096_64.yaml +73 -0
  7. configs/default_egovlm.yaml +145 -0
  8. configs/egovlm_gpt2_medium_grpo_stp2mt/from_obs_scene_cot_bs4_4.yaml +124 -0
  9. configs/egovlm_gpt2_medium_stage2_pretrain/s2t_obstacle_with_sceneqa_s4o1.yaml +95 -0
  10. configs/egovlm_gpt2_medium_stage3_stp2mt/from_s2t_obstacle_scene_s4o1_cot.yaml +120 -0
  11. configs/evaluator/tm2t.yaml +19 -0
  12. configs/lm/default.yaml +11 -0
  13. configs/lm/gpt2_medium_grpo.yaml +9 -0
  14. configs/ourfolds/assets_ext.yaml +39 -0
  15. configs/ourfolds/assets_f0.yaml +39 -0
  16. configs/ourfolds/assets_f1.yaml +39 -0
  17. configs/ourfolds/assets_f2.yaml +39 -0
  18. configs/ourfolds/assets_f3.yaml +39 -0
  19. configs/ourfolds/ego3dlm_f0.yaml +120 -0
  20. configs/ourfolds/ego3dlm_f1.yaml +120 -0
  21. configs/ourfolds/ego3dlm_f2.yaml +120 -0
  22. configs/ourfolds/ego3dlm_f3.yaml +120 -0
  23. configs/ourfolds/egolm_f0.yaml +120 -0
  24. configs/ourfolds/egolm_f1.yaml +120 -0
  25. configs/ourfolds/egolm_f2.yaml +120 -0
  26. configs/ourfolds/egolm_f3.yaml +120 -0
  27. configs/ourfolds/token_ext.yaml +120 -0
  28. configs/oursE/_subA_egolm_f0_headframe.yaml +121 -0
  29. configs/oursE/_subA_egolm_f0_native.yaml +121 -0
  30. configs/oursE/assets_f0.yaml +39 -0
  31. configs/oursE/assets_f1.yaml +39 -0
  32. configs/oursE/assets_f2.yaml +39 -0
  33. configs/oursE/assets_f3.yaml +39 -0
  34. configs/oursE/assets_subA_f0.yaml +39 -0
  35. configs/oursE/ego3dlm_f0_eval.yaml +120 -0
  36. configs/oursE/ego3dlm_f0_train.yaml +122 -0
  37. configs/oursE/ego3dlm_f1_eval.yaml +120 -0
  38. configs/oursE/ego3dlm_f1_train.yaml +122 -0
  39. configs/oursE/ego3dlm_f2_eval.yaml +120 -0
  40. configs/oursE/ego3dlm_f2_train.yaml +122 -0
  41. configs/oursE/ego3dlm_f3_eval.yaml +120 -0
  42. configs/oursE/ego3dlm_f3_train.yaml +122 -0
  43. configs/oursE/egolm_f0_eval.yaml +120 -0
  44. configs/oursE/egolm_f0_rerun_train.yaml +121 -0
  45. configs/oursE/egolm_f0_train.yaml +120 -0
  46. configs/oursE/egolm_f1_eval.yaml +120 -0
  47. configs/oursE/egolm_f1_rerun_train.yaml +121 -0
  48. configs/oursE/egolm_f1_train.yaml +120 -0
  49. configs/oursE/egolm_f2_eval.yaml +120 -0
  50. configs/oursE/egolm_f2_train.yaml +121 -0
.gitignore ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ .eggs/
6
+ build/
7
+ dist/
8
+
9
+ # Experiment outputs & logs
10
+ experiments/
11
+ logs/
12
+ *.log
13
+ wandb/
14
+ events.out.tfevents.*
15
+
16
+ # User-provided roots (symlinks; see README section 4)
17
+ /checkpoints
18
+ /datasets
19
+ /deps
20
+
21
+ # Large derived QA labels (provide separately; see README section 4)
22
+ /obstacle_labels
23
+
24
+ # Model weights / large artifacts
25
+ *.ckpt
26
+ *.tar
27
+ *.pth
28
+ *.pt
29
+
30
+ # OS junk
31
+ .DS_Store
32
+ ._*
33
+
34
+ # Smoke/test harnesses
35
+ _smoke*.py
HF_NOTES.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Notes on this upload
2
+
3
+ This is a snapshot of the Ego3DLM code (ECCV 2026; README.md is the authors' own) used for the **EgoLM**
4
+ baseline of protocol v2 (dataset: https://huggingface.co/datasets/po03087/nymeria-adt-protocol-v2, see its
5
+ `CLAUDE.md` and `PROTOCOL_v2.md`).
6
+
7
+ - The code is **unmodified**: the protocol-v2 changes to EgoLM (20 Hz motion with a retrained tokenizer, no 3D
8
+ scene, MPS device head input canonicalized by the observed head, a 44-way verb head on a placeholder token,
9
+ 8 epochs of instruction tuning from GPT-2 medium, no validation loop) are not applied yet.
10
+ - `deps/t2m/` holds the T2M evaluators and GloVe files that `prepare/download_t2m_evaluators.sh` downloads.
11
+ - **Not included:** the SMPL / SMPL-H / MANO body models (their license forbids redistribution; get them
12
+ with `prepare/download_smpl_model.sh` / `prepare/smplh.sh` or from https://smpl.is.tue.mpg.de), model
13
+ checkpoints, datasets, `obstacle_labels/`, `flan-t5-base` (download from Hugging Face), experiment outputs.
14
+ - `checkpoints/`, `datasets/` and `deps/` are expected at the repository root (the original tree used symlinks).
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2023 OpenMotionLab
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div align="center">
2
+
3
+ # Ego3DLM: Ego-Human Motion Prediction with 3D-Aware LLM
4
+
5
+ **ECCV 2026**
6
+
7
+ </div>
8
+
9
+ Ego3DLM forecasts human motion from an egocentric perspective by grounding a language
10
+ model in the **3D spatial and semantic context** of the surrounding environment. Given
11
+ three-point motion tracking (head + hands), 3D scene features, and egocentric video,
12
+ Ego3DLM **simultaneously decodes past pose, future pose, past narration, and future
13
+ narration in a single autoregressive pass**, so that predicted poses and descriptions
14
+ are grounded in one another for cross-modal and temporal consistency.
15
+
16
+ The model is trained in three stages on top of a frozen motion tokenizer:
17
+
18
+ 1. **Stage I — Spatial-Semantic Scene Awareness Pretraining.** Encode the 3D scene and
19
+ inject it into the LM, training spatial and semantic scene understanding (scene QA +
20
+ obstacle/free-space QA).
21
+ 2. **Stage II — Multi-Modal Multi-Task Instruction Tuning.** Holistically train past/future
22
+ pose tracking and prediction alongside past/future narration in a single pass.
23
+ 3. **Stage III — Multi-Modal Reward GRPO.** Reinforcement finetuning with intra- and
24
+ inter-modal rewards that directly optimize pose–language fidelity.
25
+
26
+ Experiments on the **Nymeria** benchmark show state-of-the-art performance on future pose
27
+ prediction, past motion tracking, and language description.
28
+
29
+ ## 0. News
30
+ - **2026** — Ego3DLM is accepted to **ECCV 2026**. Code released for reproducibility.
31
+
32
+ ## 1. Environment Setup
33
+ Tested with Python 3.11, CUDA 11.8, PyTorch 2.0.0, Transformers 4.46.3, PyTorch-Lightning 2.0.0.
34
+
35
+ ```bash
36
+ # create env
37
+ conda create -n ego3dlm python=3.11 -y
38
+ conda activate ego3dlm
39
+
40
+ # install pinned dependencies
41
+ pip install -r requirements-freeze.txt
42
+ ```
43
+
44
+ The repository expects three top-level symlinks pointing to your data / dependency /
45
+ checkpoint roots (see [Section 4](#4-dependencies--pretrained-models)):
46
+
47
+ ```bash
48
+ ln -s /path/to/checkpoints ./checkpoints
49
+ ln -s /path/to/datasets ./datasets
50
+ ln -s /path/to/deps ./deps
51
+ ```
52
+
53
+ The obstacle / free-space QA labels (`obstacle_labels/`, required by Stage-I pretraining and
54
+ CoT) are distributed separately — download them and place the directory at `./obstacle_labels`.
55
+
56
+ ## 2. Dataset
57
+ *(To be added.)*
58
+
59
+ ## 3. Data Preprocessing
60
+ *(To be added.)*
61
+
62
+ ## 4. Dependencies & Pretrained Models
63
+ All paths below are relative to the repository root and resolved through the
64
+ `checkpoints/`, `datasets/`, and `deps/` symlinks.
65
+
66
+ ### Required for every stage
67
+ | Artifact | Path | Notes |
68
+ |---|---|---|
69
+ | Motion PQ-VAE tokenizer | `checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt` | frozen in Stages I–III |
70
+ | SMPL body models | `deps/smpl_models/` | motion ↔ joint recovery |
71
+ | Instruction templates | `deps/mGPT_instructions/` | prompt templates (`DATASET.TASK_ROOT`) |
72
+ | Obstacle / free-space labels | `obstacle_labels/` | used by the QA pretraining + CoT |
73
+ | GPT-2 medium backbone | (auto-downloaded from Hugging Face) | LM backbone |
74
+
75
+ ### Required for evaluation
76
+ | Artifact | Path | Notes |
77
+ |---|---|---|
78
+ | Text–motion evaluator | `checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar` | matching / R-precision / FID |
79
+ | GloVe + mean/std | `deps/t2m/` | evaluator inputs |
80
+
81
+ ### Stage checkpoints (released)
82
+ | Stage | Path | Consumed by |
83
+ |---|---|---|
84
+ | Stage I (pretrain) | `checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt` | Stage II `PRETRAINED` |
85
+ | Stage II (instruction-tuned) | `checkpoints/Instruct_egovlm_stp2mt_reverse_from_s2t_obs_scene_s4o1_cot_grid64/min-ADE_head-epoch=18-step=21527.ckpt` | Stage III `PRETRAINED` + `GRPO_REF_MODEL_PATH` |
86
+
87
+ ## 5. Training & Evaluation
88
+ All stages share a single entry point, `train_egovlm_stage2.py`; the stage is selected by
89
+ the config (`TRAIN.STAGE`). The motion tokenizer (Stage 0) is a prerequisite that produces
90
+ the frozen PQ-VAE used by Stages I–III.
91
+
92
+ ### Stage 0 — Motion PQ-VAE tokenizer
93
+ ```bash
94
+ CUDA_VISIBLE_DEVICES=0 python -m train_egovlm_stage2 \
95
+ --cfg configs/config_h3d_stage1_pq_4096_64.yaml \
96
+ --nodebug
97
+ ```
98
+
99
+ ### Stage I — Spatial-Semantic Scene Awareness Pretraining
100
+ ```bash
101
+ CUDA_VISIBLE_DEVICES=0 python -m train_egovlm_stage2 \
102
+ --cfg configs/egovlm_gpt2_medium_stage2_pretrain/s2t_obstacle_with_sceneqa_s4o1.yaml \
103
+ --nodebug
104
+ ```
105
+
106
+ ### Stage II — Multi-Modal Multi-Task Instruction Tuning
107
+ ```bash
108
+ CUDA_VISIBLE_DEVICES=0 python -m train_egovlm_stage2 \
109
+ --cfg configs/egovlm_gpt2_medium_stage3_stp2mt/from_s2t_obstacle_scene_s4o1_cot.yaml \
110
+ --nodebug
111
+ ```
112
+
113
+ ### Stage III — Multi-Modal Reward GRPO
114
+ ```bash
115
+ CUDA_VISIBLE_DEVICES=0,1 python -m train_egovlm_stage2 \
116
+ --cfg configs/egovlm_gpt2_medium_grpo_stp2mt/from_obs_scene_cot_bs4_4.yaml \
117
+ --nodebug
118
+ ```
119
+
120
+ ### Evaluation
121
+ Evaluation reuses the same per-stage config and entry point `validate_egovlm_stage2.py`.
122
+ The checkpoint to evaluate is the one set in `TRAIN.PRETRAINED` of the stage config
123
+ (`validate_egovlm_stage2.py` loads `TRAIN.PRETRAINED` and runs `trainer.validate`).
124
+ So, to evaluate a trained model, point `TRAIN.PRETRAINED` at that checkpoint and run:
125
+
126
+ ```bash
127
+ # Stage I (pretrain) — scene / obstacle QA metrics
128
+ CUDA_VISIBLE_DEVICES=0 python -m validate_egovlm_stage2 \
129
+ --cfg configs/egovlm_gpt2_medium_stage2_pretrain/s2t_obstacle_with_sceneqa_s4o1.yaml --nodebug
130
+
131
+ # Stage II (instruction-tuned) — 4-task pose / language metrics
132
+ CUDA_VISIBLE_DEVICES=0 python -m validate_egovlm_stage2 \
133
+ --cfg configs/egovlm_gpt2_medium_stage3_stp2mt/from_s2t_obstacle_scene_s4o1_cot.yaml --nodebug
134
+
135
+ # Stage III (GRPO) — set GRPO_VAL: True in the config; evaluates the GRPO policy
136
+ CUDA_VISIBLE_DEVICES=0 python -m validate_egovlm_stage2 \
137
+ --cfg configs/egovlm_gpt2_medium_grpo_stp2mt/from_obs_scene_cot_bs4_4.yaml --nodebug
138
+ ```
139
+
140
+ `--device <ids>` and `--batch_size <n>` may be passed to override the config. The evaluated
141
+ checkpoint is selected purely by `TRAIN.PRETRAINED`; for Stage II/III set it to the
142
+ trained Stage-II / Stage-III checkpoint rather than the pretrain checkpoint used for init.
143
+
144
+ ## Citation
145
+ ```bibtex
146
+ @inproceedings{ego3dlm2026,
147
+ title = {Ego-Human Motion Prediction with 3D-Aware LLM},
148
+ booktitle = {European Conference on Computer Vision (ECCV)},
149
+ year = {2026}
150
+ }
151
+ ```
configs/assets_egovlm.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CONFIG_FOLDER: configs # Config files path
2
+ FOLDER: experiments # Experiment files saving path
3
+
4
+ TEST:
5
+ FOLDER: results # Testing files saving path
6
+
7
+ DATASET:
8
+ TASK_ROOT: deps/mGPT_instructions
9
+ SMPL_PATH: deps/smpl #deps/smpl
10
+ TRANSFORM_PATH: deps/transforms/
11
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
12
+ KIT:
13
+ ROOT: datasets/kit-ml # KIT directory
14
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
15
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
16
+ HUMANML3D:
17
+ ROOT: datasets/nymeria_smpl_V4
18
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
19
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
20
+ NYMERIA:
21
+ # ROOT: datasets/nymeria_egolm_full
22
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
23
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
24
+ ROOT: datasets/nymeria_egolm_full_v6_2
25
+ SPLIT_ROOT: datasets/nymeria_egolm_full_v6_2
26
+ MEAN_STD_PATH: datasets/nymeria_egolm_full_v6_2
27
+
28
+ METRIC:
29
+ TM2T:
30
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
31
+
32
+ model:
33
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
34
+
35
+ RENDER:
36
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
37
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
38
+ MODEL_PATH: deps/smpl/smpl_models/
39
+ FACES_PATH: deps/smplh/smplh.faces
configs/config_h3d_stage1_pq_4096_64.yaml ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ NAME: VQVAE_pq_full_60_fps_4096_64 # Experiment names
2
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
3
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
4
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
5
+
6
+ TRAIN:
7
+ #---------------------------------
8
+ STAGE: vae # stage "vae" , "lm_pretrain", "lm_instruct"
9
+ #---------------------------------
10
+ NUM_WORKERS: 16 # Number of workers
11
+ BATCH_SIZE: 256 # Size of batches
12
+ END_EPOCH: 999999 # End epoch
13
+ GRADIENT_ACCUMULATION_STEP: 1 # no gradient accumulation (effective batch size = BATCH_SIZE)
14
+ RESUME: '' # Resume training from this path
15
+ PRETRAINED_LM: ''
16
+ PRETRAINED: '' #'/mnt/jaewoo4tb/yujinbae/egomotion/MotionGPT/experiments/mgpt_egovlm/VQVAE_pq_4096_64/checkpoints/min-MPJPEep=0.ckpt' # Preatrained model path
17
+ # PRETRAINED_VAE: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
18
+ VISUALIZE: False
19
+ VISUALIZE_INTERVAL: 500
20
+
21
+ OPTIM:
22
+ target: AdamW
23
+ params:
24
+ lr: 2e-4
25
+ betas: [0.9, 0.99]
26
+ weight_decay: 0.0
27
+
28
+ # Evaluating Configuration
29
+ EVAL:
30
+ BATCH_SIZE: 32 # Evaluating Batch size
31
+ SPLIT: test
32
+ VISUALIZE: True
33
+ VISUALIZE_INTERVAL: 500
34
+ TEST:
35
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
36
+ SPLIT: test
37
+ BATCH_SIZE: 32 # training Batch size
38
+ NUM_3D_POINTS: 10000
39
+ VISUALIZE_INTERVAL: 140
40
+
41
+
42
+ DATASET:
43
+ target: mGPT.data.Nymeria_egovlm.NymeriaDataModule
44
+ MIN_MOTION_LEN: 5
45
+ UNIT_LEN: 4
46
+
47
+ METRIC:
48
+ TYPE: ['MRMetrics']
49
+
50
+ LOSS:
51
+ LAMBDA_FEATURE: 1.0
52
+ LAMBDA_VELOCITY: 0.5
53
+ LAMBDA_COMMIT: 0.02
54
+ LAMBDA_CLS: 1.0
55
+ LAMBDA_REG: 1.0
56
+ ABLATION:
57
+ RECONS_LOSS: 'l1_smooth'
58
+
59
+ model:
60
+ target: mGPT.models.mgpt_egovlm.MotionGPT
61
+ params:
62
+ condition: 'text'
63
+ task: 't2m'
64
+ lm: ${lm.default}
65
+ motion_vae: ${vq.default_pq}
66
+
67
+ LOGGER:
68
+ TYPE: ['tensorboard', 'wandb']
69
+ VAL_EVERY_STEPS: 10
70
+ SAVE_TOP_K: 0
71
+ WANDB:
72
+ params:
73
+ project: motiongpt
configs/default_egovlm.yaml ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ SEED_VALUE: 1234 # Seed value
2
+ DEBUG: True # Debug mode
3
+ FULL_CONFIG: false
4
+
5
+ TRAIN:
6
+ SPLIT: 'train' # Training split name
7
+ NUM_WORKERS: 8 # Number of workers
8
+ BATCH_SIZE: 4 # Size of batches
9
+ END_EPOCH: 2000 # End epoch
10
+
11
+ RESUME: '' # Experiment path to be resumed training
12
+ PRETRAINED_VAE: '' # Pretrained vae/vqvae model path
13
+ PRETRAINED: '' # Pretrained model path
14
+
15
+ OPTIM:
16
+ target: AdamW
17
+ params:
18
+ lr: 2e-4
19
+ betas: [0.9, 0.99]
20
+ weight_decay: 0.0
21
+
22
+ LR_SCHEDULER:
23
+ target: CosineAnnealingLR
24
+ params:
25
+ T_max: 30 # overridden by our GRPO yaml's LR_SCHEDULER block
26
+ eta_min: 1e-6
27
+
28
+ EVAL:
29
+ SPLIT: 'val' # Validation split name
30
+ BATCH_SIZE: 4 # Validation Batch size
31
+ NUM_WORKERS: 8 # Validation Batch size
32
+
33
+ TEST:
34
+ CHECKPOINTS: '' # Pretrained model path
35
+ SPLIT: 'test' # Testing split name
36
+ BATCH_SIZE: 16 # Testing Batch size
37
+ NUM_WORKERS: 8 # Testing Batch size
38
+
39
+ SAVE_PREDICTIONS: False # Weather to save predictions
40
+ COUNT_TIME: False # Weather to count time during test
41
+ REPLICATION_TIMES: 20 # Number of times to replicate the test
42
+ REP_I: 0 # For counting replication times
43
+
44
+ model:
45
+ target: mGPT.models.mgpt_egovlm.MotionGPT
46
+ params:
47
+ condition: 'text'
48
+ task: 'pred'
49
+ lm: ${lm.default}
50
+ motion_vae: ${vq.default}
51
+
52
+ # Related parameters
53
+ stage: ${TRAIN.STAGE}
54
+ debug: ${DEBUG}
55
+ codebook_size: ${model.params.motion_vae.params.code_num}
56
+ metrics_dict: ${METRIC.TYPE}
57
+
58
+ LOSS:
59
+ LAMBDA_REC: 1.0 # Lambda for reconstruction losses
60
+ LAMBDA_JOINT: 1.0 # Lambda for joint losses
61
+
62
+ LAMBDA_LATENT: 1e-5 # Lambda for latent losses
63
+ LAMBDA_KL: 1e-5 # Lambda for kl losses
64
+ LAMBDA_GEN: 1.0 # Lambda for text-motion generation losses
65
+ LAMBDA_CROSS: 1.0 # Lambda for cross-reconstruction losses
66
+ LAMBDA_CYCLE: 1.0 # Lambda for cycle losses
67
+ LAMBDA_PRIOR: 0.0 # Lambda for diffusion prior losses
68
+
69
+ LAMBDA_VELOCITY: 0.5 # Lambda for velocity losses
70
+ LAMBDA_COMMIT: 0.02 # Lambda for commitment losses
71
+
72
+ ABLATION:
73
+ RECONS_LOSS: 'l1_smooth'
74
+
75
+ METRIC:
76
+ TASK: 'pred'
77
+ FORCE_IN_METER: True
78
+ DIST_SYNC_ON_STEP: True
79
+ MM_NUM_SAMPLES: 100 # Number of samples for multimodal test
80
+ MM_NUM_REPEATS: 30 # Number of repeats for multimodal test
81
+ MM_NUM_TIMES: 10 # Number of times to repeat the multimodal test
82
+ DIVERSITY_TIMES: 300 # Number of times to repeat the diversity test
83
+ TM2T: ${evaluator.tm2t}
84
+
85
+ DATASET:
86
+ target: mGPT.data.HumanML3D.HumanML3DDataModule
87
+ CODE_PATH: 'VQVAE'
88
+ TASK_ROOT: ''
89
+ TASK_PATH: ''
90
+ NFEATS: 263
91
+ KIT:
92
+ MAX_MOTION_LEN: 196
93
+ MIN_MOTION_LEN: 24
94
+ MAX_TEXT_LEN: 20
95
+ PICK_ONE_TEXT: true
96
+ FRAME_RATE: 12.5
97
+ UNIT_LEN: 4
98
+ HUMANML3D:
99
+ MAX_MOTION_LEN: 196
100
+ MIN_MOTION_LEN: 90
101
+ MAX_TEXT_LEN: 20
102
+ PICK_ONE_TEXT: true
103
+ FRAME_RATE: 10.0
104
+ UNIT_LEN: 4
105
+ STD_TEXT: False
106
+
107
+ ABLATION:
108
+ # For MotionGPT
109
+ use_length: False
110
+ predict_ratio: 0.2 # 0.2 # 0.0 for motion prediction except for the first motion
111
+ inbetween_ratio: 0.25
112
+ image_size: 256
113
+
114
+ # For Motion-latent-diffusion
115
+ VAE_TYPE: 'actor' # vae ablation: actor or mcross
116
+ VAE_ARCH: 'encoder_decoder' # mdiffusion vae architecture
117
+ PE_TYPE: 'actor' # mdiffusion mld or actor
118
+ DIFF_PE_TYPE: 'actor' # mdiffusion mld or actor
119
+ SKIP_CONNECT: False # skip connection for denoiser va
120
+ MLP_DIST: False # use linear to expand mean and std rather expand token nums
121
+ IS_DIST: False # Mcross distribution kl
122
+ PREDICT_EPSILON: True # noise or motion
123
+
124
+ DEMO:
125
+ EXAMPLE: null
126
+ TASK: pred
127
+
128
+ LOGGER:
129
+ VAL_EVERY_STEPS: 10
130
+ LOGGERS: ['tensorboard', 'wandb']
131
+ TENSORBOARD:
132
+ target: pytorch_lightning.loggers.TensorBoardLogger
133
+ params:
134
+ save_dir: ${FOLDER_EXP}
135
+ name: 'tensorboard'
136
+ version: ''
137
+ WANDB:
138
+ target: pytorch_lightning.loggers.WandbLogger
139
+ params:
140
+ project: null
141
+ offline: False
142
+ id: null
143
+ version: ''
144
+ name: ${NAME}
145
+ save_dir: ${FOLDER_EXP}
configs/egovlm_gpt2_medium_grpo_stp2mt/from_obs_scene_cot_bs4_4.yaml ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ NAME: Instruct_egovlm_pq_gpt2_medium_from_obs_scene_cot_stp2mt_grpo_1_08_002_0001_lr1e-6_allade_bs4 # Experiment names
2
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
3
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
4
+ DEVICE: [0,1] # Index of gpus eg. [0] or [0,1,2,3]
5
+
6
+ TRAIN:
7
+ #---------------------------------
8
+ STAGE: lm_grpo # stage "vae" , "lm_pretrain", "lm_instruct", "lm_grpo"
9
+ #---------------------------------
10
+ NUM_WORKERS: 16 # Number of workers
11
+ BATCH_SIZE: 2 # Size of batches
12
+ GRADIENT_ACCUMULATION_STEP: 1
13
+ END_EPOCH: 999999 # End epoch
14
+ RESUME: '' # Resume training from this path
15
+ PRETRAINED_LM: ''
16
+ PRETRAINED: 'checkpoints/Instruct_egovlm_stp2mt_reverse_from_s2t_obs_scene_s4o1_cot_grid64/min-ADE_head-epoch=18-step=21527.ckpt' # Preatrained model path
17
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
18
+ GRPO_REF_MODEL_PATH: 'checkpoints/Instruct_egovlm_stp2mt_reverse_from_s2t_obs_scene_s4o1_cot_grid64/min-ADE_head-epoch=18-step=21527.ckpt'
19
+ GRPO_REF_DEVICE: 'cuda:0'
20
+ VISUALIZE: False
21
+ VISUALIZE_INTERVAL: 500
22
+
23
+ INIT_SPECIAL_TOKENS: True
24
+ CHAIN_OF_THOUGHT: True
25
+
26
+ OPTIM:
27
+ target: AdamW
28
+ params:
29
+ lr: 1e-6
30
+ betas: [0.9, 0.99]
31
+ weight_decay: 0.0
32
+
33
+ # Evaluating Configuration
34
+ EVAL:
35
+ BATCH_SIZE: 2 # Evaluating Batch size
36
+ SPLIT: test
37
+ VISUALIZE: False
38
+ VISUALIZE_INTERVAL: 1000
39
+
40
+ TEST:
41
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
42
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
43
+ SPLIT: test
44
+ BATCH_SIZE: 32 # training Batch size
45
+ VISUALIZE_INTERVAL: 140
46
+
47
+ DATASET:
48
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
49
+ CODE_PATH: TOKENS
50
+ MIN_MOTION_LEN: 45
51
+ MAX_MOTION_LEN: 300
52
+ NUM_3D_POINTS: 10000
53
+ VOXEL_SIZE: 0.15
54
+ UNIT_LEN: 4
55
+ NYMERIA:
56
+ OBSTACLE_LABELS_PATH: obstacle_labels
57
+
58
+
59
+ METRIC:
60
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
61
+ SBERT: True
62
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
63
+ MATCHING: True
64
+ DIVERSITY: True
65
+
66
+ LOSS:
67
+ LAMBDA_FEATURE: 1.0
68
+ LAMBDA_VELOCITY: 0.5
69
+ LAMBDA_COMMIT: 0.02
70
+ LAMBDA_CLS: 1.0
71
+ LAMBDA_REG: 0.0
72
+ LAMBDA_HEAD: 0.0
73
+ REG_OPTION: 'raw' #'token'
74
+
75
+ ABLATION:
76
+ RECONS_LOSS: 'l1_smooth'
77
+ EGOLM_BASELINE: False
78
+ ONLY_MOTION: False
79
+ ONLY_FUTURE: False
80
+ IT_JOINT_TRAINING: True
81
+ 4TASKS: False
82
+ REG_GLOBAL: True
83
+ GRPO_NUM_SAMPLES: 6
84
+ GRPO_MAX_NEW_TOKENS: 256
85
+ GRPO_TEMPERATURE: 1.0
86
+ GRPO_TOP_P: 0.9
87
+ GRPO_TOP_K: 50
88
+ GRPO_MOTION_WEIGHT_PAST: 1.0
89
+ GRPO_MOTION_WEIGHT_FUTURE: 0
90
+ GRPO_TEXT_WEIGHT: 0.8
91
+ GRPO_MATCHING_DIST_WEIGHT: 0.02
92
+ GRPO_MISSING_MOTION_PENALTY: 1.0
93
+ GRPO_BETA: 0.001
94
+ GRPO_ADE_HEAD_FRAME_LENGTH: ''
95
+ GRPO_ADE_AT_ONCE: True
96
+ TRAIN_ALL_AT_ONCE: True
97
+ REVERSE: True
98
+
99
+ # relative three-point representation
100
+ REL_TP: False
101
+ ADD_REL_TP: True # override rel_tp
102
+ NORM_TP: True
103
+ model:
104
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
105
+ params:
106
+ num_query_token: 32
107
+ freeze_lm: false
108
+ freeze_qformer: false
109
+ freeze_vproj: false
110
+ condition: 'text'
111
+ task: 'egovlm_4tasks'
112
+ lm: ${lm.gpt2_medium_grpo}
113
+ motion_vae: ${vq.default_pq}
114
+ tp_special_token: True
115
+ max_token_length: 480
116
+
117
+ LOGGER:
118
+ TYPE: ['tensorboard', 'wandb']
119
+ VAL_EVERY_STEPS: 1 # 10
120
+ VAL_INTERVAL: 0.1 # val 4 times in an epoch
121
+ SAVE_TOP_K: 0
122
+ WANDB:
123
+ params:
124
+ project: motiongpt
configs/egovlm_gpt2_medium_stage2_pretrain/s2t_obstacle_with_sceneqa_s4o1.yaml ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Pretrain_egovlm_egolmrep_pq_qwen25_3b_s2t_obstacle_with_sceneqa_grid64_s1o4 # Experiment names
2
+ NAME: Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1 # Experiment names
3
+ # NAME: Pretrain_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_pretrain # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 16 # Size of batches (Qwen2.5-3B is ~8.5x larger than GPT-2 medium)
14
+ GRADIENT_ACCUMULATION_STEP: 1 # effective batch size = BATCH_SIZE * accumulation = 16 (matches GPT-2 config)
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ PRETRAINED: # Preatrained model path
19
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
20
+ VISUALIZE: False
21
+ VISUALIZE_INTERVAL: 10000
22
+
23
+ OPTIM:
24
+ target: AdamW
25
+ params:
26
+ lr: 1e-4
27
+ betas: [0.9, 0.99]
28
+ weight_decay: 0.0
29
+
30
+ # Evaluating Configuration
31
+ EVAL:
32
+ BATCH_SIZE: 4 # Evaluating Batch size
33
+ SPLIT: test
34
+ VISUALIZE: True
35
+ VISUALIZE_INTERVAL: 1000
36
+ VISUALIZE_INTERVAL_3DQA: 1000
37
+ TEST:
38
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
39
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
40
+ SPLIT: test
41
+ BATCH_SIZE: 32 # training Batch size
42
+ VISUALIZE_INTERVAL: 140
43
+
44
+ DATASET:
45
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
46
+ CODE_PATH: TOKENS
47
+ MIN_MOTION_LEN: 45
48
+ MAX_MOTION_LEN: 300
49
+ NUM_3D_POINTS: 10000
50
+ UNIT_LEN: 4
51
+ NYMERIA:
52
+ OBSTACLE_LABELS_PATH: obstacle_labels
53
+
54
+ METRIC:
55
+ TYPE: ['T2TMetrics', 'ObstacleMetrics']
56
+ MATCHING: False
57
+ DIVERSITY: True
58
+
59
+ LOSS:
60
+ LAMBDA_FEATURE: 1.0
61
+ LAMBDA_VELOCITY: 0.5
62
+ LAMBDA_COMMIT: 0.02
63
+ LAMBDA_CLS: 1.0
64
+ LAMBDA_REG: 0.0
65
+ REG_OPTION: 'raw' #'token'
66
+
67
+ ABLATION:
68
+ RECONS_LOSS: 'l1_smooth'
69
+ # predict_ratio: 0.4
70
+
71
+ model:
72
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
73
+ params:
74
+ num_query_token: 32
75
+ freeze_lm: false
76
+ freeze_qformer: false
77
+ freeze_vproj: false
78
+ condition: 'text'
79
+ task: 'sceneqa_obstacleqa' # 'pred'
80
+ lm: ${lm.gpt2_medium_grpo}
81
+ motion_vae: ${vq.default_pq}
82
+
83
+ qa_with_3d: true
84
+ qa_with_video: true
85
+ # task_probs: [1, 4] # s1o4
86
+ task_probs: [4, 1] # s4o1
87
+
88
+ LOGGER:
89
+ TYPE: ['tensorboard', 'wandb']
90
+ VAL_EVERY_STEPS: 1
91
+ CKPT_EVERY_EPOCHS: 5
92
+ SAVE_TOP_K: 0
93
+ WANDB:
94
+ params:
95
+ project: motiongpt
configs/egovlm_gpt2_medium_stage3_stp2mt/from_s2t_obstacle_scene_s4o1_cot.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: Instruct_egovlm_stp2mt_reverse_from_s2t_obs_scene_s4o1_cot_grid64 # Experiment names
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: False
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/evaluator/tm2t.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ t2m_textencoder:
2
+ target: mGPT.archs.tm2t_evaluator.TextEncoderBiGRUCo
3
+ params:
4
+ word_size: 300
5
+ pos_size: 15
6
+ hidden_size: 512
7
+ output_size: 512
8
+ t2m_moveencoder:
9
+ target: mGPT.archs.tm2t_evaluator.MovementConvEncoder
10
+ params:
11
+ input_size: ${eval:${DATASET.NFEATS} - 4}
12
+ hidden_size: 512
13
+ output_size: 512
14
+ t2m_motionencoder:
15
+ target: mGPT.archs.tm2t_evaluator.MotionEncoderBiGRUCo
16
+ params:
17
+ input_size: ${evaluator.tm2t.t2m_moveencoder.params.output_size}
18
+ hidden_size: 1024
19
+ output_size: 512
configs/lm/default.yaml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ target: mGPT.archs.mgpt_lm.MLM
2
+ params:
3
+ # model_type: egovlm_t5_humanml3d #egovlm_t5 #t5
4
+ # model_path: google/flan-t5-xl #./deps/flan-t5-base
5
+ model_type: t5_custom_motion #egovlm_t5 #t5
6
+ model_path: ./deps/flan-t5-base #./deps/flan-t5-base
7
+ peft_cfg_path: null
8
+ stage: ${TRAIN.STAGE}
9
+ motion_codebook_size: ${model.params.codebook_size}
10
+ ablation: ${ABLATION}
11
+ predict_ratio: 0.2
configs/lm/gpt2_medium_grpo.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ target: mGPT.archs.mgpt_lm_merged_grpo.MLM
2
+ params:
3
+ model_type: gpt2_custom_motion_3d_feature
4
+ model_path: openai-community/gpt2-medium
5
+ peft_cfg_path: ''
6
+ stage: ${TRAIN.STAGE}
7
+ motion_codebook_size: ${model.params.codebook_size}
8
+ ablation: ${ABLATION}
9
+ predict_ratio: 1.0
configs/ourfolds/assets_ext.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CONFIG_FOLDER: configs # Config files path
2
+ FOLDER: experiments # Experiment files saving path
3
+
4
+ TEST:
5
+ FOLDER: results # Testing files saving path
6
+
7
+ DATASET:
8
+ TASK_ROOT: deps/mGPT_instructions
9
+ SMPL_PATH: deps/smpl #deps/smpl
10
+ TRANSFORM_PATH: deps/transforms/
11
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
12
+ KIT:
13
+ ROOT: datasets/kit-ml # KIT directory
14
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
15
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
16
+ HUMANML3D:
17
+ ROOT: datasets/nymeria_smpl_V4
18
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
19
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
20
+ NYMERIA:
21
+ # ROOT: datasets/nymeria_egolm_full
22
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
23
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
24
+ ROOT: datasets/nymeria_ours_ext
25
+ SPLIT_ROOT: datasets/nymeria_ours_ext
26
+ MEAN_STD_PATH: datasets/nymeria_ours_ext
27
+
28
+ METRIC:
29
+ TM2T:
30
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
31
+
32
+ model:
33
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
34
+
35
+ RENDER:
36
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
37
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
38
+ MODEL_PATH: deps/smpl/smpl_models/
39
+ FACES_PATH: deps/smplh/smplh.faces
configs/ourfolds/assets_f0.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CONFIG_FOLDER: configs # Config files path
2
+ FOLDER: experiments # Experiment files saving path
3
+
4
+ TEST:
5
+ FOLDER: results # Testing files saving path
6
+
7
+ DATASET:
8
+ TASK_ROOT: deps/mGPT_instructions
9
+ SMPL_PATH: deps/smpl #deps/smpl
10
+ TRANSFORM_PATH: deps/transforms/
11
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
12
+ KIT:
13
+ ROOT: datasets/kit-ml # KIT directory
14
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
15
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
16
+ HUMANML3D:
17
+ ROOT: datasets/nymeria_smpl_V4
18
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
19
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
20
+ NYMERIA:
21
+ # ROOT: datasets/nymeria_egolm_full
22
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
23
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
24
+ ROOT: datasets/nymeria_ourfold0
25
+ SPLIT_ROOT: datasets/nymeria_ourfold0
26
+ MEAN_STD_PATH: datasets/nymeria_ourfold0
27
+
28
+ METRIC:
29
+ TM2T:
30
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
31
+
32
+ model:
33
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
34
+
35
+ RENDER:
36
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
37
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
38
+ MODEL_PATH: deps/smpl/smpl_models/
39
+ FACES_PATH: deps/smplh/smplh.faces
configs/ourfolds/assets_f1.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CONFIG_FOLDER: configs # Config files path
2
+ FOLDER: experiments # Experiment files saving path
3
+
4
+ TEST:
5
+ FOLDER: results # Testing files saving path
6
+
7
+ DATASET:
8
+ TASK_ROOT: deps/mGPT_instructions
9
+ SMPL_PATH: deps/smpl #deps/smpl
10
+ TRANSFORM_PATH: deps/transforms/
11
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
12
+ KIT:
13
+ ROOT: datasets/kit-ml # KIT directory
14
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
15
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
16
+ HUMANML3D:
17
+ ROOT: datasets/nymeria_smpl_V4
18
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
19
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
20
+ NYMERIA:
21
+ # ROOT: datasets/nymeria_egolm_full
22
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
23
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
24
+ ROOT: datasets/nymeria_ourfold1
25
+ SPLIT_ROOT: datasets/nymeria_ourfold1
26
+ MEAN_STD_PATH: datasets/nymeria_ourfold1
27
+
28
+ METRIC:
29
+ TM2T:
30
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
31
+
32
+ model:
33
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
34
+
35
+ RENDER:
36
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
37
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
38
+ MODEL_PATH: deps/smpl/smpl_models/
39
+ FACES_PATH: deps/smplh/smplh.faces
configs/ourfolds/assets_f2.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CONFIG_FOLDER: configs # Config files path
2
+ FOLDER: experiments # Experiment files saving path
3
+
4
+ TEST:
5
+ FOLDER: results # Testing files saving path
6
+
7
+ DATASET:
8
+ TASK_ROOT: deps/mGPT_instructions
9
+ SMPL_PATH: deps/smpl #deps/smpl
10
+ TRANSFORM_PATH: deps/transforms/
11
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
12
+ KIT:
13
+ ROOT: datasets/kit-ml # KIT directory
14
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
15
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
16
+ HUMANML3D:
17
+ ROOT: datasets/nymeria_smpl_V4
18
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
19
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
20
+ NYMERIA:
21
+ # ROOT: datasets/nymeria_egolm_full
22
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
23
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
24
+ ROOT: datasets/nymeria_ourfold2
25
+ SPLIT_ROOT: datasets/nymeria_ourfold2
26
+ MEAN_STD_PATH: datasets/nymeria_ourfold2
27
+
28
+ METRIC:
29
+ TM2T:
30
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
31
+
32
+ model:
33
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
34
+
35
+ RENDER:
36
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
37
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
38
+ MODEL_PATH: deps/smpl/smpl_models/
39
+ FACES_PATH: deps/smplh/smplh.faces
configs/ourfolds/assets_f3.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CONFIG_FOLDER: configs # Config files path
2
+ FOLDER: experiments # Experiment files saving path
3
+
4
+ TEST:
5
+ FOLDER: results # Testing files saving path
6
+
7
+ DATASET:
8
+ TASK_ROOT: deps/mGPT_instructions
9
+ SMPL_PATH: deps/smpl #deps/smpl
10
+ TRANSFORM_PATH: deps/transforms/
11
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
12
+ KIT:
13
+ ROOT: datasets/kit-ml # KIT directory
14
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
15
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
16
+ HUMANML3D:
17
+ ROOT: datasets/nymeria_smpl_V4
18
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
19
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
20
+ NYMERIA:
21
+ # ROOT: datasets/nymeria_egolm_full
22
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
23
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
24
+ ROOT: datasets/nymeria_ourfold3
25
+ SPLIT_ROOT: datasets/nymeria_ourfold3
26
+ MEAN_STD_PATH: datasets/nymeria_ourfold3
27
+
28
+ METRIC:
29
+ TM2T:
30
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
31
+
32
+ model:
33
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
34
+
35
+ RENDER:
36
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
37
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
38
+ MODEL_PATH: deps/smpl/smpl_models/
39
+ FACES_PATH: deps/smplh/smplh.faces
configs/ourfolds/ego3dlm_f0.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURFOLD0_ego3dlm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: False
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/ourfolds/ego3dlm_f1.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURFOLD1_ego3dlm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: False
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/ourfolds/ego3dlm_f2.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURFOLD2_ego3dlm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: False
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/ourfolds/ego3dlm_f3.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURFOLD3_ego3dlm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: False
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/ourfolds/egolm_f0.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURFOLD0_egolm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: True
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/ourfolds/egolm_f1.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURFOLD1_egolm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: True
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/ourfolds/egolm_f2.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURFOLD2_egolm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: True
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/ourfolds/egolm_f3.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURFOLD3_egolm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: True
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/ourfolds/token_ext.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: TOKENIZE_ours_ext
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: True
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/oursE/_subA_egolm_f0_headframe.yaml ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: SUBA_egolm_f0_headframe
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'experiments/mgpt_egovlm_merged_grpo/OURSE0_egolm/checkpoints/last.ckpt' # last.ckpt, selection-free
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 8 # Evaluating Batch size
41
+ NUM_SAMPLE_SEQ: 1 # k=0 only: best-of-1 by construction
42
+ SPLIT: test
43
+ VISUALIZE: True
44
+ VISUALIZE_INTERVAL: 1000
45
+
46
+ TEST:
47
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
48
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
49
+ SPLIT: test
50
+ BATCH_SIZE: 32 # training Batch size
51
+ VISUALIZE_INTERVAL: 140
52
+
53
+ DATASET:
54
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
55
+ CODE_PATH: TOKENS
56
+ MIN_MOTION_LEN: 45
57
+ MAX_MOTION_LEN: 300
58
+ NUM_3D_POINTS: 10000
59
+ VOXEL_SIZE: 0.15
60
+ UNIT_LEN: 4
61
+ NYMERIA:
62
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
63
+
64
+ METRIC:
65
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
66
+ SBERT: True
67
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
68
+ MATCHING: True
69
+ DIVERSITY: True
70
+
71
+ LOSS:
72
+ LAMBDA_FEATURE: 1.0
73
+ LAMBDA_VELOCITY: 0.5
74
+ LAMBDA_COMMIT: 0.02
75
+ LAMBDA_CLS: 1.0
76
+ LAMBDA_REG: 0.0
77
+ LAMBDA_HEAD: 0.0
78
+ REG_OPTION: 'raw' #'token'
79
+
80
+ ABLATION:
81
+ RECONS_LOSS: 'l1_smooth'
82
+ EGOLM_BASELINE: True
83
+ ONLY_MOTION: False
84
+ ONLY_FUTURE: False
85
+ IT_JOINT_TRAINING: True
86
+ 4TASKS: False
87
+ REG_GLOBAL: True
88
+ TRAIN_ALL_AT_ONCE: True
89
+
90
+ REVERSE: True
91
+
92
+ # relative three-point representation
93
+ REL_TP: False
94
+ ADD_REL_TP: True # override rel_tp
95
+ NORM_TP: True
96
+
97
+
98
+ model:
99
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
100
+ params:
101
+ num_query_token: 32
102
+ freeze_lm: false
103
+ freeze_qformer: false
104
+ freeze_vproj: false
105
+ condition: 'text'
106
+ task: 'egovlm_4tasks'
107
+ lm: ${lm.gpt2_medium_grpo}
108
+ motion_vae: ${vq.default_pq}
109
+ tp_special_token: True
110
+ max_token_length: 480
111
+ dummy_motion: False
112
+ p_dummy: 0.5
113
+ per_token: True
114
+
115
+ LOGGER:
116
+ TYPE: ['tensorboard', 'wandb']
117
+ VAL_EVERY_STEPS: 1 # 10
118
+ SAVE_TOP_K: 10
119
+ WANDB:
120
+ params:
121
+ project: motiongpt
configs/oursE/_subA_egolm_f0_native.yaml ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: SUBA_egolm_f0_native
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'experiments/mgpt_egovlm_merged_grpo/OURSE0_egolm/checkpoints/last.ckpt' # last.ckpt, selection-free
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 8 # Evaluating Batch size
41
+ NUM_SAMPLE_SEQ: 1 # k=0 only: best-of-1 by construction
42
+ SPLIT: test
43
+ VISUALIZE: True
44
+ VISUALIZE_INTERVAL: 1000
45
+
46
+ TEST:
47
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
48
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
49
+ SPLIT: test
50
+ BATCH_SIZE: 32 # training Batch size
51
+ VISUALIZE_INTERVAL: 140
52
+
53
+ DATASET:
54
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
55
+ CODE_PATH: TOKENS
56
+ MIN_MOTION_LEN: 45
57
+ MAX_MOTION_LEN: 300
58
+ NUM_3D_POINTS: 10000
59
+ VOXEL_SIZE: 0.15
60
+ UNIT_LEN: 4
61
+ NYMERIA:
62
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
63
+
64
+ METRIC:
65
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
66
+ SBERT: True
67
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
68
+ MATCHING: True
69
+ DIVERSITY: True
70
+
71
+ LOSS:
72
+ LAMBDA_FEATURE: 1.0
73
+ LAMBDA_VELOCITY: 0.5
74
+ LAMBDA_COMMIT: 0.02
75
+ LAMBDA_CLS: 1.0
76
+ LAMBDA_REG: 0.0
77
+ LAMBDA_HEAD: 0.0
78
+ REG_OPTION: 'raw' #'token'
79
+
80
+ ABLATION:
81
+ RECONS_LOSS: 'l1_smooth'
82
+ EGOLM_BASELINE: True
83
+ ONLY_MOTION: False
84
+ ONLY_FUTURE: False
85
+ IT_JOINT_TRAINING: True
86
+ 4TASKS: False
87
+ REG_GLOBAL: True
88
+ TRAIN_ALL_AT_ONCE: True
89
+
90
+ REVERSE: True
91
+
92
+ # relative three-point representation
93
+ REL_TP: False
94
+ ADD_REL_TP: True # override rel_tp
95
+ NORM_TP: True
96
+
97
+
98
+ model:
99
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
100
+ params:
101
+ num_query_token: 32
102
+ freeze_lm: false
103
+ freeze_qformer: false
104
+ freeze_vproj: false
105
+ condition: 'text'
106
+ task: 'egovlm_4tasks'
107
+ lm: ${lm.gpt2_medium_grpo}
108
+ motion_vae: ${vq.default_pq}
109
+ tp_special_token: True
110
+ max_token_length: 480
111
+ dummy_motion: False
112
+ p_dummy: 0.5
113
+ per_token: True
114
+
115
+ LOGGER:
116
+ TYPE: ['tensorboard', 'wandb']
117
+ VAL_EVERY_STEPS: 1 # 10
118
+ SAVE_TOP_K: 10
119
+ WANDB:
120
+ params:
121
+ project: motiongpt
configs/oursE/assets_f0.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CONFIG_FOLDER: configs # Config files path
2
+ FOLDER: experiments # Experiment files saving path
3
+
4
+ TEST:
5
+ FOLDER: results # Testing files saving path
6
+
7
+ DATASET:
8
+ TASK_ROOT: deps/mGPT_instructions
9
+ SMPL_PATH: deps/smpl #deps/smpl
10
+ TRANSFORM_PATH: deps/transforms/
11
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
12
+ KIT:
13
+ ROOT: datasets/kit-ml # KIT directory
14
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
15
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
16
+ HUMANML3D:
17
+ ROOT: datasets/nymeria_smpl_V4
18
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
19
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
20
+ NYMERIA:
21
+ # ROOT: datasets/nymeria_egolm_full
22
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
23
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
24
+ ROOT: datasets/nymeria_ourfoldE0
25
+ SPLIT_ROOT: datasets/nymeria_ourfoldE0
26
+ MEAN_STD_PATH: datasets/nymeria_ourfoldE0
27
+
28
+ METRIC:
29
+ TM2T:
30
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
31
+
32
+ model:
33
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
34
+
35
+ RENDER:
36
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
37
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
38
+ MODEL_PATH: deps/smpl/smpl_models/
39
+ FACES_PATH: deps/smplh/smplh.faces
configs/oursE/assets_f1.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CONFIG_FOLDER: configs # Config files path
2
+ FOLDER: experiments # Experiment files saving path
3
+
4
+ TEST:
5
+ FOLDER: results # Testing files saving path
6
+
7
+ DATASET:
8
+ TASK_ROOT: deps/mGPT_instructions
9
+ SMPL_PATH: deps/smpl #deps/smpl
10
+ TRANSFORM_PATH: deps/transforms/
11
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
12
+ KIT:
13
+ ROOT: datasets/kit-ml # KIT directory
14
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
15
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
16
+ HUMANML3D:
17
+ ROOT: datasets/nymeria_smpl_V4
18
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
19
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
20
+ NYMERIA:
21
+ # ROOT: datasets/nymeria_egolm_full
22
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
23
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
24
+ ROOT: datasets/nymeria_ourfoldE1
25
+ SPLIT_ROOT: datasets/nymeria_ourfoldE1
26
+ MEAN_STD_PATH: datasets/nymeria_ourfoldE1
27
+
28
+ METRIC:
29
+ TM2T:
30
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
31
+
32
+ model:
33
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
34
+
35
+ RENDER:
36
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
37
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
38
+ MODEL_PATH: deps/smpl/smpl_models/
39
+ FACES_PATH: deps/smplh/smplh.faces
configs/oursE/assets_f2.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CONFIG_FOLDER: configs # Config files path
2
+ FOLDER: experiments # Experiment files saving path
3
+
4
+ TEST:
5
+ FOLDER: results # Testing files saving path
6
+
7
+ DATASET:
8
+ TASK_ROOT: deps/mGPT_instructions
9
+ SMPL_PATH: deps/smpl #deps/smpl
10
+ TRANSFORM_PATH: deps/transforms/
11
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
12
+ KIT:
13
+ ROOT: datasets/kit-ml # KIT directory
14
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
15
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
16
+ HUMANML3D:
17
+ ROOT: datasets/nymeria_smpl_V4
18
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
19
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
20
+ NYMERIA:
21
+ # ROOT: datasets/nymeria_egolm_full
22
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
23
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
24
+ ROOT: datasets/nymeria_ourfoldE2
25
+ SPLIT_ROOT: datasets/nymeria_ourfoldE2
26
+ MEAN_STD_PATH: datasets/nymeria_ourfoldE2
27
+
28
+ METRIC:
29
+ TM2T:
30
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
31
+
32
+ model:
33
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
34
+
35
+ RENDER:
36
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
37
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
38
+ MODEL_PATH: deps/smpl/smpl_models/
39
+ FACES_PATH: deps/smplh/smplh.faces
configs/oursE/assets_f3.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CONFIG_FOLDER: configs # Config files path
2
+ FOLDER: experiments # Experiment files saving path
3
+
4
+ TEST:
5
+ FOLDER: results # Testing files saving path
6
+
7
+ DATASET:
8
+ TASK_ROOT: deps/mGPT_instructions
9
+ SMPL_PATH: deps/smpl #deps/smpl
10
+ TRANSFORM_PATH: deps/transforms/
11
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
12
+ KIT:
13
+ ROOT: datasets/kit-ml # KIT directory
14
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
15
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
16
+ HUMANML3D:
17
+ ROOT: datasets/nymeria_smpl_V4
18
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
19
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
20
+ NYMERIA:
21
+ # ROOT: datasets/nymeria_egolm_full
22
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
23
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
24
+ ROOT: datasets/nymeria_ourfoldE3
25
+ SPLIT_ROOT: datasets/nymeria_ourfoldE3
26
+ MEAN_STD_PATH: datasets/nymeria_ourfoldE3
27
+
28
+ METRIC:
29
+ TM2T:
30
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
31
+
32
+ model:
33
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
34
+
35
+ RENDER:
36
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
37
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
38
+ MODEL_PATH: deps/smpl/smpl_models/
39
+ FACES_PATH: deps/smplh/smplh.faces
configs/oursE/assets_subA_f0.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CONFIG_FOLDER: configs # Config files path
2
+ FOLDER: experiments # Experiment files saving path
3
+
4
+ TEST:
5
+ FOLDER: results # Testing files saving path
6
+
7
+ DATASET:
8
+ TASK_ROOT: deps/mGPT_instructions
9
+ SMPL_PATH: deps/smpl #deps/smpl
10
+ TRANSFORM_PATH: deps/transforms/
11
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
12
+ KIT:
13
+ ROOT: datasets/kit-ml # KIT directory
14
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
15
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
16
+ HUMANML3D:
17
+ ROOT: datasets/nymeria_smpl_V4
18
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
19
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
20
+ NYMERIA:
21
+ # ROOT: datasets/nymeria_egolm_full
22
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
23
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
24
+ ROOT: datasets/_subA_f0
25
+ SPLIT_ROOT: datasets/_subA_f0
26
+ MEAN_STD_PATH: datasets/_subA_f0
27
+
28
+ METRIC:
29
+ TM2T:
30
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
31
+
32
+ model:
33
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
34
+
35
+ RENDER:
36
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
37
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
38
+ MODEL_PATH: deps/smpl/smpl_models/
39
+ FACES_PATH: deps/smplh/smplh.faces
configs/oursE/ego3dlm_f0_eval.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE0_ego3dlm_eval
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: False
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/oursE/ego3dlm_f0_train.yaml ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE0_ego3dlm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 16 # Evaluating Batch size
41
+ SPLIT: val
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: False
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
117
+ NARRATION_CKPT: True # keep narration-best ckpts: the table scores verb F1, not pose
118
+ HONEST_SELECTION: True # select on ADE_head_idx0 (single-shot), not oracle best-of-3
119
+ SAVE_TOP_K: 1
120
+ WANDB:
121
+ params:
122
+ project: motiongpt
configs/oursE/ego3dlm_f1_eval.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE1_ego3dlm_eval
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: False
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/oursE/ego3dlm_f1_train.yaml ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE1_ego3dlm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 16 # Evaluating Batch size
41
+ SPLIT: val
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: False
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
117
+ NARRATION_CKPT: True # keep narration-best ckpts: the table scores verb F1, not pose
118
+ HONEST_SELECTION: True # select on ADE_head_idx0 (single-shot), not oracle best-of-3
119
+ SAVE_TOP_K: 1
120
+ WANDB:
121
+ params:
122
+ project: motiongpt
configs/oursE/ego3dlm_f2_eval.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE2_ego3dlm_eval
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: False
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/oursE/ego3dlm_f2_train.yaml ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE2_ego3dlm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 16 # Evaluating Batch size
41
+ SPLIT: val
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: False
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
117
+ NARRATION_CKPT: True # keep narration-best ckpts: the table scores verb F1, not pose
118
+ HONEST_SELECTION: True # select on ADE_head_idx0 (single-shot), not oracle best-of-3
119
+ SAVE_TOP_K: 1
120
+ WANDB:
121
+ params:
122
+ project: motiongpt
configs/oursE/ego3dlm_f3_eval.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE3_ego3dlm_eval
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: False
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/oursE/ego3dlm_f3_train.yaml ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE3_ego3dlm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 16 # Evaluating Batch size
41
+ SPLIT: val
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: False
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
117
+ NARRATION_CKPT: True # keep narration-best ckpts: the table scores verb F1, not pose
118
+ HONEST_SELECTION: True # select on ADE_head_idx0 (single-shot), not oracle best-of-3
119
+ SAVE_TOP_K: 1
120
+ WANDB:
121
+ params:
122
+ project: motiongpt
configs/oursE/egolm_f0_eval.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE0_egolm_eval
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'experiments/mgpt_egovlm_merged_grpo/OURSE0_egolm/checkpoints/last.ckpt' # selrule=last
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: True
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/oursE/egolm_f0_rerun_train.yaml ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE0_egolm_r2
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 16 # Evaluating Batch size
41
+ SPLIT: val
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: True
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
117
+ NARRATION_CKPT: True # re-run carries narration ckpts (original f0 predates the fix)
118
+ SAVE_TOP_K: 1
119
+ WANDB:
120
+ params:
121
+ project: motiongpt
configs/oursE/egolm_f0_train.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE0_egolm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 16 # Evaluating Batch size
41
+ SPLIT: val
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: True
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
117
+ SAVE_TOP_K: 1
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/oursE/egolm_f1_eval.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE1_egolm_eval
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: True
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/oursE/egolm_f1_rerun_train.yaml ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE1_egolm_r2
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 16 # Evaluating Batch size
41
+ SPLIT: val
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: True
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
117
+ NARRATION_CKPT: True # re-run carries narration ckpts (original f1 predates the fix)
118
+ SAVE_TOP_K: 1
119
+ WANDB:
120
+ params:
121
+ project: motiongpt
configs/oursE/egolm_f1_train.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE1_egolm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 16 # Evaluating Batch size
41
+ SPLIT: val
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: True
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
117
+ SAVE_TOP_K: 1
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/oursE/egolm_f2_eval.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE2_egolm_eval
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 999999 # End epoch
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 4 # Evaluating Batch size
41
+ SPLIT: test
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: True
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 1 # 10
117
+ SAVE_TOP_K: 10
118
+ WANDB:
119
+ params:
120
+ project: motiongpt
configs/oursE/egolm_f2_train.yaml ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
2
+ NAME: OURSE2_egolm
3
+ # NAME: Instruct_egovlm_debug # Experiment names
4
+ ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
5
+ NUM_NODES: 1 # Number of GPU nodes for distributed training
6
+ DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
7
+
8
+ TRAIN:
9
+ #---------------------------------
10
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
11
+ #---------------------------------
12
+ NUM_WORKERS: 16 # Number of workers
13
+ BATCH_SIZE: 8 # Size of batches
14
+ GRADIENT_ACCUMULATION_STEP: 1
15
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
16
+ RESUME: '' # Resume training from this path
17
+ PRETRAINED_LM: ''
18
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
19
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
20
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
21
+ VISUALIZE: False
22
+ VISUALIZE_INTERVAL: 500
23
+
24
+ INIT_SPECIAL_TOKENS: False
25
+ #resume시에 제외
26
+ LOAD_CKPT_WO_TP_ENC: True
27
+ #grpo시에 checkpoint load 전에 불러와야함
28
+ CHAIN_OF_THOUGHT: True
29
+
30
+ OPTIM:
31
+ target: AdamW
32
+ params:
33
+ lr: 1e-4
34
+ betas: [0.9, 0.99]
35
+ weight_decay: 0.0
36
+
37
+
38
+ # Evaluating Configuration
39
+ EVAL:
40
+ BATCH_SIZE: 16 # Evaluating Batch size
41
+ SPLIT: val
42
+ VISUALIZE: True
43
+ VISUALIZE_INTERVAL: 1000
44
+
45
+ TEST:
46
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
47
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
48
+ SPLIT: test
49
+ BATCH_SIZE: 32 # training Batch size
50
+ VISUALIZE_INTERVAL: 140
51
+
52
+ DATASET:
53
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
54
+ CODE_PATH: TOKENS
55
+ MIN_MOTION_LEN: 45
56
+ MAX_MOTION_LEN: 300
57
+ NUM_3D_POINTS: 10000
58
+ VOXEL_SIZE: 0.15
59
+ UNIT_LEN: 4
60
+ NYMERIA:
61
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
62
+
63
+ METRIC:
64
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
65
+ SBERT: True
66
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
67
+ MATCHING: True
68
+ DIVERSITY: True
69
+
70
+ LOSS:
71
+ LAMBDA_FEATURE: 1.0
72
+ LAMBDA_VELOCITY: 0.5
73
+ LAMBDA_COMMIT: 0.02
74
+ LAMBDA_CLS: 1.0
75
+ LAMBDA_REG: 0.0
76
+ LAMBDA_HEAD: 0.0
77
+ REG_OPTION: 'raw' #'token'
78
+
79
+ ABLATION:
80
+ RECONS_LOSS: 'l1_smooth'
81
+ EGOLM_BASELINE: True
82
+ ONLY_MOTION: False
83
+ ONLY_FUTURE: False
84
+ IT_JOINT_TRAINING: True
85
+ 4TASKS: False
86
+ REG_GLOBAL: True
87
+ TRAIN_ALL_AT_ONCE: True
88
+
89
+ REVERSE: True
90
+
91
+ # relative three-point representation
92
+ REL_TP: False
93
+ ADD_REL_TP: True # override rel_tp
94
+ NORM_TP: True
95
+
96
+
97
+ model:
98
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
99
+ params:
100
+ num_query_token: 32
101
+ freeze_lm: false
102
+ freeze_qformer: false
103
+ freeze_vproj: false
104
+ condition: 'text'
105
+ task: 'egovlm_4tasks'
106
+ lm: ${lm.gpt2_medium_grpo}
107
+ motion_vae: ${vq.default_pq}
108
+ tp_special_token: True
109
+ max_token_length: 480
110
+ dummy_motion: False
111
+ p_dummy: 0.5
112
+ per_token: True
113
+
114
+ LOGGER:
115
+ TYPE: ['tensorboard', 'wandb']
116
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
117
+ NARRATION_CKPT: True # keep narration-best ckpts: the table scores verb F1, not pose
118
+ SAVE_TOP_K: 1
119
+ WANDB:
120
+ params:
121
+ project: motiongpt