diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..fcae75170d989d0214c924ee55489ff9ee421eef
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,35 @@
+# Python
+__pycache__/
+*.py[cod]
+*.egg-info/
+.eggs/
+build/
+dist/
+
+# Experiment outputs & logs
+experiments/
+logs/
+*.log
+wandb/
+events.out.tfevents.*
+
+# User-provided roots (symlinks; see README section 4)
+/checkpoints
+/datasets
+/deps
+
+# Large derived QA labels (provide separately; see README section 4)
+/obstacle_labels
+
+# Model weights / large artifacts
+*.ckpt
+*.tar
+*.pth
+*.pt
+
+# OS junk
+.DS_Store
+._*
+
+# Smoke/test harnesses
+_smoke*.py
diff --git a/HF_NOTES.md b/HF_NOTES.md
new file mode 100644
index 0000000000000000000000000000000000000000..dc3ed96b655b7435d05eb30bada33d0819093b34
--- /dev/null
+++ b/HF_NOTES.md
@@ -0,0 +1,14 @@
+# Notes on this upload
+
+This is a snapshot of the Ego3DLM code (ECCV 2026; README.md is the authors' own) used for the **EgoLM**
+baseline of protocol v2 (dataset: https://huggingface.co/datasets/po03087/nymeria-adt-protocol-v2, see its
+`CLAUDE.md` and `PROTOCOL_v2.md`).
+
+- The code is **unmodified**: the protocol-v2 changes to EgoLM (20 Hz motion with a retrained tokenizer, no 3D
+ scene, MPS device head input canonicalized by the observed head, a 44-way verb head on a placeholder token,
+ 8 epochs of instruction tuning from GPT-2 medium, no validation loop) are not applied yet.
+- `deps/t2m/` holds the T2M evaluators and GloVe files that `prepare/download_t2m_evaluators.sh` downloads.
+- **Not included:** the SMPL / SMPL-H / MANO body models (their license forbids redistribution; get them
+ with `prepare/download_smpl_model.sh` / `prepare/smplh.sh` or from https://smpl.is.tue.mpg.de), model
+ checkpoints, datasets, `obstacle_labels/`, `flan-t5-base` (download from Hugging Face), experiment outputs.
+- `checkpoints/`, `datasets/` and `deps/` are expected at the repository root (the original tree used symlinks).
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..387755b099890362561b7045c31f6dbcd9812daf
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 OpenMotionLab
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..0399ffa24b44b8b755fc192e09b8cbbdaf9ca46b
--- /dev/null
+++ b/README.md
@@ -0,0 +1,151 @@
+
+
+# Ego3DLM: Ego-Human Motion Prediction with 3D-Aware LLM
+
+**ECCV 2026**
+
+
+
+Ego3DLM forecasts human motion from an egocentric perspective by grounding a language
+model in the **3D spatial and semantic context** of the surrounding environment. Given
+three-point motion tracking (head + hands), 3D scene features, and egocentric video,
+Ego3DLM **simultaneously decodes past pose, future pose, past narration, and future
+narration in a single autoregressive pass**, so that predicted poses and descriptions
+are grounded in one another for cross-modal and temporal consistency.
+
+The model is trained in three stages on top of a frozen motion tokenizer:
+
+1. **Stage I — Spatial-Semantic Scene Awareness Pretraining.** Encode the 3D scene and
+ inject it into the LM, training spatial and semantic scene understanding (scene QA +
+ obstacle/free-space QA).
+2. **Stage II — Multi-Modal Multi-Task Instruction Tuning.** Holistically train past/future
+ pose tracking and prediction alongside past/future narration in a single pass.
+3. **Stage III — Multi-Modal Reward GRPO.** Reinforcement finetuning with intra- and
+ inter-modal rewards that directly optimize pose–language fidelity.
+
+Experiments on the **Nymeria** benchmark show state-of-the-art performance on future pose
+prediction, past motion tracking, and language description.
+
+## 0. News
+- **2026** — Ego3DLM is accepted to **ECCV 2026**. Code released for reproducibility.
+
+## 1. Environment Setup
+Tested with Python 3.11, CUDA 11.8, PyTorch 2.0.0, Transformers 4.46.3, PyTorch-Lightning 2.0.0.
+
+```bash
+# create env
+conda create -n ego3dlm python=3.11 -y
+conda activate ego3dlm
+
+# install pinned dependencies
+pip install -r requirements-freeze.txt
+```
+
+The repository expects three top-level symlinks pointing to your data / dependency /
+checkpoint roots (see [Section 4](#4-dependencies--pretrained-models)):
+
+```bash
+ln -s /path/to/checkpoints ./checkpoints
+ln -s /path/to/datasets ./datasets
+ln -s /path/to/deps ./deps
+```
+
+The obstacle / free-space QA labels (`obstacle_labels/`, required by Stage-I pretraining and
+CoT) are distributed separately — download them and place the directory at `./obstacle_labels`.
+
+## 2. Dataset
+*(To be added.)*
+
+## 3. Data Preprocessing
+*(To be added.)*
+
+## 4. Dependencies & Pretrained Models
+All paths below are relative to the repository root and resolved through the
+`checkpoints/`, `datasets/`, and `deps/` symlinks.
+
+### Required for every stage
+| Artifact | Path | Notes |
+|---|---|---|
+| Motion PQ-VAE tokenizer | `checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt` | frozen in Stages I–III |
+| SMPL body models | `deps/smpl_models/` | motion ↔ joint recovery |
+| Instruction templates | `deps/mGPT_instructions/` | prompt templates (`DATASET.TASK_ROOT`) |
+| Obstacle / free-space labels | `obstacle_labels/` | used by the QA pretraining + CoT |
+| GPT-2 medium backbone | (auto-downloaded from Hugging Face) | LM backbone |
+
+### Required for evaluation
+| Artifact | Path | Notes |
+|---|---|---|
+| Text–motion evaluator | `checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar` | matching / R-precision / FID |
+| GloVe + mean/std | `deps/t2m/` | evaluator inputs |
+
+### Stage checkpoints (released)
+| Stage | Path | Consumed by |
+|---|---|---|
+| Stage I (pretrain) | `checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt` | Stage II `PRETRAINED` |
+| 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` |
+
+## 5. Training & Evaluation
+All stages share a single entry point, `train_egovlm_stage2.py`; the stage is selected by
+the config (`TRAIN.STAGE`). The motion tokenizer (Stage 0) is a prerequisite that produces
+the frozen PQ-VAE used by Stages I–III.
+
+### Stage 0 — Motion PQ-VAE tokenizer
+```bash
+CUDA_VISIBLE_DEVICES=0 python -m train_egovlm_stage2 \
+ --cfg configs/config_h3d_stage1_pq_4096_64.yaml \
+ --nodebug
+```
+
+### Stage I — Spatial-Semantic Scene Awareness Pretraining
+```bash
+CUDA_VISIBLE_DEVICES=0 python -m train_egovlm_stage2 \
+ --cfg configs/egovlm_gpt2_medium_stage2_pretrain/s2t_obstacle_with_sceneqa_s4o1.yaml \
+ --nodebug
+```
+
+### Stage II — Multi-Modal Multi-Task Instruction Tuning
+```bash
+CUDA_VISIBLE_DEVICES=0 python -m train_egovlm_stage2 \
+ --cfg configs/egovlm_gpt2_medium_stage3_stp2mt/from_s2t_obstacle_scene_s4o1_cot.yaml \
+ --nodebug
+```
+
+### Stage III — Multi-Modal Reward GRPO
+```bash
+CUDA_VISIBLE_DEVICES=0,1 python -m train_egovlm_stage2 \
+ --cfg configs/egovlm_gpt2_medium_grpo_stp2mt/from_obs_scene_cot_bs4_4.yaml \
+ --nodebug
+```
+
+### Evaluation
+Evaluation reuses the same per-stage config and entry point `validate_egovlm_stage2.py`.
+The checkpoint to evaluate is the one set in `TRAIN.PRETRAINED` of the stage config
+(`validate_egovlm_stage2.py` loads `TRAIN.PRETRAINED` and runs `trainer.validate`).
+So, to evaluate a trained model, point `TRAIN.PRETRAINED` at that checkpoint and run:
+
+```bash
+# Stage I (pretrain) — scene / obstacle QA metrics
+CUDA_VISIBLE_DEVICES=0 python -m validate_egovlm_stage2 \
+ --cfg configs/egovlm_gpt2_medium_stage2_pretrain/s2t_obstacle_with_sceneqa_s4o1.yaml --nodebug
+
+# Stage II (instruction-tuned) — 4-task pose / language metrics
+CUDA_VISIBLE_DEVICES=0 python -m validate_egovlm_stage2 \
+ --cfg configs/egovlm_gpt2_medium_stage3_stp2mt/from_s2t_obstacle_scene_s4o1_cot.yaml --nodebug
+
+# Stage III (GRPO) — set GRPO_VAL: True in the config; evaluates the GRPO policy
+CUDA_VISIBLE_DEVICES=0 python -m validate_egovlm_stage2 \
+ --cfg configs/egovlm_gpt2_medium_grpo_stp2mt/from_obs_scene_cot_bs4_4.yaml --nodebug
+```
+
+`--device ` and `--batch_size ` may be passed to override the config. The evaluated
+checkpoint is selected purely by `TRAIN.PRETRAINED`; for Stage II/III set it to the
+trained Stage-II / Stage-III checkpoint rather than the pretrain checkpoint used for init.
+
+## Citation
+```bibtex
+@inproceedings{ego3dlm2026,
+ title = {Ego-Human Motion Prediction with 3D-Aware LLM},
+ booktitle = {European Conference on Computer Vision (ECCV)},
+ year = {2026}
+}
+```
diff --git a/configs/assets_egovlm.yaml b/configs/assets_egovlm.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4e6de342a16d12e7a43a8f0dbfdeea36231bc6a2
--- /dev/null
+++ b/configs/assets_egovlm.yaml
@@ -0,0 +1,39 @@
+CONFIG_FOLDER: configs # Config files path
+FOLDER: experiments # Experiment files saving path
+
+TEST:
+ FOLDER: results # Testing files saving path
+
+DATASET:
+ TASK_ROOT: deps/mGPT_instructions
+ SMPL_PATH: deps/smpl #deps/smpl
+ TRANSFORM_PATH: deps/transforms/
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
+ KIT:
+ ROOT: datasets/kit-ml # KIT directory
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
+ HUMANML3D:
+ ROOT: datasets/nymeria_smpl_V4
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
+ NYMERIA:
+ # ROOT: datasets/nymeria_egolm_full
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
+ ROOT: datasets/nymeria_egolm_full_v6_2
+ SPLIT_ROOT: datasets/nymeria_egolm_full_v6_2
+ MEAN_STD_PATH: datasets/nymeria_egolm_full_v6_2
+
+METRIC:
+ TM2T:
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
+
+model:
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
+
+RENDER:
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
+ MODEL_PATH: deps/smpl/smpl_models/
+ FACES_PATH: deps/smplh/smplh.faces
diff --git a/configs/config_h3d_stage1_pq_4096_64.yaml b/configs/config_h3d_stage1_pq_4096_64.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..96f152ea048d17c13034b6fa289c5f6db91caee3
--- /dev/null
+++ b/configs/config_h3d_stage1_pq_4096_64.yaml
@@ -0,0 +1,73 @@
+NAME: VQVAE_pq_full_60_fps_4096_64 # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: vae # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 256 # Size of batches
+ END_EPOCH: 999999 # End epoch
+ GRADIENT_ACCUMULATION_STEP: 1 # no gradient accumulation (effective batch size = BATCH_SIZE)
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ PRETRAINED: '' #'/mnt/jaewoo4tb/yujinbae/egomotion/MotionGPT/experiments/mgpt_egovlm/VQVAE_pq_4096_64/checkpoints/min-MPJPEep=0.ckpt' # Preatrained model path
+ # PRETRAINED_VAE: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 2e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 32 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 500
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ NUM_3D_POINTS: 10000
+ VISUALIZE_INTERVAL: 140
+
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm.NymeriaDataModule
+ MIN_MOTION_LEN: 5
+ UNIT_LEN: 4
+
+METRIC:
+ TYPE: ['MRMetrics']
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 1.0
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+
+model:
+ target: mGPT.models.mgpt_egovlm.MotionGPT
+ params:
+ condition: 'text'
+ task: 't2m'
+ lm: ${lm.default}
+ motion_vae: ${vq.default_pq}
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 10
+ SAVE_TOP_K: 0
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/default_egovlm.yaml b/configs/default_egovlm.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..97fb0896e06f6c6794aed87addb7a0b65c581e87
--- /dev/null
+++ b/configs/default_egovlm.yaml
@@ -0,0 +1,145 @@
+SEED_VALUE: 1234 # Seed value
+DEBUG: True # Debug mode
+FULL_CONFIG: false
+
+TRAIN:
+ SPLIT: 'train' # Training split name
+ NUM_WORKERS: 8 # Number of workers
+ BATCH_SIZE: 4 # Size of batches
+ END_EPOCH: 2000 # End epoch
+
+ RESUME: '' # Experiment path to be resumed training
+ PRETRAINED_VAE: '' # Pretrained vae/vqvae model path
+ PRETRAINED: '' # Pretrained model path
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 2e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+ LR_SCHEDULER:
+ target: CosineAnnealingLR
+ params:
+ T_max: 30 # overridden by our GRPO yaml's LR_SCHEDULER block
+ eta_min: 1e-6
+
+EVAL:
+ SPLIT: 'val' # Validation split name
+ BATCH_SIZE: 4 # Validation Batch size
+ NUM_WORKERS: 8 # Validation Batch size
+
+TEST:
+ CHECKPOINTS: '' # Pretrained model path
+ SPLIT: 'test' # Testing split name
+ BATCH_SIZE: 16 # Testing Batch size
+ NUM_WORKERS: 8 # Testing Batch size
+
+ SAVE_PREDICTIONS: False # Weather to save predictions
+ COUNT_TIME: False # Weather to count time during test
+ REPLICATION_TIMES: 20 # Number of times to replicate the test
+ REP_I: 0 # For counting replication times
+
+model:
+ target: mGPT.models.mgpt_egovlm.MotionGPT
+ params:
+ condition: 'text'
+ task: 'pred'
+ lm: ${lm.default}
+ motion_vae: ${vq.default}
+
+ # Related parameters
+ stage: ${TRAIN.STAGE}
+ debug: ${DEBUG}
+ codebook_size: ${model.params.motion_vae.params.code_num}
+ metrics_dict: ${METRIC.TYPE}
+
+LOSS:
+ LAMBDA_REC: 1.0 # Lambda for reconstruction losses
+ LAMBDA_JOINT: 1.0 # Lambda for joint losses
+
+ LAMBDA_LATENT: 1e-5 # Lambda for latent losses
+ LAMBDA_KL: 1e-5 # Lambda for kl losses
+ LAMBDA_GEN: 1.0 # Lambda for text-motion generation losses
+ LAMBDA_CROSS: 1.0 # Lambda for cross-reconstruction losses
+ LAMBDA_CYCLE: 1.0 # Lambda for cycle losses
+ LAMBDA_PRIOR: 0.0 # Lambda for diffusion prior losses
+
+ LAMBDA_VELOCITY: 0.5 # Lambda for velocity losses
+ LAMBDA_COMMIT: 0.02 # Lambda for commitment losses
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+
+METRIC:
+ TASK: 'pred'
+ FORCE_IN_METER: True
+ DIST_SYNC_ON_STEP: True
+ MM_NUM_SAMPLES: 100 # Number of samples for multimodal test
+ MM_NUM_REPEATS: 30 # Number of repeats for multimodal test
+ MM_NUM_TIMES: 10 # Number of times to repeat the multimodal test
+ DIVERSITY_TIMES: 300 # Number of times to repeat the diversity test
+ TM2T: ${evaluator.tm2t}
+
+DATASET:
+ target: mGPT.data.HumanML3D.HumanML3DDataModule
+ CODE_PATH: 'VQVAE'
+ TASK_ROOT: ''
+ TASK_PATH: ''
+ NFEATS: 263
+ KIT:
+ MAX_MOTION_LEN: 196
+ MIN_MOTION_LEN: 24
+ MAX_TEXT_LEN: 20
+ PICK_ONE_TEXT: true
+ FRAME_RATE: 12.5
+ UNIT_LEN: 4
+ HUMANML3D:
+ MAX_MOTION_LEN: 196
+ MIN_MOTION_LEN: 90
+ MAX_TEXT_LEN: 20
+ PICK_ONE_TEXT: true
+ FRAME_RATE: 10.0
+ UNIT_LEN: 4
+ STD_TEXT: False
+
+ABLATION:
+ # For MotionGPT
+ use_length: False
+ predict_ratio: 0.2 # 0.2 # 0.0 for motion prediction except for the first motion
+ inbetween_ratio: 0.25
+ image_size: 256
+
+ # For Motion-latent-diffusion
+ VAE_TYPE: 'actor' # vae ablation: actor or mcross
+ VAE_ARCH: 'encoder_decoder' # mdiffusion vae architecture
+ PE_TYPE: 'actor' # mdiffusion mld or actor
+ DIFF_PE_TYPE: 'actor' # mdiffusion mld or actor
+ SKIP_CONNECT: False # skip connection for denoiser va
+ MLP_DIST: False # use linear to expand mean and std rather expand token nums
+ IS_DIST: False # Mcross distribution kl
+ PREDICT_EPSILON: True # noise or motion
+
+DEMO:
+ EXAMPLE: null
+ TASK: pred
+
+LOGGER:
+ VAL_EVERY_STEPS: 10
+ LOGGERS: ['tensorboard', 'wandb']
+ TENSORBOARD:
+ target: pytorch_lightning.loggers.TensorBoardLogger
+ params:
+ save_dir: ${FOLDER_EXP}
+ name: 'tensorboard'
+ version: ''
+ WANDB:
+ target: pytorch_lightning.loggers.WandbLogger
+ params:
+ project: null
+ offline: False
+ id: null
+ version: ''
+ name: ${NAME}
+ save_dir: ${FOLDER_EXP}
diff --git a/configs/egovlm_gpt2_medium_grpo_stp2mt/from_obs_scene_cot_bs4_4.yaml b/configs/egovlm_gpt2_medium_grpo_stp2mt/from_obs_scene_cot_bs4_4.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0964c93b901fd03002bc810e2a1e933eddcccc02
--- /dev/null
+++ b/configs/egovlm_gpt2_medium_grpo_stp2mt/from_obs_scene_cot_bs4_4.yaml
@@ -0,0 +1,124 @@
+NAME: Instruct_egovlm_pq_gpt2_medium_from_obs_scene_cot_stp2mt_grpo_1_08_002_0001_lr1e-6_allade_bs4 # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0,1] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_grpo # stage "vae" , "lm_pretrain", "lm_instruct", "lm_grpo"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 2 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ PRETRAINED: 'checkpoints/Instruct_egovlm_stp2mt_reverse_from_s2t_obs_scene_s4o1_cot_grid64/min-ADE_head-epoch=18-step=21527.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ GRPO_REF_MODEL_PATH: 'checkpoints/Instruct_egovlm_stp2mt_reverse_from_s2t_obs_scene_s4o1_cot_grid64/min-ADE_head-epoch=18-step=21527.ckpt'
+ GRPO_REF_DEVICE: 'cuda:0'
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: True
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-6
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 2 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: obstacle_labels
+
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: False
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ GRPO_NUM_SAMPLES: 6
+ GRPO_MAX_NEW_TOKENS: 256
+ GRPO_TEMPERATURE: 1.0
+ GRPO_TOP_P: 0.9
+ GRPO_TOP_K: 50
+ GRPO_MOTION_WEIGHT_PAST: 1.0
+ GRPO_MOTION_WEIGHT_FUTURE: 0
+ GRPO_TEXT_WEIGHT: 0.8
+ GRPO_MATCHING_DIST_WEIGHT: 0.02
+ GRPO_MISSING_MOTION_PENALTY: 1.0
+ GRPO_BETA: 0.001
+ GRPO_ADE_HEAD_FRAME_LENGTH: ''
+ GRPO_ADE_AT_ONCE: True
+ TRAIN_ALL_AT_ONCE: True
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ VAL_INTERVAL: 0.1 # val 4 times in an epoch
+ SAVE_TOP_K: 0
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/egovlm_gpt2_medium_stage2_pretrain/s2t_obstacle_with_sceneqa_s4o1.yaml b/configs/egovlm_gpt2_medium_stage2_pretrain/s2t_obstacle_with_sceneqa_s4o1.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..38d2e20150e70e3b4c95d00390f489353a158a76
--- /dev/null
+++ b/configs/egovlm_gpt2_medium_stage2_pretrain/s2t_obstacle_with_sceneqa_s4o1.yaml
@@ -0,0 +1,95 @@
+# NAME: Pretrain_egovlm_egolmrep_pq_qwen25_3b_s2t_obstacle_with_sceneqa_grid64_s1o4 # Experiment names
+NAME: Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1 # Experiment names
+# NAME: Pretrain_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_pretrain # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 16 # Size of batches (Qwen2.5-3B is ~8.5x larger than GPT-2 medium)
+ GRADIENT_ACCUMULATION_STEP: 1 # effective batch size = BATCH_SIZE * accumulation = 16 (matches GPT-2 config)
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ PRETRAINED: # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 10000
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+ VISUALIZE_INTERVAL_3DQA: 1000
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: obstacle_labels
+
+METRIC:
+ TYPE: ['T2TMetrics', 'ObstacleMetrics']
+ MATCHING: False
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ # predict_ratio: 0.4
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'sceneqa_obstacleqa' # 'pred'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+
+ qa_with_3d: true
+ qa_with_video: true
+ # task_probs: [1, 4] # s1o4
+ task_probs: [4, 1] # s4o1
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1
+ CKPT_EVERY_EPOCHS: 5
+ SAVE_TOP_K: 0
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/egovlm_gpt2_medium_stage3_stp2mt/from_s2t_obstacle_scene_s4o1_cot.yaml b/configs/egovlm_gpt2_medium_stage3_stp2mt/from_s2t_obstacle_scene_s4o1_cot.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..d085652d8db7a616efd1f2549be83e4e2cc306bb
--- /dev/null
+++ b/configs/egovlm_gpt2_medium_stage3_stp2mt/from_s2t_obstacle_scene_s4o1_cot.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: Instruct_egovlm_stp2mt_reverse_from_s2t_obs_scene_s4o1_cot_grid64 # Experiment names
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: False
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/evaluator/tm2t.yaml b/configs/evaluator/tm2t.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2cf48229d451e8756930fdd220441ece761221d4
--- /dev/null
+++ b/configs/evaluator/tm2t.yaml
@@ -0,0 +1,19 @@
+t2m_textencoder:
+ target: mGPT.archs.tm2t_evaluator.TextEncoderBiGRUCo
+ params:
+ word_size: 300
+ pos_size: 15
+ hidden_size: 512
+ output_size: 512
+t2m_moveencoder:
+ target: mGPT.archs.tm2t_evaluator.MovementConvEncoder
+ params:
+ input_size: ${eval:${DATASET.NFEATS} - 4}
+ hidden_size: 512
+ output_size: 512
+t2m_motionencoder:
+ target: mGPT.archs.tm2t_evaluator.MotionEncoderBiGRUCo
+ params:
+ input_size: ${evaluator.tm2t.t2m_moveencoder.params.output_size}
+ hidden_size: 1024
+ output_size: 512
diff --git a/configs/lm/default.yaml b/configs/lm/default.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ce253703433e9cbef7193c3393d9e22540906c32
--- /dev/null
+++ b/configs/lm/default.yaml
@@ -0,0 +1,11 @@
+target: mGPT.archs.mgpt_lm.MLM
+params:
+ # model_type: egovlm_t5_humanml3d #egovlm_t5 #t5
+ # model_path: google/flan-t5-xl #./deps/flan-t5-base
+ model_type: t5_custom_motion #egovlm_t5 #t5
+ model_path: ./deps/flan-t5-base #./deps/flan-t5-base
+ peft_cfg_path: null
+ stage: ${TRAIN.STAGE}
+ motion_codebook_size: ${model.params.codebook_size}
+ ablation: ${ABLATION}
+ predict_ratio: 0.2
diff --git a/configs/lm/gpt2_medium_grpo.yaml b/configs/lm/gpt2_medium_grpo.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3e44432db9254d37ec569d22c11264d1ac02a721
--- /dev/null
+++ b/configs/lm/gpt2_medium_grpo.yaml
@@ -0,0 +1,9 @@
+target: mGPT.archs.mgpt_lm_merged_grpo.MLM
+params:
+ model_type: gpt2_custom_motion_3d_feature
+ model_path: openai-community/gpt2-medium
+ peft_cfg_path: ''
+ stage: ${TRAIN.STAGE}
+ motion_codebook_size: ${model.params.codebook_size}
+ ablation: ${ABLATION}
+ predict_ratio: 1.0
diff --git a/configs/ourfolds/assets_ext.yaml b/configs/ourfolds/assets_ext.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..0308d2598322aa607772ed8268f0ce203f19f8ea
--- /dev/null
+++ b/configs/ourfolds/assets_ext.yaml
@@ -0,0 +1,39 @@
+CONFIG_FOLDER: configs # Config files path
+FOLDER: experiments # Experiment files saving path
+
+TEST:
+ FOLDER: results # Testing files saving path
+
+DATASET:
+ TASK_ROOT: deps/mGPT_instructions
+ SMPL_PATH: deps/smpl #deps/smpl
+ TRANSFORM_PATH: deps/transforms/
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
+ KIT:
+ ROOT: datasets/kit-ml # KIT directory
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
+ HUMANML3D:
+ ROOT: datasets/nymeria_smpl_V4
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
+ NYMERIA:
+ # ROOT: datasets/nymeria_egolm_full
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
+ ROOT: datasets/nymeria_ours_ext
+ SPLIT_ROOT: datasets/nymeria_ours_ext
+ MEAN_STD_PATH: datasets/nymeria_ours_ext
+
+METRIC:
+ TM2T:
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
+
+model:
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
+
+RENDER:
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
+ MODEL_PATH: deps/smpl/smpl_models/
+ FACES_PATH: deps/smplh/smplh.faces
diff --git a/configs/ourfolds/assets_f0.yaml b/configs/ourfolds/assets_f0.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..fe0f784ea66d4b1a2003aa76441a235f655b496d
--- /dev/null
+++ b/configs/ourfolds/assets_f0.yaml
@@ -0,0 +1,39 @@
+CONFIG_FOLDER: configs # Config files path
+FOLDER: experiments # Experiment files saving path
+
+TEST:
+ FOLDER: results # Testing files saving path
+
+DATASET:
+ TASK_ROOT: deps/mGPT_instructions
+ SMPL_PATH: deps/smpl #deps/smpl
+ TRANSFORM_PATH: deps/transforms/
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
+ KIT:
+ ROOT: datasets/kit-ml # KIT directory
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
+ HUMANML3D:
+ ROOT: datasets/nymeria_smpl_V4
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
+ NYMERIA:
+ # ROOT: datasets/nymeria_egolm_full
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
+ ROOT: datasets/nymeria_ourfold0
+ SPLIT_ROOT: datasets/nymeria_ourfold0
+ MEAN_STD_PATH: datasets/nymeria_ourfold0
+
+METRIC:
+ TM2T:
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
+
+model:
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
+
+RENDER:
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
+ MODEL_PATH: deps/smpl/smpl_models/
+ FACES_PATH: deps/smplh/smplh.faces
diff --git a/configs/ourfolds/assets_f1.yaml b/configs/ourfolds/assets_f1.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ed3f226f3b5d049d84261b173b31af947079fcd6
--- /dev/null
+++ b/configs/ourfolds/assets_f1.yaml
@@ -0,0 +1,39 @@
+CONFIG_FOLDER: configs # Config files path
+FOLDER: experiments # Experiment files saving path
+
+TEST:
+ FOLDER: results # Testing files saving path
+
+DATASET:
+ TASK_ROOT: deps/mGPT_instructions
+ SMPL_PATH: deps/smpl #deps/smpl
+ TRANSFORM_PATH: deps/transforms/
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
+ KIT:
+ ROOT: datasets/kit-ml # KIT directory
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
+ HUMANML3D:
+ ROOT: datasets/nymeria_smpl_V4
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
+ NYMERIA:
+ # ROOT: datasets/nymeria_egolm_full
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
+ ROOT: datasets/nymeria_ourfold1
+ SPLIT_ROOT: datasets/nymeria_ourfold1
+ MEAN_STD_PATH: datasets/nymeria_ourfold1
+
+METRIC:
+ TM2T:
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
+
+model:
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
+
+RENDER:
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
+ MODEL_PATH: deps/smpl/smpl_models/
+ FACES_PATH: deps/smplh/smplh.faces
diff --git a/configs/ourfolds/assets_f2.yaml b/configs/ourfolds/assets_f2.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..28c49adc52fbadb72ffba168b0d0320bdb2bd94c
--- /dev/null
+++ b/configs/ourfolds/assets_f2.yaml
@@ -0,0 +1,39 @@
+CONFIG_FOLDER: configs # Config files path
+FOLDER: experiments # Experiment files saving path
+
+TEST:
+ FOLDER: results # Testing files saving path
+
+DATASET:
+ TASK_ROOT: deps/mGPT_instructions
+ SMPL_PATH: deps/smpl #deps/smpl
+ TRANSFORM_PATH: deps/transforms/
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
+ KIT:
+ ROOT: datasets/kit-ml # KIT directory
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
+ HUMANML3D:
+ ROOT: datasets/nymeria_smpl_V4
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
+ NYMERIA:
+ # ROOT: datasets/nymeria_egolm_full
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
+ ROOT: datasets/nymeria_ourfold2
+ SPLIT_ROOT: datasets/nymeria_ourfold2
+ MEAN_STD_PATH: datasets/nymeria_ourfold2
+
+METRIC:
+ TM2T:
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
+
+model:
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
+
+RENDER:
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
+ MODEL_PATH: deps/smpl/smpl_models/
+ FACES_PATH: deps/smplh/smplh.faces
diff --git a/configs/ourfolds/assets_f3.yaml b/configs/ourfolds/assets_f3.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..650294b8ae56e5f6ebdc0940cb90a48c1521f739
--- /dev/null
+++ b/configs/ourfolds/assets_f3.yaml
@@ -0,0 +1,39 @@
+CONFIG_FOLDER: configs # Config files path
+FOLDER: experiments # Experiment files saving path
+
+TEST:
+ FOLDER: results # Testing files saving path
+
+DATASET:
+ TASK_ROOT: deps/mGPT_instructions
+ SMPL_PATH: deps/smpl #deps/smpl
+ TRANSFORM_PATH: deps/transforms/
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
+ KIT:
+ ROOT: datasets/kit-ml # KIT directory
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
+ HUMANML3D:
+ ROOT: datasets/nymeria_smpl_V4
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
+ NYMERIA:
+ # ROOT: datasets/nymeria_egolm_full
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
+ ROOT: datasets/nymeria_ourfold3
+ SPLIT_ROOT: datasets/nymeria_ourfold3
+ MEAN_STD_PATH: datasets/nymeria_ourfold3
+
+METRIC:
+ TM2T:
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
+
+model:
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
+
+RENDER:
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
+ MODEL_PATH: deps/smpl/smpl_models/
+ FACES_PATH: deps/smplh/smplh.faces
diff --git a/configs/ourfolds/ego3dlm_f0.yaml b/configs/ourfolds/ego3dlm_f0.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..373add21ee74b173f8438ca8412a950b31d4f340
--- /dev/null
+++ b/configs/ourfolds/ego3dlm_f0.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURFOLD0_ego3dlm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: False
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/ourfolds/ego3dlm_f1.yaml b/configs/ourfolds/ego3dlm_f1.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8edb63bcc64c08f0d1b3e998d714fd9a0596d30c
--- /dev/null
+++ b/configs/ourfolds/ego3dlm_f1.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURFOLD1_ego3dlm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: False
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/ourfolds/ego3dlm_f2.yaml b/configs/ourfolds/ego3dlm_f2.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9f12b222653258088dab0970a71abb7630f40284
--- /dev/null
+++ b/configs/ourfolds/ego3dlm_f2.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURFOLD2_ego3dlm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: False
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/ourfolds/ego3dlm_f3.yaml b/configs/ourfolds/ego3dlm_f3.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..c99d5ca57fcc37b833700724452121ddee678298
--- /dev/null
+++ b/configs/ourfolds/ego3dlm_f3.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURFOLD3_ego3dlm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: False
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/ourfolds/egolm_f0.yaml b/configs/ourfolds/egolm_f0.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..08c129c2d0f51c7c0e487758d0301b21f12fac0c
--- /dev/null
+++ b/configs/ourfolds/egolm_f0.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURFOLD0_egolm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/ourfolds/egolm_f1.yaml b/configs/ourfolds/egolm_f1.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9412e9e87364ed1b5a06e176efc7a20125a8ae6a
--- /dev/null
+++ b/configs/ourfolds/egolm_f1.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURFOLD1_egolm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/ourfolds/egolm_f2.yaml b/configs/ourfolds/egolm_f2.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a1d4e81017da841fe1db42147fc086e3500eadbc
--- /dev/null
+++ b/configs/ourfolds/egolm_f2.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURFOLD2_egolm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/ourfolds/egolm_f3.yaml b/configs/ourfolds/egolm_f3.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8aaba0f4a75750da72b500b18af9209122fd3525
--- /dev/null
+++ b/configs/ourfolds/egolm_f3.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURFOLD3_egolm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/ourfolds/token_ext.yaml b/configs/ourfolds/token_ext.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4d236a0c0b523f6400fa5a81a40330643973734d
--- /dev/null
+++ b/configs/ourfolds/token_ext.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: TOKENIZE_ours_ext
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/_subA_egolm_f0_headframe.yaml b/configs/oursE/_subA_egolm_f0_headframe.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a63854d64be60bac5156e322dc217811ef4a52ad
--- /dev/null
+++ b/configs/oursE/_subA_egolm_f0_headframe.yaml
@@ -0,0 +1,121 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: SUBA_egolm_f0_headframe
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'experiments/mgpt_egovlm_merged_grpo/OURSE0_egolm/checkpoints/last.ckpt' # last.ckpt, selection-free
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 8 # Evaluating Batch size
+ NUM_SAMPLE_SEQ: 1 # k=0 only: best-of-1 by construction
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/_subA_egolm_f0_native.yaml b/configs/oursE/_subA_egolm_f0_native.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3f78e1859946791181e355aa8f6a7e4c0a54a738
--- /dev/null
+++ b/configs/oursE/_subA_egolm_f0_native.yaml
@@ -0,0 +1,121 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: SUBA_egolm_f0_native
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'experiments/mgpt_egovlm_merged_grpo/OURSE0_egolm/checkpoints/last.ckpt' # last.ckpt, selection-free
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 8 # Evaluating Batch size
+ NUM_SAMPLE_SEQ: 1 # k=0 only: best-of-1 by construction
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/assets_f0.yaml b/configs/oursE/assets_f0.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3ae714b179a69df805df3480d98a897982f39401
--- /dev/null
+++ b/configs/oursE/assets_f0.yaml
@@ -0,0 +1,39 @@
+CONFIG_FOLDER: configs # Config files path
+FOLDER: experiments # Experiment files saving path
+
+TEST:
+ FOLDER: results # Testing files saving path
+
+DATASET:
+ TASK_ROOT: deps/mGPT_instructions
+ SMPL_PATH: deps/smpl #deps/smpl
+ TRANSFORM_PATH: deps/transforms/
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
+ KIT:
+ ROOT: datasets/kit-ml # KIT directory
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
+ HUMANML3D:
+ ROOT: datasets/nymeria_smpl_V4
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
+ NYMERIA:
+ # ROOT: datasets/nymeria_egolm_full
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
+ ROOT: datasets/nymeria_ourfoldE0
+ SPLIT_ROOT: datasets/nymeria_ourfoldE0
+ MEAN_STD_PATH: datasets/nymeria_ourfoldE0
+
+METRIC:
+ TM2T:
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
+
+model:
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
+
+RENDER:
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
+ MODEL_PATH: deps/smpl/smpl_models/
+ FACES_PATH: deps/smplh/smplh.faces
diff --git a/configs/oursE/assets_f1.yaml b/configs/oursE/assets_f1.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..690fa9a5acf1915192fd235f753ffd2a2bd2e2b9
--- /dev/null
+++ b/configs/oursE/assets_f1.yaml
@@ -0,0 +1,39 @@
+CONFIG_FOLDER: configs # Config files path
+FOLDER: experiments # Experiment files saving path
+
+TEST:
+ FOLDER: results # Testing files saving path
+
+DATASET:
+ TASK_ROOT: deps/mGPT_instructions
+ SMPL_PATH: deps/smpl #deps/smpl
+ TRANSFORM_PATH: deps/transforms/
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
+ KIT:
+ ROOT: datasets/kit-ml # KIT directory
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
+ HUMANML3D:
+ ROOT: datasets/nymeria_smpl_V4
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
+ NYMERIA:
+ # ROOT: datasets/nymeria_egolm_full
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
+ ROOT: datasets/nymeria_ourfoldE1
+ SPLIT_ROOT: datasets/nymeria_ourfoldE1
+ MEAN_STD_PATH: datasets/nymeria_ourfoldE1
+
+METRIC:
+ TM2T:
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
+
+model:
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
+
+RENDER:
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
+ MODEL_PATH: deps/smpl/smpl_models/
+ FACES_PATH: deps/smplh/smplh.faces
diff --git a/configs/oursE/assets_f2.yaml b/configs/oursE/assets_f2.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a1d02b1b82ea506b0be558d6a7dd6c0a0a58171c
--- /dev/null
+++ b/configs/oursE/assets_f2.yaml
@@ -0,0 +1,39 @@
+CONFIG_FOLDER: configs # Config files path
+FOLDER: experiments # Experiment files saving path
+
+TEST:
+ FOLDER: results # Testing files saving path
+
+DATASET:
+ TASK_ROOT: deps/mGPT_instructions
+ SMPL_PATH: deps/smpl #deps/smpl
+ TRANSFORM_PATH: deps/transforms/
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
+ KIT:
+ ROOT: datasets/kit-ml # KIT directory
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
+ HUMANML3D:
+ ROOT: datasets/nymeria_smpl_V4
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
+ NYMERIA:
+ # ROOT: datasets/nymeria_egolm_full
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
+ ROOT: datasets/nymeria_ourfoldE2
+ SPLIT_ROOT: datasets/nymeria_ourfoldE2
+ MEAN_STD_PATH: datasets/nymeria_ourfoldE2
+
+METRIC:
+ TM2T:
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
+
+model:
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
+
+RENDER:
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
+ MODEL_PATH: deps/smpl/smpl_models/
+ FACES_PATH: deps/smplh/smplh.faces
diff --git a/configs/oursE/assets_f3.yaml b/configs/oursE/assets_f3.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..62bd6938fa2266ffb468c7e73d846efd9d22845f
--- /dev/null
+++ b/configs/oursE/assets_f3.yaml
@@ -0,0 +1,39 @@
+CONFIG_FOLDER: configs # Config files path
+FOLDER: experiments # Experiment files saving path
+
+TEST:
+ FOLDER: results # Testing files saving path
+
+DATASET:
+ TASK_ROOT: deps/mGPT_instructions
+ SMPL_PATH: deps/smpl #deps/smpl
+ TRANSFORM_PATH: deps/transforms/
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
+ KIT:
+ ROOT: datasets/kit-ml # KIT directory
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
+ HUMANML3D:
+ ROOT: datasets/nymeria_smpl_V4
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
+ NYMERIA:
+ # ROOT: datasets/nymeria_egolm_full
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
+ ROOT: datasets/nymeria_ourfoldE3
+ SPLIT_ROOT: datasets/nymeria_ourfoldE3
+ MEAN_STD_PATH: datasets/nymeria_ourfoldE3
+
+METRIC:
+ TM2T:
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
+
+model:
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
+
+RENDER:
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
+ MODEL_PATH: deps/smpl/smpl_models/
+ FACES_PATH: deps/smplh/smplh.faces
diff --git a/configs/oursE/assets_subA_f0.yaml b/configs/oursE/assets_subA_f0.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..675be4c089400d2ffcf1794210988c0831b81edb
--- /dev/null
+++ b/configs/oursE/assets_subA_f0.yaml
@@ -0,0 +1,39 @@
+CONFIG_FOLDER: configs # Config files path
+FOLDER: experiments # Experiment files saving path
+
+TEST:
+ FOLDER: results # Testing files saving path
+
+DATASET:
+ TASK_ROOT: deps/mGPT_instructions
+ SMPL_PATH: deps/smpl #deps/smpl
+ TRANSFORM_PATH: deps/transforms/
+ WORD_VERTILIZER_PATH: deps/t2m/glove/
+ KIT:
+ ROOT: datasets/kit-ml # KIT directory
+ SPLIT_ROOT: datasets/kit-ml # KIT splits directory
+ MEAN_STD_PATH: deps/t2m/t2m/ #/deps/t2m/t2m/
+ HUMANML3D:
+ ROOT: datasets/nymeria_smpl_V4
+ SPLIT_ROOT: datasets/nymeria_smpl_V4
+ MEAN_STD_PATH: datasets/nymeria_smpl_V4
+ NYMERIA:
+ # ROOT: datasets/nymeria_egolm_full
+ # SPLIT_ROOT: datasets/nymeria_egolm_full
+ # MEAN_STD_PATH: datasets/nymeria_egolm_full
+ ROOT: datasets/_subA_f0
+ SPLIT_ROOT: datasets/_subA_f0
+ MEAN_STD_PATH: datasets/_subA_f0
+
+METRIC:
+ TM2T:
+ t2m_path: deps/t2m/t2m/ # path for tm2t evaluator
+
+model:
+ whisper_path: openai/whisper-large-v2 # path for whisper model, webui only
+
+RENDER:
+ BLENDER_PATH: libs/blender-2.93.2-linux-x64/blender
+ SMPL_MODEL_PATH: deps/smpl/smpl_models/smpl
+ MODEL_PATH: deps/smpl/smpl_models/
+ FACES_PATH: deps/smplh/smplh.faces
diff --git a/configs/oursE/ego3dlm_f0_eval.yaml b/configs/oursE/ego3dlm_f0_eval.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ec755a068bc6466b0b6be7d9cc2b7b8aa348e378
--- /dev/null
+++ b/configs/oursE/ego3dlm_f0_eval.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE0_ego3dlm_eval
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: False
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/ego3dlm_f0_train.yaml b/configs/oursE/ego3dlm_f0_train.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9bd85c5a375fe2d7628f3d086ae7706558f7c3e3
--- /dev/null
+++ b/configs/oursE/ego3dlm_f0_train.yaml
@@ -0,0 +1,122 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE0_ego3dlm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 16 # Evaluating Batch size
+ SPLIT: val
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: False
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
+ NARRATION_CKPT: True # keep narration-best ckpts: the table scores verb F1, not pose
+ HONEST_SELECTION: True # select on ADE_head_idx0 (single-shot), not oracle best-of-3
+ SAVE_TOP_K: 1
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/ego3dlm_f1_eval.yaml b/configs/oursE/ego3dlm_f1_eval.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..de6518caf0cd6349d2bbd5e860f25b7d7a55fdec
--- /dev/null
+++ b/configs/oursE/ego3dlm_f1_eval.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE1_ego3dlm_eval
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: False
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/ego3dlm_f1_train.yaml b/configs/oursE/ego3dlm_f1_train.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..cd7de15e2d2e3f0ddbc1998b870e2ed5df5a4011
--- /dev/null
+++ b/configs/oursE/ego3dlm_f1_train.yaml
@@ -0,0 +1,122 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE1_ego3dlm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 16 # Evaluating Batch size
+ SPLIT: val
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: False
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
+ NARRATION_CKPT: True # keep narration-best ckpts: the table scores verb F1, not pose
+ HONEST_SELECTION: True # select on ADE_head_idx0 (single-shot), not oracle best-of-3
+ SAVE_TOP_K: 1
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/ego3dlm_f2_eval.yaml b/configs/oursE/ego3dlm_f2_eval.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2d3965bc8cad6c4c4f2cfdbcc5b3d8da85c35d07
--- /dev/null
+++ b/configs/oursE/ego3dlm_f2_eval.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE2_ego3dlm_eval
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: False
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/ego3dlm_f2_train.yaml b/configs/oursE/ego3dlm_f2_train.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8f1fc13fb2d05c6a46f2618be67fe89d1ec7348e
--- /dev/null
+++ b/configs/oursE/ego3dlm_f2_train.yaml
@@ -0,0 +1,122 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE2_ego3dlm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 16 # Evaluating Batch size
+ SPLIT: val
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: False
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
+ NARRATION_CKPT: True # keep narration-best ckpts: the table scores verb F1, not pose
+ HONEST_SELECTION: True # select on ADE_head_idx0 (single-shot), not oracle best-of-3
+ SAVE_TOP_K: 1
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/ego3dlm_f3_eval.yaml b/configs/oursE/ego3dlm_f3_eval.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..49194c382cffbb3893ac41f3fbd86e6e18a56683
--- /dev/null
+++ b/configs/oursE/ego3dlm_f3_eval.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE3_ego3dlm_eval
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: False
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/ego3dlm_f3_train.yaml b/configs/oursE/ego3dlm_f3_train.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6eb2feb4f9ba25fa6001a7883c7fa046a9925bba
--- /dev/null
+++ b/configs/oursE/ego3dlm_f3_train.yaml
@@ -0,0 +1,122 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE3_ego3dlm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 16 # Evaluating Batch size
+ SPLIT: val
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: False
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
+ NARRATION_CKPT: True # keep narration-best ckpts: the table scores verb F1, not pose
+ HONEST_SELECTION: True # select on ADE_head_idx0 (single-shot), not oracle best-of-3
+ SAVE_TOP_K: 1
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/egolm_f0_eval.yaml b/configs/oursE/egolm_f0_eval.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..8d8436f3350f2a1a69b6a2eb52e79bfb57036a13
--- /dev/null
+++ b/configs/oursE/egolm_f0_eval.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE0_egolm_eval
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'experiments/mgpt_egovlm_merged_grpo/OURSE0_egolm/checkpoints/last.ckpt' # selrule=last
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/egolm_f0_rerun_train.yaml b/configs/oursE/egolm_f0_rerun_train.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7d8d3ab038beb5a6099eaba875c15ce728908e6b
--- /dev/null
+++ b/configs/oursE/egolm_f0_rerun_train.yaml
@@ -0,0 +1,121 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE0_egolm_r2
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 16 # Evaluating Batch size
+ SPLIT: val
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
+ NARRATION_CKPT: True # re-run carries narration ckpts (original f0 predates the fix)
+ SAVE_TOP_K: 1
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/egolm_f0_train.yaml b/configs/oursE/egolm_f0_train.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..7eda8c36f13abded1d89a8b075d918736b4d24a5
--- /dev/null
+++ b/configs/oursE/egolm_f0_train.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE0_egolm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 16 # Evaluating Batch size
+ SPLIT: val
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
+ SAVE_TOP_K: 1
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/egolm_f1_eval.yaml b/configs/oursE/egolm_f1_eval.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6f26b4bf8a76a4bc38d3c5ef596f54ee6fcb3bbd
--- /dev/null
+++ b/configs/oursE/egolm_f1_eval.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE1_egolm_eval
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/egolm_f1_rerun_train.yaml b/configs/oursE/egolm_f1_rerun_train.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..262fe4e6ac089e974f878f93c6f6d0c4799e20c3
--- /dev/null
+++ b/configs/oursE/egolm_f1_rerun_train.yaml
@@ -0,0 +1,121 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE1_egolm_r2
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 16 # Evaluating Batch size
+ SPLIT: val
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
+ NARRATION_CKPT: True # re-run carries narration ckpts (original f1 predates the fix)
+ SAVE_TOP_K: 1
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/egolm_f1_train.yaml b/configs/oursE/egolm_f1_train.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..3d261abd6dcef13e38bc779e73a18112d4cf7899
--- /dev/null
+++ b/configs/oursE/egolm_f1_train.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE1_egolm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 16 # Evaluating Batch size
+ SPLIT: val
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
+ SAVE_TOP_K: 1
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/egolm_f2_eval.yaml b/configs/oursE/egolm_f2_eval.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..5b5e5215f2ec288dcc2926c1020682553317f2c6
--- /dev/null
+++ b/configs/oursE/egolm_f2_eval.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE2_egolm_eval
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/egolm_f2_train.yaml b/configs/oursE/egolm_f2_train.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ee1cde61e0f72f4764b46273fa5d25111dc7e89d
--- /dev/null
+++ b/configs/oursE/egolm_f2_train.yaml
@@ -0,0 +1,121 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE2_egolm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 16 # Evaluating Batch size
+ SPLIT: val
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
+ NARRATION_CKPT: True # keep narration-best ckpts: the table scores verb F1, not pose
+ SAVE_TOP_K: 1
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/egolm_f3_eval.yaml b/configs/oursE/egolm_f3_eval.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..9fa54f3d4a91130ba8f841d0bc8bfe07cd89081f
--- /dev/null
+++ b/configs/oursE/egolm_f3_eval.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE3_egolm_eval
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/egolm_f3_train.yaml b/configs/oursE/egolm_f3_train.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..a6b8f85af15d33cd8f565bd34dc0099e0aa21023
--- /dev/null
+++ b/configs/oursE/egolm_f3_train.yaml
@@ -0,0 +1,121 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE3_egolm
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 16 # End epoch (capped: reference instruct ckpts stopped at epoch 13-16)
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 16 # Evaluating Batch size
+ SPLIT: val
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 2 # val every 2 epochs (val pass ~60min: 4 generation passes over dev venues)
+ NARRATION_CKPT: True # keep narration-best ckpts: the table scores verb F1, not pose
+ SAVE_TOP_K: 1
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/egolm_r2_f0_eval.yaml b/configs/oursE/egolm_r2_f0_eval.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..96744f714659b75aaea03e1705ac97c67d70c09d
--- /dev/null
+++ b/configs/oursE/egolm_r2_f0_eval.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE0_egolm_r2_eval
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/oursE/egolm_r2_f1_eval.yaml b/configs/oursE/egolm_r2_f1_eval.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..173c71b91f4bc3e19ed56e58ec785ea79d2576a2
--- /dev/null
+++ b/configs/oursE/egolm_r2_f1_eval.yaml
@@ -0,0 +1,120 @@
+# NAME: Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt # Experiment names
+NAME: OURSE1_egolm_r2_eval
+# NAME: Instruct_egovlm_debug # Experiment names
+ACCELERATOR: 'gpu' # Devices optioncal: “cpu”, “gpu”, “tpu”, “ipu”, “hpu”, “mps, “auto”
+NUM_NODES: 1 # Number of GPU nodes for distributed training
+DEVICE: [0] # Index of gpus eg. [0] or [0,1,2,3]
+
+TRAIN:
+ #---------------------------------
+ STAGE: lm_instruct # stage "vae" , "lm_pretrain", "lm_instruct"
+ #---------------------------------
+ NUM_WORKERS: 16 # Number of workers
+ BATCH_SIZE: 8 # Size of batches
+ GRADIENT_ACCUMULATION_STEP: 1
+ END_EPOCH: 999999 # End epoch
+ RESUME: '' # Resume training from this path
+ PRETRAINED_LM: ''
+ # PRETRAINED: 'checkpoints/Instruct_egovlm_pq_gpt2_medium_from_scratch_stp2mt_c/min-ADE_local-epoch=36.ckpt' # for val
+ PRETRAINED: 'checkpoints/Pretrain_egovlm_egolmrep_pq_gpt2_medium_s2t_obstacle_with_sceneqa_grid64_s4o1/epoch=9.ckpt' # Preatrained model path
+ PRETRAINED_VAE: checkpoints/VQVAE_pq_full_4096_64/min-MPJPE-epoch=13039.ckpt # Vae model path
+ VISUALIZE: False
+ VISUALIZE_INTERVAL: 500
+
+ INIT_SPECIAL_TOKENS: False
+ #resume시에 제외
+ LOAD_CKPT_WO_TP_ENC: True
+ #grpo시에 checkpoint load 전에 불러와야함
+ CHAIN_OF_THOUGHT: True
+
+ OPTIM:
+ target: AdamW
+ params:
+ lr: 1e-4
+ betas: [0.9, 0.99]
+ weight_decay: 0.0
+
+
+# Evaluating Configuration
+EVAL:
+ BATCH_SIZE: 4 # Evaluating Batch size
+ SPLIT: test
+ VISUALIZE: True
+ VISUALIZE_INTERVAL: 1000
+
+TEST:
+ CHECKPOINTS: checkpoints/MotionGPT-base/motiongpt_s3_h3d.tar
+ # CHECKPOINTS: /apdcephfs/share_1227775/billljiang/memData/experiments/gpt0/0514_Instruct_T5BASE_HumanML3D/checkpoints/epoch=119.tar
+ SPLIT: test
+ BATCH_SIZE: 32 # training Batch size
+ VISUALIZE_INTERVAL: 140
+
+DATASET:
+ target: mGPT.data.Nymeria_egovlm_full.NymeriaDataModule
+ CODE_PATH: TOKENS
+ MIN_MOTION_LEN: 45
+ MAX_MOTION_LEN: 300
+ NUM_3D_POINTS: 10000
+ VOXEL_SIZE: 0.15
+ UNIT_LEN: 4
+ NYMERIA:
+ OBSTACLE_LABELS_PATH: datasets/nymeria_ours_ext/obstacle_labels
+
+METRIC:
+ TYPE: ['PredMetrics', 'M2TMetrics', 'MotionTextMetrics']
+ SBERT: True
+ FEATURE_EXTRACTOR: checkpoints/evaluator/text_mot_match_trainset_only_len20/finest.tar
+ MATCHING: True
+ DIVERSITY: True
+
+LOSS:
+ LAMBDA_FEATURE: 1.0
+ LAMBDA_VELOCITY: 0.5
+ LAMBDA_COMMIT: 0.02
+ LAMBDA_CLS: 1.0
+ LAMBDA_REG: 0.0
+ LAMBDA_HEAD: 0.0
+ REG_OPTION: 'raw' #'token'
+
+ ABLATION:
+ RECONS_LOSS: 'l1_smooth'
+ EGOLM_BASELINE: True
+ ONLY_MOTION: False
+ ONLY_FUTURE: False
+ IT_JOINT_TRAINING: True
+ 4TASKS: False
+ REG_GLOBAL: True
+ TRAIN_ALL_AT_ONCE: True
+
+ REVERSE: True
+
+ # relative three-point representation
+ REL_TP: False
+ ADD_REL_TP: True # override rel_tp
+ NORM_TP: True
+
+
+model:
+ target: mGPT.models.mgpt_egovlm_merged_grpo.MotionGPT
+ params:
+ num_query_token: 32
+ freeze_lm: false
+ freeze_qformer: false
+ freeze_vproj: false
+ condition: 'text'
+ task: 'egovlm_4tasks'
+ lm: ${lm.gpt2_medium_grpo}
+ motion_vae: ${vq.default_pq}
+ tp_special_token: True
+ max_token_length: 480
+ dummy_motion: False
+ p_dummy: 0.5
+ per_token: True
+
+LOGGER:
+ TYPE: ['tensorboard', 'wandb']
+ VAL_EVERY_STEPS: 1 # 10
+ SAVE_TOP_K: 10
+ WANDB:
+ params:
+ project: motiongpt
diff --git a/configs/vq/default.yaml b/configs/vq/default.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2ca6a194319895d4e9dc2a3d5ae5aeba0ffc5ffe
--- /dev/null
+++ b/configs/vq/default.yaml
@@ -0,0 +1,15 @@
+target: mGPT.archs.mgpt_vq.VQVae
+params:
+ quantizer: 'pq_ema_reset' # 'pq_ema_reset' # 'ema_reset'
+ code_num: 4096 # 512, 4096, 8192
+ code_dim: 64 # 512, 64, 32
+ output_emb_width: 64 # 512, 64, 32
+ down_t: 2
+ stride_t: 2
+ width: 512
+ depth: 3
+ dilation_growth_rate: 3
+ norm: None
+ activation: 'relu'
+ nfeats: ${DATASET.NFEATS}
+ ablation: ${ABLATION}
diff --git a/configs/vq/default_pq.yaml b/configs/vq/default_pq.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2ca6a194319895d4e9dc2a3d5ae5aeba0ffc5ffe
--- /dev/null
+++ b/configs/vq/default_pq.yaml
@@ -0,0 +1,15 @@
+target: mGPT.archs.mgpt_vq.VQVae
+params:
+ quantizer: 'pq_ema_reset' # 'pq_ema_reset' # 'ema_reset'
+ code_num: 4096 # 512, 4096, 8192
+ code_dim: 64 # 512, 64, 32
+ output_emb_width: 64 # 512, 64, 32
+ down_t: 2
+ stride_t: 2
+ width: 512
+ depth: 3
+ dilation_growth_rate: 3
+ norm: None
+ activation: 'relu'
+ nfeats: ${DATASET.NFEATS}
+ ablation: ${ABLATION}
diff --git a/mGPT/__init__.py b/mGPT/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/mGPT/archs/__init__.py b/mGPT/archs/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/mGPT/archs/mgpt_lm_merged_grpo.py b/mGPT/archs/mgpt_lm_merged_grpo.py
new file mode 100644
index 0000000000000000000000000000000000000000..b6da161b871e58bdafc4b4db1da8924234545837
--- /dev/null
+++ b/mGPT/archs/mgpt_lm_merged_grpo.py
@@ -0,0 +1,2613 @@
+import os
+from typing import List, Optional, Union, Tuple
+import numpy as np
+import math
+import time
+import heapq
+import torch
+from torch import Tensor, nn
+from torch.distributions.distribution import Distribution
+from transformers import AutoModelForSeq2SeqLM, AutoModelForCausalLM, T5ForConditionalGeneration, T5TokenizerFast, AutoTokenizer, GPT2LMHeadModel, GPT2Tokenizer
+import random
+from typing import Optional
+from .tools.token_emb import NewTokenEmb
+import math, random, re
+from torch.nn import CrossEntropyLoss
+from mGPT.utils.latency_tracker import LATENCY_TRACKER
+
+class MLM(nn.Module):
+
+ def __init__(
+ self,
+ model_path: str,
+ model_type: str = "t5",
+ stage: str = "lm_pretrain",
+ new_token_type: str = "insert",
+ motion_codebook_size: int = 512,
+ framerate: float = 10.0,
+ down_t: int = 4,
+ predict_ratio: float = 0.2,
+ inbetween_ratio: float = 0.25,
+ max_length: int = 256,
+ lora: bool = False,
+ quota_ratio: float = 0.5,
+ noise_density: float = 0.15,
+ mean_noise_span_length: int = 3,
+ motion_codebook_num = 2,
+ attention_dropout: float = 0.0,
+ freeze_old_embeddings: bool = False,
+ **kwargs,
+ ) -> None:
+
+ super().__init__()
+
+ # Parameters
+ self.m_codebook_size = motion_codebook_size
+ self.m_codebook_num = motion_codebook_num
+ self.max_length = max_length
+ self.framerate = framerate
+ self.down_t = down_t
+ self.predict_ratio = predict_ratio
+ self.inbetween_ratio = inbetween_ratio
+ self.noise_density = noise_density
+ self.mean_noise_span_length = mean_noise_span_length
+ self.quota_ratio = quota_ratio
+ self.stage = stage
+ self.peft_cfg_path = kwargs['peft_cfg_path']
+ self.attention_dropout = attention_dropout
+ self.freeze_old_embeddings = freeze_old_embeddings
+
+ self.chain_of_thought = False
+
+ # Instantiate language model
+ self.tokenizer = AutoTokenizer.from_pretrained(model_path, legacy=True)
+ self.original_vocab_size = len(self.tokenizer)
+ if model_type == "t5":
+ self.language_model = T5ForConditionalGeneration.from_pretrained(
+ model_path)
+ self.lm_type = 'encdec'
+ # Add motion tokens
+ self.tokenizer.add_tokens(
+ [f'' for i in range(self.m_codebook_size + 3)]) # start, end, mask
+
+ elif model_type == "t5_custom_motion":
+ self.language_model = T5ForConditionalGeneration.from_pretrained(
+ model_path)
+ self.lm_type = 'encdec'
+ # Add motion tokens
+ motion_tokens = []
+ motion_tokens += [f'' for i in range(int(self.m_codebook_size // self.m_codebook_num))]
+ motion_tokens += ['', '', '']
+ self.tokenizer.add_tokens(motion_tokens)
+
+ elif model_type == "t5_custom_motion_3d_feature":
+ self.language_model = T5ForConditionalGeneration.from_pretrained(
+ model_path)
+ self.lm_type = 'encdec'
+ # Add motion tokens
+ motion_tokens = []
+ motion_tokens += [f'' for i in range(int(self.m_codebook_size // self.m_codebook_num))]
+ motion_tokens += ['', '', '']
+ self.tokenizer.add_tokens(motion_tokens)
+
+ location_tokens = []
+ for i in range(32768): #32*32*32
+ location_tokens.append("" % i)
+ self.tokenizer.add_special_tokens({"additional_special_tokens": location_tokens})
+
+ elif model_type == "egovlm_t5_ema_reset" :
+ self.language_model = T5ForConditionalGeneration.from_pretrained(
+ model_path)
+ self.tokenizer = T5TokenizerFast.from_pretrained(model_path)
+ self.lm_type = 'encdec'
+
+ location_tokens = []
+ for i in range(32768):
+ location_tokens.append("" % i)
+ self.tokenizer.add_special_tokens({"additional_special_tokens": location_tokens})
+
+ self.tokenizer.add_tokens(
+ [f'' for i in range(self.m_codebook_size + 3)]) # start, end, mask
+
+ elif model_type == "egovlm_t5":
+ self.language_model = T5ForConditionalGeneration.from_pretrained(
+ model_path)
+ self.tokenizer = T5TokenizerFast.from_pretrained(model_path)
+ self.lm_type = 'encdec'
+
+ location_tokens = []
+ for i in range(32768):
+ location_tokens.append("" % i)
+ self.tokenizer.add_special_tokens({"additional_special_tokens": location_tokens})
+
+ # add pq-vae motion tokens
+ motion_tokens = []
+ # for cb in range(self.m_codebook_num) :
+ # motion_tokens += [f'' for i in range(int(self.m_codebook_size // self.m_codebook_num))]
+ motion_tokens += [f'' for i in range(int(self.m_codebook_size // self.m_codebook_num))]
+ motion_tokens += ['', '', '']
+
+ self.tokenizer.add_tokens(motion_tokens)
+
+ elif model_type == "gpt2_custom_motion":
+ self.language_model = GPT2LMHeadModel.from_pretrained(model_path)
+ self.lm_type = 'dec'
+ # Add motion tokens
+ motion_tokens = []
+ motion_tokens += [f'' for i in range(int(self.m_codebook_size // self.m_codebook_num))]
+ motion_tokens += ['', '', '']
+ self.tokenizer.add_tokens(motion_tokens)
+
+ elif model_type == "gpt2_custom_motion_3d_feature":
+ self.language_model = GPT2LMHeadModel.from_pretrained(model_path)
+ self.lm_type = 'dec'
+ # Add motion tokens
+ motion_tokens = []
+ motion_tokens += [f'' for i in range(int(self.m_codebook_size // self.m_codebook_num))]
+ motion_tokens += ['', '', '']
+ self.tokenizer.add_tokens(motion_tokens)
+ # location_tokens = []
+ # for i in range(32768): #32*32*32
+ # location_tokens.append("" % i)
+ # self.tokenizer.add_special_tokens({"additional_special_tokens": location_tokens})
+
+ # Add 3d scene special tokens
+ scene_tokens = ['', '']
+ self.tokenizer.add_special_tokens({"additional_special_tokens": scene_tokens})
+
+ # Add video special tokens
+ video_tokens = ['