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
|
| 1 |
+
model:
|
| 2 |
+
name: TouchAnything
|
| 3 |
+
task: tactile_prediction
|
| 4 |
+
vision_encoder:
|
| 5 |
+
type: dinov2
|
| 6 |
+
model_name: dinov2_vitb14
|
| 7 |
+
pretrained_path: models/dinov2/dinov2_vitb14_pretrain.pth
|
| 8 |
+
freeze: true
|
| 9 |
+
patch_size: 14
|
| 10 |
+
embed_dim: 768
|
| 11 |
+
temporal_transformer:
|
| 12 |
+
num_layers: 3
|
| 13 |
+
num_heads: 8
|
| 14 |
+
hidden_dim: 768
|
| 15 |
+
mlp_ratio: 4.0
|
| 16 |
+
dropout: 0.1
|
| 17 |
+
window_size: 16
|
| 18 |
+
pose_decoder:
|
| 19 |
+
type: joint_query
|
| 20 |
+
hidden_dims:
|
| 21 |
+
- 512
|
| 22 |
+
- 256
|
| 23 |
+
- 128
|
| 24 |
+
output_dim: 144
|
| 25 |
+
dropout: 0.1
|
| 26 |
+
num_query_layers: 2
|
| 27 |
+
num_query_heads: 8
|
| 28 |
+
num_input_joints: 42
|
| 29 |
+
multi_view:
|
| 30 |
+
enabled: false
|
| 31 |
+
pose_encoder:
|
| 32 |
+
type: transformer
|
| 33 |
+
num_joints: 42
|
| 34 |
+
num_layers: 2
|
| 35 |
+
num_heads: 8
|
| 36 |
+
mlp_ratio: 4.0
|
| 37 |
+
dropout: 0.1
|
| 38 |
+
output_mode: per_joint
|
| 39 |
+
fusion:
|
| 40 |
+
type: cross_attention
|
| 41 |
+
num_heads: 8
|
| 42 |
+
num_layers: 2
|
| 43 |
+
mlp_ratio: 4.0
|
| 44 |
+
dropout: 0.1
|
| 45 |
+
tactile_decoder:
|
| 46 |
+
type: joint_level
|
| 47 |
+
num_joints: 42
|
| 48 |
+
tactile_size: 21
|
| 49 |
+
tactile_head:
|
| 50 |
+
type: dit
|
| 51 |
+
patch_size: 3
|
| 52 |
+
depth: 6
|
| 53 |
+
num_heads: 8
|
| 54 |
+
mlp_ratio: 4.0
|
| 55 |
+
dropout: 0.0
|
| 56 |
+
cross: true
|
| 57 |
+
objective:
|
| 58 |
+
type: flow_matching
|
| 59 |
+
sample_steps: 8
|
| 60 |
+
sample_n: 1
|
| 61 |
+
mse_w: 1.0
|
| 62 |
+
l1_w: 0.5
|
| 63 |
+
tv_w: 0.01
|
| 64 |
+
contact_w: 3.0
|
| 65 |
+
contact_tau: 0.1
|
| 66 |
+
contact_sym: false
|
| 67 |
+
use_mask: false
|
| 68 |
+
data:
|
| 69 |
+
dataset: touchanything
|
| 70 |
+
data_root: /scratch/project/prj-02-phai-lab/yqq/data/EgoTactile_hdf5_chest
|
| 71 |
+
train_split: 0.8
|
| 72 |
+
val_split: 0.1
|
| 73 |
+
test_split: 0.1
|
| 74 |
+
use_camera_frame: true
|
| 75 |
+
joint_set: hands_only
|
| 76 |
+
image_size:
|
| 77 |
+
- 224
|
| 78 |
+
- 224
|
| 79 |
+
normalize_mean:
|
| 80 |
+
- 0.485
|
| 81 |
+
- 0.456
|
| 82 |
+
- 0.406
|
| 83 |
+
normalize_std:
|
| 84 |
+
- 0.229
|
| 85 |
+
- 0.224
|
| 86 |
+
- 0.225
|
| 87 |
+
clip_length: 8
|
| 88 |
+
frame_interval: 2
|
| 89 |
+
use_augmentation: false
|
| 90 |
+
random_crop: false
|
| 91 |
+
random_flip: false
|
| 92 |
+
color_jitter: 0.2
|
| 93 |
+
pose_source: wilor
|
| 94 |
+
fallback_pose_source: null
|
| 95 |
+
split_file: /scratch/project/prj-02-phai-lab/yqq/data/EgoTactile_hdf5_chest/split_oho.json
|
| 96 |
+
mapping_left: configs/pressure_position_mapping_left.json
|
| 97 |
+
mapping_right: configs/pressure_position_mapping_right.json
|
| 98 |
+
tactile_size: 21
|
| 99 |
+
glove_augmentation:
|
| 100 |
+
enabled: true
|
| 101 |
+
prob: 0.2
|
| 102 |
+
training:
|
| 103 |
+
batch_size: 9
|
| 104 |
+
num_workers: 16
|
| 105 |
+
num_epochs: 50
|
| 106 |
+
optimizer:
|
| 107 |
+
type: adamw
|
| 108 |
+
lr: 0.0001
|
| 109 |
+
weight_decay: 0.0
|
| 110 |
+
betas:
|
| 111 |
+
- 0.9
|
| 112 |
+
- 0.999
|
| 113 |
+
scheduler:
|
| 114 |
+
type: constant
|
| 115 |
+
warmup_epochs: 0
|
| 116 |
+
min_lr: 1.0e-06
|
| 117 |
+
loss:
|
| 118 |
+
pose_loss_weight: 1.0
|
| 119 |
+
use_confidence_weighting: true
|
| 120 |
+
mse_weight: 1.0
|
| 121 |
+
l1_weight: 0.5
|
| 122 |
+
tv_weight: 0.01
|
| 123 |
+
contact_weight: 3.0
|
| 124 |
+
pressure_threshold: 0.1
|
| 125 |
+
save_interval: 5
|
| 126 |
+
keep_last_n: 3
|
| 127 |
+
log_interval: 10
|
| 128 |
+
val_interval: 1
|
| 129 |
+
gradient_accumulation_steps: 2
|
| 130 |
+
invalid_pose_policy: keep
|
| 131 |
+
pose_valid_joint_ratio_threshold: 0.0
|
| 132 |
+
ema_decay: 0.9999
|
| 133 |
+
viz_interval: 5
|
| 134 |
+
val_sample_batches: 16
|
| 135 |
+
wandb:
|
| 136 |
+
enabled: true
|
| 137 |
+
project: ego2contact
|
| 138 |
+
name: v1_egt_oho
|
| 139 |
+
evaluation:
|
| 140 |
+
metrics:
|
| 141 |
+
- mpjpe
|
| 142 |
+
- pa_mpjpe
|
| 143 |
+
- pck
|
| 144 |
+
pck_threshold: 0.05
|
| 145 |
+
system:
|
| 146 |
+
seed: 42
|
| 147 |
+
device: cuda
|
| 148 |
+
gpu_ids:
|
| 149 |
+
- 0
|
| 150 |
+
- 1
|
| 151 |
+
- 2
|
| 152 |
+
- 3
|
| 153 |
+
mixed_precision: false
|
| 154 |
+
cudnn_benchmark: true
|
| 155 |
+
_base_: base.yaml
|