Upload sim_finetune/v2dit_sim_finetune_v2_5task_aligned/region_ablation/link17/ckpt/base.yaml with huggingface_hub
Browse files
sim_finetune/v2dit_sim_finetune_v2_5task_aligned/region_ablation/link17/ckpt/base.yaml
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Touch Anything Base Configuration
|
| 2 |
+
|
| 3 |
+
# Model
|
| 4 |
+
model:
|
| 5 |
+
name: "TouchAnything"
|
| 6 |
+
task: "pose_prediction" # pose_prediction / tactile_prediction
|
| 7 |
+
|
| 8 |
+
vision_encoder:
|
| 9 |
+
type: "dinov2"
|
| 10 |
+
model_name: "dinov2_vits14" # dinov2_vits14 / dinov2_vitb14 / dinov2_vitl14
|
| 11 |
+
pretrained_path: "models/dinov2/dinov2_vits14_pretrain.pth"
|
| 12 |
+
freeze: true
|
| 13 |
+
patch_size: 14
|
| 14 |
+
embed_dim: 384 # vits: 384, vitb: 768, vitl: 1024
|
| 15 |
+
|
| 16 |
+
temporal_transformer:
|
| 17 |
+
num_layers: 3
|
| 18 |
+
num_heads: 8
|
| 19 |
+
hidden_dim: 512
|
| 20 |
+
mlp_ratio: 4.0
|
| 21 |
+
dropout: 0.1
|
| 22 |
+
window_size: 16 # Temporal window size in frames
|
| 23 |
+
|
| 24 |
+
pose_decoder:
|
| 25 |
+
type: "joint_query" # mlp / attention / joint_query
|
| 26 |
+
hidden_dims: [512, 256, 128] # used by mlp and attention types
|
| 27 |
+
output_dim: 144 # 48 joints * 3 coords (24 joints per hand, hands_only)
|
| 28 |
+
dropout: 0.1
|
| 29 |
+
num_query_layers: 2 # used by joint_query type
|
| 30 |
+
num_query_heads: 8 # used by joint_query and attention types
|
| 31 |
+
|
| 32 |
+
# Data
|
| 33 |
+
data:
|
| 34 |
+
dataset: "egodex_v2" # Use fixed version with camera frame
|
| 35 |
+
data_root: "datasets/egodex/test/test"
|
| 36 |
+
train_split: 0.8
|
| 37 |
+
val_split: 0.1
|
| 38 |
+
test_split: 0.1
|
| 39 |
+
use_camera_frame: true # Convert to camera coordinate frame
|
| 40 |
+
joint_set: "hands_only" # hands_only (48 joints) or hands_arms (56 joints)
|
| 41 |
+
|
| 42 |
+
# Preprocessing
|
| 43 |
+
image_size: [224, 224] # Input image size
|
| 44 |
+
normalize_mean: [0.485, 0.456, 0.406]
|
| 45 |
+
normalize_std: [0.229, 0.224, 0.225]
|
| 46 |
+
|
| 47 |
+
# Temporal
|
| 48 |
+
clip_length: 16 # Number of frames per clip
|
| 49 |
+
frame_interval: 1 # Frame interval
|
| 50 |
+
|
| 51 |
+
# Augmentation
|
| 52 |
+
use_augmentation: false
|
| 53 |
+
random_crop: false
|
| 54 |
+
random_flip: false # Horizontal flipping is usually not recommended for egocentric videos
|
| 55 |
+
color_jitter: 0.2
|
| 56 |
+
|
| 57 |
+
# Training
|
| 58 |
+
training:
|
| 59 |
+
batch_size: 8
|
| 60 |
+
num_workers: 4
|
| 61 |
+
num_epochs: 100
|
| 62 |
+
|
| 63 |
+
# Optimizer
|
| 64 |
+
optimizer:
|
| 65 |
+
type: "adamw"
|
| 66 |
+
lr: 1.0e-4
|
| 67 |
+
weight_decay: 0.05
|
| 68 |
+
betas: [0.9, 0.999]
|
| 69 |
+
|
| 70 |
+
# Scheduler
|
| 71 |
+
scheduler:
|
| 72 |
+
type: "cosine"
|
| 73 |
+
warmup_epochs: 5
|
| 74 |
+
min_lr: 1.0e-6
|
| 75 |
+
|
| 76 |
+
# Loss
|
| 77 |
+
loss:
|
| 78 |
+
pose_loss_weight: 1.0
|
| 79 |
+
use_confidence_weighting: true # Use confidence weighting
|
| 80 |
+
|
| 81 |
+
# Checkpointing
|
| 82 |
+
save_interval: 5 # Save once every 5 epochs
|
| 83 |
+
keep_last_n: 3 # Keep the most recent 3 checkpoints
|
| 84 |
+
|
| 85 |
+
# Logging
|
| 86 |
+
log_interval: 10 # Log once every 10 batches
|
| 87 |
+
val_interval: 1 # Validate once every epoch
|
| 88 |
+
|
| 89 |
+
# Evaluation
|
| 90 |
+
evaluation:
|
| 91 |
+
metrics:
|
| 92 |
+
- "mpjpe" # Mean Per Joint Position Error
|
| 93 |
+
- "pa_mpjpe" # Procrustes Aligned MPJPE
|
| 94 |
+
- "pck" # Percentage of Correct Keypoints
|
| 95 |
+
pck_threshold: 0.05 # 5cm
|
| 96 |
+
|
| 97 |
+
# System
|
| 98 |
+
system:
|
| 99 |
+
seed: 42
|
| 100 |
+
device: "cuda"
|
| 101 |
+
gpu_ids: [0] # GPU list, e.g. [0,1,2,3] uses 4 GPUs
|
| 102 |
+
mixed_precision: true # Enable mixed-precision training
|
| 103 |
+
cudnn_benchmark: true
|