Add Infinigen-only fine-tune checkpoints (epochs 2/5/10) and val88 scores
Browse files- README.md +25 -0
- checkpoints/infinigen_10ep_lr1e-5/checkpoint_epoch10.pt +3 -0
- checkpoints/infinigen_10ep_lr1e-5/checkpoint_epoch2.pt +3 -0
- checkpoints/infinigen_10ep_lr1e-5/checkpoint_epoch5.pt +3 -0
- checkpoints/infinigen_10ep_lr1e-5/config.yaml +453 -0
- checkpoints/infinigen_10ep_lr1e-5/val88_metrics.json +49 -0
README.md
CHANGED
|
@@ -134,3 +134,28 @@ Compared with ScanNet val88: objects are farther from the camera (median 2.68 m
|
|
| 134 |
higher (median 1.62 m vs 1.47 m above the floor), the field of view is wider (median 67° vs 58°), and the category mix
|
| 135 |
differs (chair 3 % of tracks vs 30 %). In a fine-tuning test, a model trained only on this data shifted its distance
|
| 136 |
prior and placed ScanNet objects 15–25 % farther; mixing it with real data is recommended.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
higher (median 1.62 m vs 1.47 m above the floor), the field of view is wider (median 67° vs 58°), and the category mix
|
| 135 |
differs (chair 3 % of tracks vs 30 %). In a fine-tuning test, a model trained only on this data shifted its distance
|
| 136 |
prior and placed ScanNet objects 15–25 % farther; mixing it with real data is recommended.
|
| 137 |
+
|
| 138 |
+
## Checkpoints
|
| 139 |
+
|
| 140 |
+
`checkpoints/infinigen_10ep_lr1e-5/` holds SpatialEncoder v2 Small (Lite) fine-tuned on this dataset only (train split),
|
| 141 |
+
starting from the e100 checkpoint (`SpatialCoding/Data_verification`, `se_small_lite_wds518_e100/checkpoint.pt`; these
|
| 142 |
+
weights derive from it and follow its terms).
|
| 143 |
+
|
| 144 |
+
- 10 epochs × 1,600 clips per GPU on 8 GPUs (16,000 steps), batch 1 clip per GPU, 518 px, AdamW, learning rate
|
| 145 |
+
1e-5 → 1e-7 cosine (spatial-encoder group 1e-7 → 1e-9), same losses and augmentation as e100.
|
| 146 |
+
- `checkpoint_epoch{2,5,10}.pt` are full trainer checkpoints (`model`, `optimizer`, `epoch`, ...), 2.4 GB each;
|
| 147 |
+
`config.yaml` is the resolved training config; `val88_metrics.json` has the scores below.
|
| 148 |
+
- Trained on the first version of the scene JSONs, where `camera_box_2d_rend` was the visible-mask box (now
|
| 149 |
+
`camera_box_2d_visible`).
|
| 150 |
+
|
| 151 |
+
ScanNet val88 (GT 2D-box prompts):
|
| 152 |
+
|
| 153 |
+
| Checkpoint | [email protected] | [email protected] | [email protected] | 3D IoU |
|
| 154 |
+
|---|---|---|---|---|
|
| 155 |
+
| e100 (start, not in this repo) | 51.80 | 8.82 | 78.10 | 0.258 |
|
| 156 |
+
| epoch 2 | 40.20 | 4.98 | 71.98 | 0.222 |
|
| 157 |
+
| epoch 5 | 42.24 | 6.13 | 71.41 | 0.225 |
|
| 158 |
+
| epoch 10 | 41.99 | 5.64 | 70.92 | 0.223 |
|
| 159 |
+
|
| 160 |
+
The drop comes mainly from the model's distance prior shifting toward this dataset's farther objects (see above); the
|
| 161 |
+
same checkpoints improve sharply on this dataset's val split (rotation error 32° → 14°, centre error 0.67 → 0.41 m).
|
checkpoints/infinigen_10ep_lr1e-5/checkpoint_epoch10.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:44a11cf6bbe019d4ff5f0d404478d97a469b3cab8dd05d0b46824b542c5f74c5
|
| 3 |
+
size 2374720676
|
checkpoints/infinigen_10ep_lr1e-5/checkpoint_epoch2.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aec69d083dba628fa527093b8507287c163c8064e93c7ddee1df35ff1fe14cbc
|
| 3 |
+
size 2374720676
|
checkpoints/infinigen_10ep_lr1e-5/checkpoint_epoch5.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ecbcda90f04af90365838ddf8d940ca46f24ea14b1cb1529b85d4fa6c7be023e
|
| 3 |
+
size 2374720676
|
checkpoints/infinigen_10ep_lr1e-5/config.yaml
ADDED
|
@@ -0,0 +1,453 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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wei/project-assets/spatial_encoder/qi_verification/finetune/infinigen_10ep_lr1e-5
|
| 4 |
+
ca1m_train_meta: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj/pickle
|
| 5 |
+
ytvis_dir: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj/CA-1M
|
| 6 |
+
ca1m_val_meta: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj/dataset
|
| 7 |
+
sam3_checkpoint: /weka/home-wei/project-assets/spatial_encoder/qi_verification/se_small_lite_wds518_e100/checkpoint.pt
|
| 8 |
+
data_storage_path: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj
|
| 9 |
+
hyperism_meta_path: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj/dataset
|
| 10 |
+
adt_meta_path: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj/dataset
|
| 11 |
+
scratch:
|
| 12 |
+
resolution: 518
|
| 13 |
+
train_norm_mean:
|
| 14 |
+
- 0.485
|
| 15 |
+
- 0.456
|
| 16 |
+
- 0.406
|
| 17 |
+
train_norm_std:
|
| 18 |
+
- 0.229
|
| 19 |
+
- 0.224
|
| 20 |
+
- 0.225
|
| 21 |
+
train_batch_size: 1
|
| 22 |
+
num_train_workers: 16
|
| 23 |
+
samples_per_worker_per_epoch: 100
|
| 24 |
+
max_data_epochs: 10
|
| 25 |
+
hybrid_repeats: 1
|
| 26 |
+
video_split_per_frame: 15
|
| 27 |
+
frame_num_range:
|
| 28 |
+
- 2
|
| 29 |
+
- 8
|
| 30 |
+
frame_sample_gap_range:
|
| 31 |
+
- 1
|
| 32 |
+
- 5
|
| 33 |
+
max_num_objects: 12
|
| 34 |
+
min_crop_visible_ratio: 0.2
|
| 35 |
+
norm_scale: 2.5
|
| 36 |
+
val_video_split_per_frame: 8
|
| 37 |
+
val_frame_num_range:
|
| 38 |
+
- 8
|
| 39 |
+
- 8
|
| 40 |
+
val_frame_sample_gap_range:
|
| 41 |
+
- 1
|
| 42 |
+
- 1
|
| 43 |
+
val_max_num_objects: 10
|
| 44 |
+
lr: 1.0e-05
|
| 45 |
+
vision_lr: 1.0e-07
|
| 46 |
+
weight_decay: 0.1
|
| 47 |
+
video_transforms_train:
|
| 48 |
+
- _target_: sam3.train.transforms.basic_for_api.ComposeAPI
|
| 49 |
+
transforms:
|
| 50 |
+
- _target_: sam3.train.transforms.basic_for_api.RandomGrayscale
|
| 51 |
+
p: 0.05
|
| 52 |
+
consistent_transform: true
|
| 53 |
+
- _target_: sam3.train.transforms.basic_for_api.ToTensorAPI
|
| 54 |
+
- _target_: sam3.train.transforms.basic_for_api.NormalizeAPI
|
| 55 |
+
mean:
|
| 56 |
+
- 0.485
|
| 57 |
+
- 0.456
|
| 58 |
+
- 0.406
|
| 59 |
+
std:
|
| 60 |
+
- 0.229
|
| 61 |
+
- 0.224
|
| 62 |
+
- 0.225
|
| 63 |
+
video_transforms_val:
|
| 64 |
+
- _target_: sam3.train.transforms.basic_for_api.ComposeAPI
|
| 65 |
+
transforms:
|
| 66 |
+
- _target_: sam3.train.transforms.basic_for_api.ToTensorAPI
|
| 67 |
+
- _target_: sam3.train.transforms.basic_for_api.NormalizeAPI
|
| 68 |
+
mean:
|
| 69 |
+
- 0.485
|
| 70 |
+
- 0.456
|
| 71 |
+
- 0.406
|
| 72 |
+
std:
|
| 73 |
+
- 0.229
|
| 74 |
+
- 0.224
|
| 75 |
+
- 0.225
|
| 76 |
+
trainer:
|
| 77 |
+
_target_: sam3.train.trainer.Trainer
|
| 78 |
+
mode: train_only
|
| 79 |
+
skip_saving_ckpts: false
|
| 80 |
+
empty_gpu_mem_cache_after_eval: true
|
| 81 |
+
skip_first_val: true
|
| 82 |
+
max_epochs: 10
|
| 83 |
+
accelerator: cuda
|
| 84 |
+
seed_value: 123
|
| 85 |
+
val_epoch_freq: 9999
|
| 86 |
+
gradient_accumulation_steps: 1
|
| 87 |
+
cuda:
|
| 88 |
+
cudnn_benchmark: false
|
| 89 |
+
distributed:
|
| 90 |
+
backend: nccl
|
| 91 |
+
find_unused_parameters: true
|
| 92 |
+
gradient_as_bucket_view: true
|
| 93 |
+
model:
|
| 94 |
+
_target_: sam3.model_builder.build_sam3_multiplex_joint_video_train_model
|
| 95 |
+
image_size: 518
|
| 96 |
+
load_from_HF: false
|
| 97 |
+
checkpoint_path: /weka/home-wei/project-assets/spatial_encoder/qi_verification/se_small_lite_wds518_e100/checkpoint.pt
|
| 98 |
+
strict_state_dict_loading: false
|
| 99 |
+
multiplex_count: 1
|
| 100 |
+
use_fa3: false
|
| 101 |
+
use_act_checkpoint_multiplex_transformer: true
|
| 102 |
+
spatial_encoder:
|
| 103 |
+
_target_: sam3.model_builder.build_lite_spatial_encoder
|
| 104 |
+
spatial_name: depthanythingv3_lite
|
| 105 |
+
is_pretrained: false
|
| 106 |
+
is_encoder_frozen: false
|
| 107 |
+
is_head_frozen: false
|
| 108 |
+
img_size: 518
|
| 109 |
+
pretrained_path: null
|
| 110 |
+
base_dim: 32
|
| 111 |
+
feature_dim: 128
|
| 112 |
+
temporal_kernel_size: 3
|
| 113 |
+
enable_spatial_fusion: true
|
| 114 |
+
predict_depth: true
|
| 115 |
+
use_decoder_spatial_control: false
|
| 116 |
+
bbox_token_fusion: none
|
| 117 |
+
bbox_head_mode: reference_per_candidate
|
| 118 |
+
freeze_detector: true
|
| 119 |
+
freeze_tracker_backbone: true
|
| 120 |
+
freeze_tracker_neck: true
|
| 121 |
+
freeze_tracker_transformer: true
|
| 122 |
+
freeze_tracker_maskmem_backbone: true
|
| 123 |
+
freeze_tracker_sam_prompt_encoder: true
|
| 124 |
+
spatial_encoder_is_encoder_frozen: false
|
| 125 |
+
spatial_encoder_is_head_frozen: false
|
| 126 |
+
enable_detector_fusion: false
|
| 127 |
+
detector_merge_mode: max
|
| 128 |
+
detector_blend_alpha: 0.5
|
| 129 |
+
detector_score_threshold: 0.0
|
| 130 |
+
prob_to_use_pt_input_for_train: 0.5
|
| 131 |
+
prob_to_use_pt_input_for_eval: 1.0
|
| 132 |
+
prob_to_use_box_center_input_for_train: 0.5
|
| 133 |
+
prob_to_use_box_center_input_for_eval: 1.0
|
| 134 |
+
num_frames_to_correct_for_train: 2
|
| 135 |
+
num_frames_to_correct_for_eval: 1
|
| 136 |
+
rand_frames_to_correct_for_train: true
|
| 137 |
+
rand_frames_to_correct_for_eval: false
|
| 138 |
+
add_all_frames_to_correct_as_cond: true
|
| 139 |
+
num_init_cond_frames_for_train: 2
|
| 140 |
+
rand_init_cond_frames_for_train: true
|
| 141 |
+
num_init_cond_frames_for_eval: 1
|
| 142 |
+
rand_init_cond_frames_for_eval: false
|
| 143 |
+
enable_dynamic_training: false
|
| 144 |
+
rand_num_transition_points: false
|
| 145 |
+
max_num_transition_points: 0
|
| 146 |
+
add_all_transition_frames_as_cond: false
|
| 147 |
+
num_correction_pt_per_frame: 3
|
| 148 |
+
pt_sampling_for_eval: center
|
| 149 |
+
iou_prediction_use_sigmoid: true
|
| 150 |
+
sigmoid_scale_for_mem_enc: 20.0
|
| 151 |
+
sigmoid_bias_for_mem_enc: -10.0
|
| 152 |
+
use_signed_tpos_enc_to_obj_ptrs: true
|
| 153 |
+
only_obj_ptrs_in_the_past_for_eval: true
|
| 154 |
+
max_cond_frames_in_attn: -1
|
| 155 |
+
save_image_features: true
|
| 156 |
+
use_maskmem_tpos_v2: false
|
| 157 |
+
use_linear_no_obj_ptr: false
|
| 158 |
+
memory_encode_chunk_size: 1
|
| 159 |
+
detach_memory_encoder_inputs: true
|
| 160 |
+
build_detector: false
|
| 161 |
+
loss:
|
| 162 |
+
all:
|
| 163 |
+
_target_: sam3.train.loss.sam3_loss.VideoMultiStepDepthLoss
|
| 164 |
+
weight_dict:
|
| 165 |
+
loss_2d_bbox_iou: 10.0
|
| 166 |
+
loss_2d_bbox_l1: 5.0
|
| 167 |
+
loss_3d_bbox_center_in_2d_l1: 50.0
|
| 168 |
+
loss_3d_bbox_depth: 10.0
|
| 169 |
+
loss_3d_bbox_dim: 10.0
|
| 170 |
+
loss_3d_bbox_alpha: 10.0
|
| 171 |
+
loss_3d_bbox_quat: 10.0
|
| 172 |
+
loss_3d_bbox_ious: 1.0
|
| 173 |
+
loss_3d_chamfer: 10.0
|
| 174 |
+
loss_depth_map: 1.0
|
| 175 |
+
loss_depth_gradient: 1.0
|
| 176 |
+
loss_camera_pose: 1.0
|
| 177 |
+
loss_class: 10.0
|
| 178 |
+
loss_3d_bbox_l1: 10.0
|
| 179 |
+
loss_3d_agg_center_in_first_frame_l1: 10.0
|
| 180 |
+
loss_3d_agg_dim_l1: 10.0
|
| 181 |
+
loss_3d_agg_quat: 10.0
|
| 182 |
+
loss_3d_agg_chamfer: 10.0
|
| 183 |
+
loss_3d_agg_consistency: 1.0
|
| 184 |
+
depth_sil_coefficient: 10.0
|
| 185 |
+
focal_alpha: 0.25
|
| 186 |
+
focal_gamma: 2.0
|
| 187 |
+
supervise_all_iou: true
|
| 188 |
+
iou_use_l1_loss: true
|
| 189 |
+
pred_obj_scores: true
|
| 190 |
+
bbox_candidate_selection: pred_iou_times_conf
|
| 191 |
+
focal_gamma_obj_score: 0.0
|
| 192 |
+
focal_alpha_obj_score: -1.0
|
| 193 |
+
log_iou: true
|
| 194 |
+
log_depth_error: true
|
| 195 |
+
log_yaw_error: true
|
| 196 |
+
log_pose: true
|
| 197 |
+
resolution: 518
|
| 198 |
+
normalize_by_num_stages: true
|
| 199 |
+
average_depth_over_objects: true
|
| 200 |
+
default:
|
| 201 |
+
_target_: sam3.train.loss.sam3_loss.DummyLoss
|
| 202 |
+
data:
|
| 203 |
+
train:
|
| 204 |
+
_target_: sam3.train.data.torch_dataset.TorchDataset
|
| 205 |
+
enable_distributed_sampler: false
|
| 206 |
+
shuffle: false
|
| 207 |
+
prefetch_factor: 2
|
| 208 |
+
dataset:
|
| 209 |
+
_target_: sam3.train.data.aggregate_training_dataset.AggregateDataset
|
| 210 |
+
meta_dir: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj/pickle
|
| 211 |
+
base_dir:
|
| 212 |
+
CA-1M: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj/CA-1M
|
| 213 |
+
hyperism: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj/hyperism
|
| 214 |
+
ADT: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj/aria_digital_twin/ADT
|
| 215 |
+
transforms:
|
| 216 |
+
- _target_: sam3.train.transforms.basic_for_api.ComposeAPI
|
| 217 |
+
transforms:
|
| 218 |
+
- _target_: sam3.train.transforms.basic_for_api.RandomGrayscale
|
| 219 |
+
p: 0.05
|
| 220 |
+
consistent_transform: true
|
| 221 |
+
- _target_: sam3.train.transforms.basic_for_api.ToTensorAPI
|
| 222 |
+
- _target_: sam3.train.transforms.basic_for_api.NormalizeAPI
|
| 223 |
+
mean:
|
| 224 |
+
- 0.485
|
| 225 |
+
- 0.456
|
| 226 |
+
- 0.406
|
| 227 |
+
std:
|
| 228 |
+
- 0.229
|
| 229 |
+
- 0.224
|
| 230 |
+
- 0.225
|
| 231 |
+
load_segmentation: true
|
| 232 |
+
training: true
|
| 233 |
+
max_train_queries: 100000
|
| 234 |
+
default_scale: 1000.0
|
| 235 |
+
predict_metric: true
|
| 236 |
+
norm_scale: 2.5
|
| 237 |
+
video_split_per_frame: 15
|
| 238 |
+
frame_num_range:
|
| 239 |
+
- 2
|
| 240 |
+
- 8
|
| 241 |
+
frame_sample_gap_range:
|
| 242 |
+
- 1
|
| 243 |
+
- 5
|
| 244 |
+
max_num_objects: 12
|
| 245 |
+
resolution: 518
|
| 246 |
+
resolution_aug_scale:
|
| 247 |
+
- 0.8
|
| 248 |
+
- 1.2
|
| 249 |
+
min_crop_visible_ratio: 0.2
|
| 250 |
+
spatial_type: depthanythingv3
|
| 251 |
+
spatial_resolution: 518
|
| 252 |
+
shuffle: true
|
| 253 |
+
num_workers: 16
|
| 254 |
+
samples_per_worker_per_epoch: 100
|
| 255 |
+
meta_dir_dict:
|
| 256 |
+
CA-1M: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj/pickle
|
| 257 |
+
hyperism: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj/dataset
|
| 258 |
+
ADT: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj/dataset
|
| 259 |
+
default_scales:
|
| 260 |
+
CA-1M: 1000.0
|
| 261 |
+
hyperism: 1000.0
|
| 262 |
+
ADT: 1000.0
|
| 263 |
+
weights:
|
| 264 |
+
- 0.4
|
| 265 |
+
- 0.2
|
| 266 |
+
- 0.4
|
| 267 |
+
catalog_path: /weka/home-wei/project-assets/spatial_encoder/qi_verification/finetune/infinigen_catalog.json
|
| 268 |
+
batch_size: 1
|
| 269 |
+
num_workers: 16
|
| 270 |
+
pin_memory: true
|
| 271 |
+
drop_last: true
|
| 272 |
+
collate_fn:
|
| 273 |
+
_target_: sam3.train.data.collator.collate_fn_api
|
| 274 |
+
_partial_: true
|
| 275 |
+
repeats: 1
|
| 276 |
+
dict_key: all
|
| 277 |
+
with_seg_masks: true
|
| 278 |
+
enforce_single_datapoint_batch: true
|
| 279 |
+
val:
|
| 280 |
+
_target_: sam3.train.data.torch_dataset.TorchDataset
|
| 281 |
+
prefetch_factor: 2
|
| 282 |
+
dataset:
|
| 283 |
+
_target_: sam3.train.data.ca1m_dataset.CA1MValDataset
|
| 284 |
+
meta_dir: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj/dataset
|
| 285 |
+
base_dir: /weka/home-wei/project-assets/spatial_encoder/dataset/infinigen_traj/CA-1M
|
| 286 |
+
transforms:
|
| 287 |
+
- _target_: sam3.train.transforms.basic_for_api.ComposeAPI
|
| 288 |
+
transforms:
|
| 289 |
+
- _target_: sam3.train.transforms.basic_for_api.ToTensorAPI
|
| 290 |
+
- _target_: sam3.train.transforms.basic_for_api.NormalizeAPI
|
| 291 |
+
mean:
|
| 292 |
+
- 0.485
|
| 293 |
+
- 0.456
|
| 294 |
+
- 0.406
|
| 295 |
+
std:
|
| 296 |
+
- 0.229
|
| 297 |
+
- 0.224
|
| 298 |
+
- 0.225
|
| 299 |
+
load_segmentation: true
|
| 300 |
+
training: false
|
| 301 |
+
max_train_queries: 100000
|
| 302 |
+
max_val_queries: 100000
|
| 303 |
+
default_scale: 1000.0
|
| 304 |
+
predict_metric: true
|
| 305 |
+
use_extrinsic: true
|
| 306 |
+
norm_scale: 2.5
|
| 307 |
+
video_split_per_frame: 8
|
| 308 |
+
frame_num_range:
|
| 309 |
+
- 8
|
| 310 |
+
- 8
|
| 311 |
+
frame_sample_gap_range:
|
| 312 |
+
- 1
|
| 313 |
+
- 1
|
| 314 |
+
max_num_objects: 10
|
| 315 |
+
resolution: 518
|
| 316 |
+
min_crop_visible_ratio: 0.2
|
| 317 |
+
spatial_type: depthanythingv3
|
| 318 |
+
spatial_resolution: 518
|
| 319 |
+
shuffle: false
|
| 320 |
+
batch_size: 1
|
| 321 |
+
num_workers: 16
|
| 322 |
+
pin_memory: true
|
| 323 |
+
drop_last: false
|
| 324 |
+
collate_fn:
|
| 325 |
+
_target_: sam3.train.data.collator.collate_fn_api
|
| 326 |
+
_partial_: true
|
| 327 |
+
repeats: 1
|
| 328 |
+
dict_key: all
|
| 329 |
+
with_seg_masks: true
|
| 330 |
+
enforce_single_datapoint_batch: true
|
| 331 |
+
meters:
|
| 332 |
+
train: null
|
| 333 |
+
val:
|
| 334 |
+
all:
|
| 335 |
+
miou:
|
| 336 |
+
_target_: sam3.train.metric.MeanIoU
|
| 337 |
+
translation_error:
|
| 338 |
+
_target_: sam3.train.metric.TranslationError
|
| 339 |
+
scale: 2.5
|
| 340 |
+
depth_error:
|
| 341 |
+
_target_: sam3.train.metric.DepthError
|
| 342 |
+
scale: 2.5
|
| 343 |
+
yaw_error:
|
| 344 |
+
_target_: sam3.train.metric.YawError
|
| 345 |
+
unit: rad
|
| 346 |
+
scale_error:
|
| 347 |
+
_target_: sam3.train.metric.ScaleError
|
| 348 |
+
optim:
|
| 349 |
+
amp:
|
| 350 |
+
enabled: true
|
| 351 |
+
amp_dtype: bfloat16
|
| 352 |
+
optimizer:
|
| 353 |
+
_target_: torch.optim.AdamW
|
| 354 |
+
lr: 1.0e-05
|
| 355 |
+
weight_decay: 0.1
|
| 356 |
+
options:
|
| 357 |
+
lr:
|
| 358 |
+
- scheduler:
|
| 359 |
+
_target_: fvcore.common.param_scheduler.CosineParamScheduler
|
| 360 |
+
start_value: 1.0e-05
|
| 361 |
+
end_value: 1.0000000000000001e-07
|
| 362 |
+
- scheduler:
|
| 363 |
+
_target_: fvcore.common.param_scheduler.CosineParamScheduler
|
| 364 |
+
start_value: 1.0e-07
|
| 365 |
+
end_value: 9.999999999999999e-10
|
| 366 |
+
param_names:
|
| 367 |
+
- tracker.backbone.*
|
| 368 |
+
- tracker.spatial_*
|
| 369 |
+
weight_decay:
|
| 370 |
+
- scheduler:
|
| 371 |
+
_target_: fvcore.common.param_scheduler.ConstantParamScheduler
|
| 372 |
+
value: 0.1
|
| 373 |
+
- scheduler:
|
| 374 |
+
_target_: fvcore.common.param_scheduler.ConstantParamScheduler
|
| 375 |
+
value: 0.0
|
| 376 |
+
param_names:
|
| 377 |
+
- '*bias*'
|
| 378 |
+
module_cls_names:
|
| 379 |
+
- torch.nn.LayerNorm
|
| 380 |
+
gradient_clip:
|
| 381 |
+
_target_: sam3.train.optim.optimizer.GradientClipper
|
| 382 |
+
max_norm: 0.1
|
| 383 |
+
norm_type: 2
|
| 384 |
+
checkpoint:
|
| 385 |
+
save_dir: /weka/home-wei/project-assets/spatial_encoder/qi_verification/finetune/infinigen_10ep_lr1e-5/checkpoints
|
| 386 |
+
save_freq: 0
|
| 387 |
+
save_list:
|
| 388 |
+
- 2
|
| 389 |
+
- 5
|
| 390 |
+
- 10
|
| 391 |
+
logging:
|
| 392 |
+
tensorboard_writer:
|
| 393 |
+
_target_: sam3.train.utils.logger.make_tensorboard_logger
|
| 394 |
+
log_dir: /weka/home-wei/project-assets/spatial_encoder/qi_verification/finetune/infinigen_10ep_lr1e-5/tensorboard
|
| 395 |
+
flush_secs: 120
|
| 396 |
+
should_log: true
|
| 397 |
+
wandb_writer:
|
| 398 |
+
_target_: sam3.train.utils.wandb_logger.WandbLogger
|
| 399 |
+
enabled: false
|
| 400 |
+
project: spatial-encoder
|
| 401 |
+
entity: null
|
| 402 |
+
name: train_data_scaling_lite
|
| 403 |
+
run_id: null
|
| 404 |
+
mode: disabled
|
| 405 |
+
log_dir: /weka/home-wei/project-assets/spatial_encoder/qi_verification/finetune/infinigen_10ep_lr1e-5/wandb
|
| 406 |
+
config:
|
| 407 |
+
resolution: 518
|
| 408 |
+
spatial_encoder:
|
| 409 |
+
_target_: sam3.model_builder.build_lite_spatial_encoder
|
| 410 |
+
spatial_name: depthanythingv3_lite
|
| 411 |
+
is_pretrained: false
|
| 412 |
+
is_encoder_frozen: false
|
| 413 |
+
is_head_frozen: false
|
| 414 |
+
img_size: 518
|
| 415 |
+
pretrained_path: null
|
| 416 |
+
base_dim: 32
|
| 417 |
+
feature_dim: 128
|
| 418 |
+
temporal_kernel_size: 3
|
| 419 |
+
batch_size_per_gpu: 1
|
| 420 |
+
num_workers_per_gpu: 16
|
| 421 |
+
learning_rate: 1.0e-05
|
| 422 |
+
frame_num_range:
|
| 423 |
+
- 2
|
| 424 |
+
- 8
|
| 425 |
+
gradient_accumulation_steps: 1
|
| 426 |
+
distributed:
|
| 427 |
+
backend: nccl
|
| 428 |
+
find_unused_parameters: true
|
| 429 |
+
gradient_as_bucket_view: true
|
| 430 |
+
memory_encode_chunk_size: 1
|
| 431 |
+
activation_checkpointing: true
|
| 432 |
+
freeze_inactive_lite_adapters: false
|
| 433 |
+
workload_window_size: 0
|
| 434 |
+
workload_window_sort: true
|
| 435 |
+
log_performance: true
|
| 436 |
+
log_dir: /weka/home-wei/project-assets/spatial_encoder/qi_verification/finetune/infinigen_10ep_lr1e-5/logs/
|
| 437 |
+
log_freq: 10
|
| 438 |
+
log_scalar_frequency: 10
|
| 439 |
+
launcher:
|
| 440 |
+
num_nodes: 1
|
| 441 |
+
gpus_per_node: 8
|
| 442 |
+
experiment_log_dir: /weka/home-wei/project-assets/spatial_encoder/qi_verification/finetune/infinigen_10ep_lr1e-5
|
| 443 |
+
submitit:
|
| 444 |
+
account: null
|
| 445 |
+
partition: null
|
| 446 |
+
qos: null
|
| 447 |
+
timeout_hour: 72
|
| 448 |
+
use_cluster: false
|
| 449 |
+
cpus_per_task: 10
|
| 450 |
+
port_range:
|
| 451 |
+
- 45000
|
| 452 |
+
- 65000
|
| 453 |
+
constraint: null
|
checkpoints/infinigen_10ep_lr1e-5/val88_metrics.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"benchmark": "ScanNet val88 (VSIBench), GT 2D-box prompts, spatial_encoder_v2_small training/final_perception.py protocol",
|
| 3 |
+
"results": {
|
| 4 |
+
"e100": {
|
| 5 |
+
"[email protected]": 0.7810457516339869,
|
| 6 |
+
"[email protected]": 0.5179738562091504,
|
| 7 |
+
"[email protected]": 0.08823529411764706,
|
| 8 |
+
"iou_3d": 0.25839499509443703,
|
| 9 |
+
"depth_error": 0.14577651820532492,
|
| 10 |
+
"scale_error": 0.5704675641607397,
|
| 11 |
+
"translation_error": 0.3705654483154456,
|
| 12 |
+
"gt_num": 1224,
|
| 13 |
+
"pred_num": 1224
|
| 14 |
+
},
|
| 15 |
+
"epoch2": {
|
| 16 |
+
"[email protected]": 0.7197712418300652,
|
| 17 |
+
"[email protected]": 0.40196078431372545,
|
| 18 |
+
"[email protected]": 0.049836601307189546,
|
| 19 |
+
"iou_3d": 0.22210775781804434,
|
| 20 |
+
"depth_error": 0.18222831868170564,
|
| 21 |
+
"scale_error": 0.6448121021588012,
|
| 22 |
+
"translation_error": 0.4404954523341529,
|
| 23 |
+
"gt_num": 1224,
|
| 24 |
+
"pred_num": 1224
|
| 25 |
+
},
|
| 26 |
+
"epoch5": {
|
| 27 |
+
"[email protected]": 0.7140522875816993,
|
| 28 |
+
"[email protected]": 0.4223856209150327,
|
| 29 |
+
"[email protected]": 0.061274509803921566,
|
| 30 |
+
"iou_3d": 0.22525062597143894,
|
| 31 |
+
"depth_error": 0.19174793674208948,
|
| 32 |
+
"scale_error": 0.62655902652468,
|
| 33 |
+
"translation_error": 0.4638944240397198,
|
| 34 |
+
"gt_num": 1224,
|
| 35 |
+
"pred_num": 1224
|
| 36 |
+
},
|
| 37 |
+
"epoch10": {
|
| 38 |
+
"[email protected]": 0.7091503267973857,
|
| 39 |
+
"[email protected]": 0.4199346405228758,
|
| 40 |
+
"[email protected]": 0.056372549019607844,
|
| 41 |
+
"iou_3d": 0.22261301632950997,
|
| 42 |
+
"depth_error": 0.19339099277919544,
|
| 43 |
+
"scale_error": 0.6341708121626839,
|
| 44 |
+
"translation_error": 0.4676733579358411,
|
| 45 |
+
"gt_num": 1224,
|
| 46 |
+
"pred_num": 1224
|
| 47 |
+
}
|
| 48 |
+
}
|
| 49 |
+
}
|