Python
feat: updated parquet_to_npz.py to work with original sam3d training sets
mohamdevfc998f54a6d4
diff --git a/README.md b/README.mdindex dcbb5cb..7716141 100644--- a/README.md+++ b/README.md@@ -344,9 +344,63 @@ python tools/parquet_to_npz.py \The converter recovers `cam_trans` from the MHR params, derives the 1.2× squarecrop, skips low-quality fits (`mhr_valid`), and writes the same keys`tools/annotate_dataset.py` does. `--validate` asserts that each person's-`joints_3d + cam_trans` reprojects onto the stored `joints_2d` to < 1 px. Other-splits work the same way — swap `coco_train` for `mpii_train`,-`harmony4d_train`, etc., and point `--image_dir` at that dataset's images.+`joints_3d + cam_trans` reprojects onto the stored `joints_2d` to < 1 px.++### Other splits (MPII, AI Challenger, Harmony4D, EgoHumans)++Every split uses the **same converter** — the annotation schema and the MHR math+are dataset-independent (verified: 0 px reprojection and an image-centred+principal point on all of them). Only the **image preparation** differs. Download+the annotations the same way (`download.py --splits <split>`), prepare the images+as below, then run the converter into its own `data/sam3d_gt_<name>/` folder.++| Split | Image source | Prep | `--image_dir` |+|-------|--------------|------|---------------|+| `mpii_train` | `wget` from MPI servers (no registration) | unpack `mpii_human_pose_v1.tar.gz` | `$MPII_IMG_DIR` (contains `images/`) |+| `aic_train` | AI Challenger 2017 keypoint images (original site defunct — use a mirror) | arrange as `train/images/` | `$AIC_IMG_DIR` |+| `harmony4d_train` | HF `Jyun-Ting/Harmony4D` | **undistort** with Meta's `data/scripts/harmony4d/` script → `$HARMONY4D_IMG_DIR` | `$HARMONY4D_IMG_DIR` |+| `egohumans_train` | Google Drive (see setup guide) | **undistort** with Meta's `data/scripts/egohumans/` script → `$EGOHUMANS_IMG_DIR` | `$EGOHUMANS_IMG_DIR` |++```bash+# --- MPII -------------------------------------------------------------------+python sam-3d-body/data/scripts/download.py --save_dir $ANN_DIR --splits mpii_train+mkdir -p $MPII_IMG_DIR && cd $MPII_IMG_DIR+wget https://datasets.d2.mpi-inf.mpg.de/andriluka14cvpr/mpii_human_pose_v1.tar.gz+tar xzf mpii_human_pose_v1.tar.gz && cd - # -> $MPII_IMG_DIR/images/+python tools/parquet_to_npz.py --annotation_dir $ANN_DIR/mpii_train \+ --image_dir $MPII_IMG_DIR --output_dir data/sam3d_gt_mpii --validate++# --- AI Challenger -----------------------------------------------------------+python sam-3d-body/data/scripts/download.py --save_dir $ANN_DIR --splits aic_train+# place the keypoint images so that $AIC_IMG_DIR/train/images/<hash>.jpg exists+python tools/parquet_to_npz.py --annotation_dir $ANN_DIR/aic_train \+ --image_dir $AIC_IMG_DIR --output_dir data/sam3d_gt_aic --validate++# --- Harmony4D (needs undistortion) -----------------------------------------+python sam-3d-body/data/scripts/download.py --save_dir $ANN_DIR --splits harmony4d_train+# 1) download Jyun-Ting/Harmony4D into $HARMONY4D_DATA_DIR+# 2) undistort -> $HARMONY4D_IMG_DIR (Meta's data/scripts/harmony4d/, see setup guide)+python tools/parquet_to_npz.py --annotation_dir $ANN_DIR/harmony4d_train \+ --image_dir $HARMONY4D_IMG_DIR --output_dir data/sam3d_gt_harmony4d --validate++# --- EgoHumans (needs undistortion) -----------------------------------------+python sam-3d-body/data/scripts/download.py --save_dir $ANN_DIR --splits egohumans_train+# 1) download EgoHumans into $EGOHUMANS_DATA_DIR+# 2) undistort -> $EGOHUMANS_IMG_DIR (Meta's data/scripts/egohumans/, see setup guide)+python tools/parquet_to_npz.py --annotation_dir $ANN_DIR/egohumans_train \+ --image_dir $EGOHUMANS_IMG_DIR --output_dir data/sam3d_gt_egohumans --validate+```++> **Harmony4D / EgoHumans must be undistorted first.** Their annotations+> (`keypoints_2d`, `cam_int`) correspond to the **undistorted** frames produced+> by Meta's per-dataset scripts, so point `--image_dir` at the undistorted output,+> not the raw download. The image-prep details and exact undistortion commands+> live in the [dataset setup guides](https://github.com/facebookresearch/sam-3d-body/tree/main/data).++To train on several datasets at once, convert each into its own+`data/sam3d_gt_<name>/` and either point the notebook at one of them or merge the+`images/` + `annotations/` folders into a single directory — the filenames are+prefixed per dataset, so they never collide.## Documentationdiff --git a/notebooks/distill_transformer_decoder.ipynb b/notebooks/distill_transformer_decoder.ipynbindex 0b03bf5..2745eac 100644--- a/notebooks/distill_transformer_decoder.ipynb+++ b/notebooks/distill_transformer_decoder.ipynb@@ -2,7 +2,7 @@"cells": [{"cell_type": "code",- "execution_count": null,+ "execution_count": 3,"id": "ad5fd1be","metadata": {},"outputs": [@@ -13,13 +13,6 @@"['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']\n","Using device: cuda\n"]- },- {- "name": "stderr",- "output_type": "stream",- "text": [- "\u001b[0;93m2026-06-25 13:28:09.821708154 [W:onnxruntime:Default, device_discovery.cc:283 GetGpuDevices] Failed to detect devices under \"/sys/class/drm/card0\": device_discovery.cc:93 ReadFileContents Failed to open file: \"/sys/class/drm/card0/device/vendor\"\u001b[m\n"- ]}],"source": [@@ -44,7 +37,7 @@},{"cell_type": "code",- "execution_count": 2,+ "execution_count": 4,"id": "7e2ae437","metadata": {},"outputs": [@@ -278,10 +271,18 @@},{"cell_type": "code",- "execution_count": null,+ "execution_count": 5,"id": "1d5e32ef","metadata": {},- "outputs": [],+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "Dataset Loaded! Train batches: 557 | Val batches: 62\n"+ ]+ }+ ],"source": ["# ============================================================\n","# Cell 3 — Dataset and Data Augmentation\n",@@ -923,10 +924,23 @@},{"cell_type": "code",- "execution_count": null,+ "execution_count": 6,"id": "10f2586d","metadata": {},- "outputs": [],+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "--- Architecture Output Shapes ---\n",+ "mhr_params: torch.Size([2, 204])\n",+ "shape_params: torch.Size([2, 45])\n",+ "cam_trans: torch.Size([2, 3])\n",+ "joints_2d: torch.Size([2, 70, 2])\n",+ "joints_3d: torch.Size([2, 70, 3])\n"+ ]+ }+ ],"source": ["# ============================================================\n","# Cell 7 — Student Architecture (Mini-SAM3D with PE)\n",@@ -1121,10 +1135,33 @@},{"cell_type": "code",- "execution_count": null,+ "execution_count": 7,"id": "9239175a","metadata": {},- "outputs": [],+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "--- Running Loss Function Sanity Check ---\n",+ "Losses for the Perfect Student:\n",+ " loss_pose : 0.000000\n",+ " loss_scale : 0.000000\n",+ " loss_shape : 0.000000\n",+ " loss_cam : 0.000000\n",+ " loss_mhr_joints : 0.000000\n",+ " loss_structural : 0.000000\n",+ " loss_feet : 0.000362\n",+ " loss_2d_native : 0.000000\n",+ " loss_3d_native : 0.000000\n",+ " loss_reproj_native : 0.000000\n",+ " loss_reproj_mhr : 0.000001\n",+ " total_loss : 0.000364\n",+ "\n",+ "❌ ERROR: Loss is not zero. Check the math.\n"+ ]+ }+ ],"source": ["# ============================================================\n","# Cell 8 — The Distillation Loss Module (Foolproof Edition)\n",@@ -1414,10 +1451,18 @@},{"cell_type": "code",- "execution_count": null,+ "execution_count": 8,"id": "27616862","metadata": {},- "outputs": [],+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "GPU allocated now: 0.74 GB\n"+ ]+ }+ ],"source": ["# ============================================================\n","# Cell 10 — HMR Evaluation Metrics (MPJPE & PA-MPJPE)\n",@@ -1578,7 +1623,1092 @@"execution_count": null,"id": "d44aeb4a","metadata": {},- "outputs": [],+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "--- Starting Full Training Pipeline: repvit_m2_3 ---\n"+ ]+ },+ {+ "name": "stderr",+ "output_type": "stream",+ "text": [+ "Unexpected keys (head.head.bn.num_batches_tracked, head.head.bn.bias, head.head.bn.running_mean, head.head.bn.running_var, head.head.bn.weight, head.head_dist.bn.num_batches_tracked, head.head_dist.bn.bias, head.head_dist.bn.running_mean, head.head_dist.bn.running_var, head.head_dist.bn.weight) found while loading pretrained weights. This may be expected if model is being adapted.\n"+ ]+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "🚀 Starting training from scratch with fresh weights.\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "87ac1c75193b444f90e0f56c736cb2c7",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 1/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "803af2b02f5e4ceda96daee5032a7cf9",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 1/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 1 Summary | LR: 1.28e-05\n",+ " [Train Loss] Tot: 1.7388 | MHR: 0.0153 | Struct: 0.0003 | 2D: 0.7564 | 3D: 0.6079\n",+ " [Val Loss] Tot: 1.5152 | MHR: 0.0149 | Struct: 0.0002 | 2D: 0.7518 | 3D: 0.4873\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 179.5 mm | Mesh MPJPE: 268.8 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 305.6 mm | Head MPJPE: 604.1 mm\n",+ "💾 New Best Model saved! Mesh PA-MPJPE dropped to 179.5 mm.\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "3020c4fe8796467ebc911f875a2b947e",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 2/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "19f6af9412c6427c8a8d6915ebedf21f",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 2/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 2 Summary | LR: 1.51e-05\n",+ " [Train Loss] Tot: 1.4542 | MHR: 0.0149 | Struct: 0.0002 | 2D: 0.7299 | 3D: 0.4811\n",+ " [Val Loss] Tot: 1.4444 | MHR: 0.0148 | Struct: 0.0001 | 2D: 0.7298 | 3D: 0.4807\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 188.0 mm | Mesh MPJPE: 265.7 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 273.5 mm | Head MPJPE: 602.0 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "fe0d1a4cabba48eab7ef2c4a60371c3b",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 3/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "28c4e59d28444e9aa3e6dad69996539d",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 3/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 3 Summary | LR: 1.90e-05\n",+ " [Train Loss] Tot: 1.2657 | MHR: 0.0148 | Struct: 0.0001 | 2D: 0.6214 | 3D: 0.4171\n",+ " [Val Loss] Tot: 1.0030 | MHR: 0.0149 | Struct: 0.0001 | 2D: 0.4181 | 3D: 0.3143\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 164.4 mm | Mesh MPJPE: 279.0 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 268.2 mm | Head MPJPE: 361.1 mm\n",+ "💾 New Best Model saved! Mesh PA-MPJPE dropped to 164.4 mm.\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "3e1f88f6fd344f48b7cc1d2c7f2f2e11",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 4/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "7e99577ffdf942e48c581b14cafcdb6b",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 4/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 4 Summary | LR: 2.44e-05\n",+ " [Train Loss] Tot: 0.9220 | MHR: 0.0147 | Struct: 0.0001 | 2D: 0.4073 | 3D: 0.3005\n",+ " [Val Loss] Tot: 0.9751 | MHR: 0.0147 | Struct: 0.0001 | 2D: 0.4150 | 3D: 0.2991\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 188.7 mm | Mesh MPJPE: 266.9 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 265.9 mm | Head MPJPE: 350.1 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "5e00a1d07f274859af01b22b16f17dd9",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 5/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "f585f7a075344ffc94155af8c0db1d77",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 5/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 5 Summary | LR: 3.12e-05\n",+ " [Train Loss] Tot: 0.8757 | MHR: 0.0147 | Struct: 0.0001 | 2D: 0.3762 | 3D: 0.2941\n",+ " [Val Loss] Tot: 0.8734 | MHR: 0.0145 | Struct: 0.0001 | 2D: 0.3690 | 3D: 0.2949\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 167.5 mm | Mesh MPJPE: 273.3 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 244.7 mm | Head MPJPE: 345.8 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "dc32d42921644e9481bc743c538c7486",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 6/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "ac683d5f8b7043248b6cbaace330fdc5",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 6/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 6 Summary | LR: 3.94e-05\n",+ " [Train Loss] Tot: 0.8386 | MHR: 0.0145 | Struct: 0.0001 | 2D: 0.3555 | 3D: 0.2861\n",+ " [Val Loss] Tot: 0.8797 | MHR: 0.0144 | Struct: 0.0001 | 2D: 0.3649 | 3D: 0.2821\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 174.5 mm | Mesh MPJPE: 269.4 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 236.2 mm | Head MPJPE: 337.8 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "d3e192c380ac40bd9893dc54989cd764",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 7/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "0c8f9fef643448c3b7d28719335d4726",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 7/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 7 Summary | LR: 4.89e-05\n",+ " [Train Loss] Tot: 0.8004 | MHR: 0.0144 | Struct: 0.0001 | 2D: 0.3354 | 3D: 0.2764\n",+ " [Val Loss] Tot: 0.8025 | MHR: 0.0137 | Struct: 0.0000 | 2D: 0.3330 | 3D: 0.2679\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 174.4 mm | Mesh MPJPE: 259.5 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 219.4 mm | Head MPJPE: 330.2 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "a821d048197346e599af1307b601d1ed",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 8/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "986d9d359f7f43c590976f964bba2fc9",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 8/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 8 Summary | LR: 5.95e-05\n",+ " [Train Loss] Tot: 0.7231 | MHR: 0.0136 | Struct: 0.0001 | 2D: 0.2984 | 3D: 0.2468\n",+ " [Val Loss] Tot: 4.0354 | MHR: 0.0138 | Struct: 0.0002 | 2D: 0.3756 | 3D: 0.3284\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 155.2 mm | Mesh MPJPE: 258.9 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 215.3 mm | Head MPJPE: 326.2 mm\n",+ "💾 New Best Model saved! Mesh PA-MPJPE dropped to 155.2 mm.\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "d5b710c460904c0ca501d007102a5e88",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 9/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "0bff56f501b945f89aed52c07a4799c4",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 9/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 9 Summary | LR: 7.13e-05\n",+ " [Train Loss] Tot: 0.6247 | MHR: 0.0126 | Struct: 0.0001 | 2D: 0.2521 | 3D: 0.2064\n",+ " [Val Loss] Tot: 0.6047 | MHR: 0.0122 | Struct: 0.0001 | 2D: 0.2531 | 3D: 0.1814\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 171.1 mm | Mesh MPJPE: 232.1 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 193.6 mm | Head MPJPE: 290.4 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "2421f23dd24e4a97b67ec7e52b9fbb7b",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 10/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "5f62154c7c3b44518cd53afc2fe56253",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 10/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 10 Summary | LR: 8.39e-05\n",+ " [Train Loss] Tot: 0.5327 | MHR: 0.0117 | Struct: 0.0001 | 2D: 0.2063 | 3D: 0.1734\n",+ " [Val Loss] Tot: 0.5420 | MHR: 0.0113 | Struct: 0.0001 | 2D: 0.1963 | 3D: 0.1619\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 134.2 mm | Mesh MPJPE: 227.0 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 169.2 mm | Head MPJPE: 270.3 mm\n",+ "💾 New Best Model saved! Mesh PA-MPJPE dropped to 134.2 mm.\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "e7f7207d3ae84a0582c9550e50aab0d8",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 11/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "26284798653b49c2b72f127be1570e5d",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 11/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 11 Summary | LR: 9.73e-05\n",+ " [Train Loss] Tot: 0.4547 | MHR: 0.0109 | Struct: 0.0001 | 2D: 0.1685 | 3D: 0.1470\n",+ " [Val Loss] Tot: 0.4793 | MHR: 0.0104 | Struct: 0.0001 | 2D: 0.1884 | 3D: 0.1442\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 145.8 mm | Mesh MPJPE: 210.3 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 159.2 mm | Head MPJPE: 255.8 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "7b2f8d8116544c66af0d55a98c45baaa",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 12/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "9928b32d7dea4e019765c3698cec5304",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 12/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 12 Summary | LR: 1.11e-04\n",+ " [Train Loss] Tot: 0.3963 | MHR: 0.0104 | Struct: 0.0001 | 2D: 0.1397 | 3D: 0.1282\n",+ " [Val Loss] Tot: 0.4547 | MHR: 0.0101 | Struct: 0.0001 | 2D: 0.1652 | 3D: 0.1406\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 149.9 mm | Mesh MPJPE: 205.1 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 158.9 mm | Head MPJPE: 250.1 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "03dc5a39d5e14b2794ddeda7fb776dc9",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 13/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "9ff89bf166ee421b9b2b51c2df979c9d",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 13/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 13 Summary | LR: 1.26e-04\n",+ " [Train Loss] Tot: 0.3499 | MHR: 0.0099 | Struct: 0.0001 | 2D: 0.1179 | 3D: 0.1121\n",+ " [Val Loss] Tot: 0.4111 | MHR: 0.0102 | Struct: 0.0001 | 2D: 0.1413 | 3D: 0.1254\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 133.9 mm | Mesh MPJPE: 201.7 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 144.9 mm | Head MPJPE: 233.2 mm\n",+ "💾 New Best Model saved! Mesh PA-MPJPE dropped to 133.9 mm.\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "d390a8294f134275b4a19c01f74ee6bb",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 14/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "6bd67fcbad0e40ce9197dcb889bc6497",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 14/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 14 Summary | LR: 1.41e-04\n",+ " [Train Loss] Tot: 0.3148 | MHR: 0.0095 | Struct: 0.0001 | 2D: 0.1027 | 3D: 0.0998\n",+ " [Val Loss] Tot: 0.4096 | MHR: 0.0099 | Struct: 0.0001 | 2D: 0.1372 | 3D: 0.1200\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 121.9 mm | Mesh MPJPE: 195.7 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 140.1 mm | Head MPJPE: 222.4 mm\n",+ "💾 New Best Model saved! Mesh PA-MPJPE dropped to 121.9 mm.\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "abae857407fb43edad80ac1b968f2a58",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 15/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "7e722eff257f430eba93de86a0392eff",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 15/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 15 Summary | LR: 1.56e-04\n",+ " [Train Loss] Tot: 0.2847 | MHR: 0.0092 | Struct: 0.0001 | 2D: 0.0908 | 3D: 0.0894\n",+ " [Val Loss] Tot: 0.3955 | MHR: 0.0097 | Struct: 0.0001 | 2D: 0.1401 | 3D: 0.1162\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 117.1 mm | Mesh MPJPE: 196.8 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 135.3 mm | Head MPJPE: 218.4 mm\n",+ "💾 New Best Model saved! Mesh PA-MPJPE dropped to 117.1 mm.\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "16038f06363f442aa64da23ef17b5f39",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 16/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "51d0744b60974c23bb4f47741159c6ca",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 16/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 16 Summary | LR: 1.71e-04\n",+ " [Train Loss] Tot: 0.2609 | MHR: 0.0088 | Struct: 0.0001 | 2D: 0.0813 | 3D: 0.0810\n",+ " [Val Loss] Tot: 0.3872 | MHR: 0.0095 | Struct: 0.0001 | 2D: 0.1198 | 3D: 0.1081\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 134.7 mm | Mesh MPJPE: 192.6 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 133.8 mm | Head MPJPE: 205.4 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "7528e8540e6e4ad79de90e36b89caf22",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 17/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "3414a7eef4b64bdc90e8c76a29be534c",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 17/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 17 Summary | LR: 1.86e-04\n",+ " [Train Loss] Tot: 0.2446 | MHR: 0.0087 | Struct: 0.0001 | 2D: 0.0752 | 3D: 0.0757\n",+ " [Val Loss] Tot: 0.3706 | MHR: 0.0093 | Struct: 0.0000 | 2D: 0.1198 | 3D: 0.1057\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 117.3 mm | Mesh MPJPE: 183.4 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 128.6 mm | Head MPJPE: 203.9 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "a2ec4aa543814a98a9c1c3b95f6cd515",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 18/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "50a3c8dacba544c2aa55f923caa57706",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 18/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 18 Summary | LR: 2.00e-04\n",+ " [Train Loss] Tot: 0.2312 | MHR: 0.0084 | Struct: 0.0001 | 2D: 0.0696 | 3D: 0.0714\n",+ " [Val Loss] Tot: 0.3721 | MHR: 0.0095 | Struct: 0.0000 | 2D: 0.1298 | 3D: 0.1122\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 135.7 mm | Mesh MPJPE: 194.6 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 137.1 mm | Head MPJPE: 216.3 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "510dd15a0c374bbd80e6a932ca267f68",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 19/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "ff1d4cd4ef014e1fb5600f461144a71c",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 19/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 19 Summary | LR: 2.14e-04\n",+ " [Train Loss] Tot: 0.2188 | MHR: 0.0081 | Struct: 0.0001 | 2D: 0.0650 | 3D: 0.0666\n",+ " [Val Loss] Tot: 0.3438 | MHR: 0.0091 | Struct: 0.0000 | 2D: 0.1143 | 3D: 0.1070\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 107.3 mm | Mesh MPJPE: 189.8 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 124.7 mm | Head MPJPE: 201.3 mm\n",+ "💾 New Best Model saved! Mesh PA-MPJPE dropped to 107.3 mm.\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "05e8de05f6944861a66e928626dcff88",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 20/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "4a2b9ae1ab404af5b50708c83a27248c",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 20/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 20 Summary | LR: 2.28e-04\n",+ " [Train Loss] Tot: 0.2026 | MHR: 0.0079 | Struct: 0.0001 | 2D: 0.0590 | 3D: 0.0612\n",+ " [Val Loss] Tot: 0.3487 | MHR: 0.0089 | Struct: 0.0001 | 2D: 0.1193 | 3D: 0.0998\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 114.4 mm | Mesh MPJPE: 183.5 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 125.6 mm | Head MPJPE: 201.0 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "bed7ceecef86415a80ea62d81dd1053e",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 21/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "c7159851d3b74de089416af481d77f8a",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 21/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 21 Summary | LR: 2.41e-04\n",+ " [Train Loss] Tot: 0.1964 | MHR: 0.0078 | Struct: 0.0001 | 2D: 0.0568 | 3D: 0.0581\n",+ " [Val Loss] Tot: 0.3375 | MHR: 0.0090 | Struct: 0.0000 | 2D: 0.1102 | 3D: 0.1024\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 112.2 mm | Mesh MPJPE: 182.5 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 124.6 mm | Head MPJPE: 196.6 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "4da27b868dde4a33a75815a5a133bc05",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 22/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "62eb485afcf14d739d2f10fac592a114",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 22/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 22 Summary | LR: 2.52e-04\n",+ " [Train Loss] Tot: 0.1913 | MHR: 0.0077 | Struct: 0.0001 | 2D: 0.0553 | 3D: 0.0568\n",+ " [Val Loss] Tot: 0.3714 | MHR: 0.0087 | Struct: 0.0000 | 2D: 0.1194 | 3D: 0.1019\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 112.2 mm | Mesh MPJPE: 179.2 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 126.4 mm | Head MPJPE: 200.7 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "b9419ba22b6d4bfc99481d4a7e3405d4",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 23/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "40a07bb539f04b5ba3a9efb4057e5889",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 23/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 23 Summary | LR: 2.63e-04\n",+ " [Train Loss] Tot: 0.1909 | MHR: 0.0077 | Struct: 0.0001 | 2D: 0.0546 | 3D: 0.0569\n",+ " [Val Loss] Tot: 0.3497 | MHR: 0.0089 | Struct: 0.0000 | 2D: 0.1063 | 3D: 0.0929\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 114.5 mm | Mesh MPJPE: 175.1 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 124.6 mm | Head MPJPE: 193.2 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "064120901d504062a11868ce7ad3564f",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 24/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "10b69f6b02cb46d1a5a54e246b687be8",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 24/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 24 Summary | LR: 2.72e-04\n",+ " [Train Loss] Tot: 0.1750 | MHR: 0.0075 | Struct: 0.0001 | 2D: 0.0489 | 3D: 0.0507\n",+ " [Val Loss] Tot: 0.3207 | MHR: 0.0087 | Struct: 0.0000 | 2D: 0.1092 | 3D: 0.0920\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 118.1 mm | Mesh MPJPE: 179.4 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 121.9 mm | Head MPJPE: 186.9 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "6c0828e4eb6d41c18c7f0762fed114cb",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 25/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "ca5221d7681f46989432d0233ebbbc02",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 25/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 25 Summary | LR: 2.81e-04\n",+ " [Train Loss] Tot: 0.1783 | MHR: 0.0075 | Struct: 0.0001 | 2D: 0.0503 | 3D: 0.0521\n",+ " [Val Loss] Tot: 0.3289 | MHR: 0.0090 | Struct: 0.0001 | 2D: 0.1070 | 3D: 0.0970\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 108.6 mm | Mesh MPJPE: 180.0 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 120.4 mm | Head MPJPE: 195.1 mm\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "e3afdba61dc849fe9836700dfd28ca2a",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 26/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "2c286c2d0bf646cba6a994777475e111",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 26/300 [Val]: 0%| | 0/62 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ },+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "\n",+ "📈 Epoch 26 Summary | LR: 2.87e-04\n",+ " [Train Loss] Tot: 0.1769 | MHR: 0.0076 | Struct: 0.0001 | 2D: 0.0506 | 3D: 0.0507\n",+ " [Val Loss] Tot: 0.3188 | MHR: 0.0088 | Struct: 0.0001 | 2D: 0.0991 | 3D: 0.0910\n",+ " 📏 [Val Metrics] Mesh PA-MPJPE: 103.9 mm | Mesh MPJPE: 194.1 mm\n",+ " 📏 [Val Metrics] Head PA-MPJPE: 116.1 mm | Head MPJPE: 189.8 mm\n",+ "💾 New Best Model saved! Mesh PA-MPJPE dropped to 103.9 mm.\n"+ ]+ },+ {+ "data": {+ "application/vnd.jupyter.widget-view+json": {+ "model_id": "834eb54a90bf4df1a945b644758aebc0",+ "version_major": 2,+ "version_minor": 0+ },+ "text/plain": [+ "Epoch 27/300 [Train]: 0%| | 0/557 [00:00<?, ?it/s]"+ ]+ },+ "metadata": {},+ "output_type": "display_data"+ }+ ],"source": ["# ============================================================\n","# Cell 11 — The Full Distillation Training Loop (Phase 2/Fresh)\n",@@ -1785,7 +2915,7 @@" # Remove '_orig_mod.' prefix if it exists\n"," new_key = k.replace('_orig_mod.', '')\n"," clean_state_dict[new_key] = v\n",- " \n",+ "\n"," # Load the cleaned dictionary\n"," best_model.load_state_dict(clean_state_dict, strict=False)\n"," print(f\"✅ Loaded Best Model from Epoch {checkpoint.get('epoch', 0)+1} with PA-MPJPE: {checkpoint.get('val_pa_mpjpe', 0):.1f} mm\")\n",diff --git a/tools/parquet_to_npz.py b/tools/parquet_to_npz.pyindex a8b45f2..19cc9cf 100644--- a/tools/parquet_to_npz.py+++ b/tools/parquet_to_npz.py@@ -38,17 +38,35 @@ NPZ payload (per crop) — identical to tools/annotate_dataset.py:joints_3d (70, 3) body-centred joints, vision Y-down (metres)joints_2d (70, 2) full-frame pixel coords+The same converter works for every SAM 3D Body split — the annotation schema and+the MHR math are dataset-independent (verified: cam_trans recovery reprojects to+~0 px and the principal point is image-centred on coco / mpii / aic / harmony4d /+egohumans alike). Only two things vary per dataset and are handled here:+ * image path resolution (``image_relpath`` mirrors Meta's get_img_name), and+ * the output crop/annotation name, which is built from the FULL relative image+ path so nested-path datasets (harmony4d, egohumans) don't collide.++``--image_dir`` must point at the prepared images for that dataset. For+harmony4d and egohumans these are the **undistorted** frames produced by Meta's+``data/scripts/<dataset>/undistort_*.py`` — run that first.+Usage:# 1. Download annotations for a split (needs HF access to the gated repo):# python data/scripts/download.py --save_dir $ANN_DIR --splits coco_train- # 2. Download the matching images (COCO2014 train/val/test).- # 3. Convert:+ # 2. Prepare the matching images (download; undistort for harmony4d/egohumans).+ # 3. Convert (one split -> one output dir under data/):python tools/parquet_to_npz.py \\--annotation_dir $ANN_DIR/coco_train \\--image_dir $COCO_IMG_DIR \\- --output_dir /data/sam3d_gt_coco \\+ --output_dir data/sam3d_gt_coco \\--validate+ # other splits — identical call, swap the split / image dir / output dir:+ # mpii_train --image_dir $MPII_IMG_DIR --output_dir data/sam3d_gt_mpii+ # aic_train --image_dir $AIC_IMG_DIR --output_dir data/sam3d_gt_aic+ # harmony4d_train --image_dir $HARMONY4D_IMG_DIR --output_dir data/sam3d_gt_harmony4d+ # egohumans_train --image_dir $EGOHUMANS_IMG_DIR --output_dir data/sam3d_gt_egohumans+Resume-safe: existing ``annotations/<name>.npz`` files are skipped."""@@ -267,7 +285,12 @@ def main() -> None:dataset = row["dataset"]image = row["image"]person_id = int(row["person_id"])- stem = Path(image).stem.replace(os.sep, "_").replace(" ", "_")+ # Use the FULL relative image path (minus extension) as the stem, not+ # just Path(image).stem: nested-path datasets (harmony4d, egohumans)+ # name every frame "00051.jpg" inside each cam/seq folder, so the bare+ # stem would collide across thousands of distinct frames. Flat-named+ # datasets (coco/mpii/aic) have no "/" so their names are unchanged.+ stem = os.path.splitext(image)[0].replace("/", "_").replace(os.sep, "_").replace(" ", "_")name = f"{dataset}_{stem}_p{person_id}"if name in existing: