H2-conv (3.17) step 12000: raw + EMA export
Browse files
image_video_conv/step12000/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# image_video_conv / step 12000 (H2-conv, grain_prior 3.17)
|
| 2 |
+
|
| 3 |
+
Intermediate checkpoint of the conv-decoder run (d_f 52, 16,420 numbers per 256x256 image; SD-VAE style conv decoder
|
| 4 |
+
after the splat, splat_direct, 8-head mid attention, conv_low_in). Trained on image + video, 8 GPUs, batch 384 images +
|
| 5 |
+
96 clips per step, warm start from grain-prior-g2df-20k; WSD not yet in its decay phase at this step.
|
| 6 |
+
|
| 7 |
+
- `raw/`: training weights at step 12000 (`grain_prior.pt`, `config.json`), DINOv3 excluded (load with your own copy).
|
| 8 |
+
- `ema/`: EMA 0.999 at step 12000 (still lagging at this step: use `raw/`).
|
| 9 |
+
- `s12000_*.md`: eval tables (200 ImageNet val images; 20 OpenVid held-out clips, stride 8 and 2).
|
| 10 |
+
- `launcher.sh`: the training flags (paths removed).
|
| 11 |
+
|
image_video_conv/step12000/ema/config.json
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"step": 12000,
|
| 3 |
+
"n_params": 294408173,
|
| 4 |
+
"cfg": {
|
| 5 |
+
"image_size": 256,
|
| 6 |
+
"patch": 16,
|
| 7 |
+
"dino_repo": "facebook/dinov3-vitl16-pretrain-lvd1689m",
|
| 8 |
+
"dino_dim": 1024,
|
| 9 |
+
"dino_registers": 4,
|
| 10 |
+
"dino_layers": [
|
| 11 |
+
8,
|
| 12 |
+
16,
|
| 13 |
+
24
|
| 14 |
+
],
|
| 15 |
+
"stub_dino_dim": 64,
|
| 16 |
+
"stub_dino_blocks": 4,
|
| 17 |
+
"pix_dim": 256,
|
| 18 |
+
"dim": 512,
|
| 19 |
+
"heads": 8,
|
| 20 |
+
"layers": 6,
|
| 21 |
+
"mlp_ratio": 4.0,
|
| 22 |
+
"rope_dims": [
|
| 23 |
+
16,
|
| 24 |
+
24,
|
| 25 |
+
24
|
| 26 |
+
],
|
| 27 |
+
"rope_base": 100.0,
|
| 28 |
+
"shared_streams": false,
|
| 29 |
+
"keyframe_every": 4,
|
| 30 |
+
"d_c_image": 47,
|
| 31 |
+
"d_c_video": 23,
|
| 32 |
+
"fov_min": 30.0,
|
| 33 |
+
"fov_max": 120.0,
|
| 34 |
+
"fov_init": 50.0,
|
| 35 |
+
"rho_refine_heads": 4,
|
| 36 |
+
"flow_grid": 4,
|
| 37 |
+
"d_r": 24,
|
| 38 |
+
"l_max": 0,
|
| 39 |
+
"budget": 12288,
|
| 40 |
+
"p_l0": 0.15,
|
| 41 |
+
"enc_r_layers": 4,
|
| 42 |
+
"dec_dim": 512,
|
| 43 |
+
"dec_heads": 8,
|
| 44 |
+
"knn": 9,
|
| 45 |
+
"softmin_beta": 1.0,
|
| 46 |
+
"cut_eps": 0.0001,
|
| 47 |
+
"z_eps": 0.01,
|
| 48 |
+
"backface_kappa": 10.0,
|
| 49 |
+
"dec_pred_blocks": 2,
|
| 50 |
+
"dec_innov_blocks": 2,
|
| 51 |
+
"prev_read": true,
|
| 52 |
+
"n_freq": 6,
|
| 53 |
+
"conv_channels": [
|
| 54 |
+
512,
|
| 55 |
+
512,
|
| 56 |
+
128
|
| 57 |
+
],
|
| 58 |
+
"conv_res_blocks": 1,
|
| 59 |
+
"w_rgb": 1.0,
|
| 60 |
+
"w_feat": 1.0,
|
| 61 |
+
"w_geo": 0.5,
|
| 62 |
+
"w_pred": 0.5,
|
| 63 |
+
"geo_rgb": true,
|
| 64 |
+
"w_flow": 0.01,
|
| 65 |
+
"w_smooth": 0.01,
|
| 66 |
+
"w_kl_c": 1e-06,
|
| 67 |
+
"w_kl_d": 1e-06,
|
| 68 |
+
"w_link": 0.25,
|
| 69 |
+
"depth_probe": null,
|
| 70 |
+
"w_depth_prior": 0.0,
|
| 71 |
+
"depth_prior_kind": "silog",
|
| 72 |
+
"depth_prior_on": [
|
| 73 |
+
"image",
|
| 74 |
+
"video"
|
| 75 |
+
],
|
| 76 |
+
"w_depth_gt": 0.0,
|
| 77 |
+
"depth_gt_lam": 0.85,
|
| 78 |
+
"w_rho_distill": 0.0,
|
| 79 |
+
"w_lpips": 0.2,
|
| 80 |
+
"lpips_max_frames": 32,
|
| 81 |
+
"charbonnier_eps": 0.001,
|
| 82 |
+
"detach_rho_image": true,
|
| 83 |
+
"extra": {},
|
| 84 |
+
"stem_channels": [
|
| 85 |
+
64,
|
| 86 |
+
128,
|
| 87 |
+
256,
|
| 88 |
+
512
|
| 89 |
+
],
|
| 90 |
+
"pe_freq": 8,
|
| 91 |
+
"mlp_hidden": 512,
|
| 92 |
+
"stratum": 1,
|
| 93 |
+
"d_f": 52,
|
| 94 |
+
"coarse_grid": 4,
|
| 95 |
+
"d_coarse": 128,
|
| 96 |
+
"grain_blocks": 2,
|
| 97 |
+
"grain_read_s": 1.0,
|
| 98 |
+
"sigma_min": 0.15,
|
| 99 |
+
"sigma_span": 1.1,
|
| 100 |
+
"rho_lo": -7.0,
|
| 101 |
+
"rho_hi": 5.0,
|
| 102 |
+
"temp_s": 1.0,
|
| 103 |
+
"n_motion": 16,
|
| 104 |
+
"d_b": 2,
|
| 105 |
+
"n_slots": 52,
|
| 106 |
+
"d_e": 20,
|
| 107 |
+
"queue": 3,
|
| 108 |
+
"fold_mode": "memory",
|
| 109 |
+
"nested_L": [
|
| 110 |
+
0,
|
| 111 |
+
16,
|
| 112 |
+
32,
|
| 113 |
+
52,
|
| 114 |
+
52,
|
| 115 |
+
52,
|
| 116 |
+
52
|
| 117 |
+
],
|
| 118 |
+
"image_fov_fixed": true,
|
| 119 |
+
"pp_range": 0.05,
|
| 120 |
+
"refine_passes": 2,
|
| 121 |
+
"upd_blocks": 2,
|
| 122 |
+
"corr_eps": 0.05,
|
| 123 |
+
"corr_s": [
|
| 124 |
+
3.0,
|
| 125 |
+
1.5
|
| 126 |
+
],
|
| 127 |
+
"frame_seconds": 0.125,
|
| 128 |
+
"res_layers": 4,
|
| 129 |
+
"read_layers": 2,
|
| 130 |
+
"tau_d": 0.1,
|
| 131 |
+
"tau_d_mode": "median",
|
| 132 |
+
"rgb_channels": [
|
| 133 |
+
256,
|
| 134 |
+
128,
|
| 135 |
+
64,
|
| 136 |
+
32
|
| 137 |
+
],
|
| 138 |
+
"rgb_from": "hidden",
|
| 139 |
+
"query_grid": 64,
|
| 140 |
+
"read_qk_norm": false,
|
| 141 |
+
"readout_version": "legacy",
|
| 142 |
+
"read_strict": true,
|
| 143 |
+
"read_coarse_init": true,
|
| 144 |
+
"read_sink": true,
|
| 145 |
+
"read_radius_scale": true,
|
| 146 |
+
"read_radius_clip": 8.0,
|
| 147 |
+
"innov_stopgrad_base": true,
|
| 148 |
+
"w_geom_dense": 1.0,
|
| 149 |
+
"w_geom_ramp_steps": 0,
|
| 150 |
+
"dino_multi_layer": true,
|
| 151 |
+
"read_coarse_kv": true,
|
| 152 |
+
"coarse_sink": true,
|
| 153 |
+
"read_relpos_value": true,
|
| 154 |
+
"relpos_rank": 8,
|
| 155 |
+
"rgb_coarse_start": true,
|
| 156 |
+
"w_rgb_coarse": 1.0,
|
| 157 |
+
"rgb_head": "conv",
|
| 158 |
+
"rgb_pw_mlp_ratio": 4.0,
|
| 159 |
+
"rgb_in_feat": false,
|
| 160 |
+
"read_split_layer2": true,
|
| 161 |
+
"read_prev_frame": true,
|
| 162 |
+
"w_pred_frame": 0.5,
|
| 163 |
+
"sem_target": "",
|
| 164 |
+
"w_sem": 0.0,
|
| 165 |
+
"sem_dim": 768,
|
| 166 |
+
"w_gan": 0.0,
|
| 167 |
+
"gan_start": 0,
|
| 168 |
+
"disc_channels": 64,
|
| 169 |
+
"disc_layers": 3,
|
| 170 |
+
"anchor_df": false,
|
| 171 |
+
"train_scope": "all",
|
| 172 |
+
"rgb_ctx_blocks": 0,
|
| 173 |
+
"rgb_decoder": "splat",
|
| 174 |
+
"splat_layers": 8,
|
| 175 |
+
"splat_feat": 128,
|
| 176 |
+
"splat_atoms": 12,
|
| 177 |
+
"splat_window": 2,
|
| 178 |
+
"splat_wmax": 8.0,
|
| 179 |
+
"splat_index": "projected",
|
| 180 |
+
"splat_cap": 4,
|
| 181 |
+
"splat_pix_feat": 0,
|
| 182 |
+
"splat_pix_atoms": 6,
|
| 183 |
+
"splat_pix_wmax": 8.0,
|
| 184 |
+
"rgb_pix_blocks": 0,
|
| 185 |
+
"rgb_pix_width": 128,
|
| 186 |
+
"splat_dim": 768,
|
| 187 |
+
"conv_blocks": [
|
| 188 |
+
4,
|
| 189 |
+
4,
|
| 190 |
+
3
|
| 191 |
+
],
|
| 192 |
+
"conv_mid_attn": true,
|
| 193 |
+
"conv_act_ckpt": true,
|
| 194 |
+
"conv_attn_heads": 8,
|
| 195 |
+
"conv_low_in": true,
|
| 196 |
+
"splat_direct": true,
|
| 197 |
+
"read_normalizer": "softmax",
|
| 198 |
+
"read_topk": 0,
|
| 199 |
+
"entmax_alpha_init": 1.0,
|
| 200 |
+
"alpha_anneal_steps": 0,
|
| 201 |
+
"state_noise_bits": 0,
|
| 202 |
+
"geom_noise_px": 0.0,
|
| 203 |
+
"sigma_param": "log",
|
| 204 |
+
"sigma_lo": 0.02,
|
| 205 |
+
"query_version": 1,
|
| 206 |
+
"measurement_version": 1,
|
| 207 |
+
"render_profile": "uniform_midpoint_v1",
|
| 208 |
+
"innovation_semantics": "legacy_image",
|
| 209 |
+
"render_samples": 32,
|
| 210 |
+
"query_chunk": 2048,
|
| 211 |
+
"read_act_ckpt": false,
|
| 212 |
+
"render_near": 0.1,
|
| 213 |
+
"render_far": 4.0,
|
| 214 |
+
"background_rgb": [
|
| 215 |
+
0.0,
|
| 216 |
+
0.0,
|
| 217 |
+
0.0
|
| 218 |
+
],
|
| 219 |
+
"prior_layers": 6,
|
| 220 |
+
"horizons": [
|
| 221 |
+
1,
|
| 222 |
+
4
|
| 223 |
+
],
|
| 224 |
+
"query_init": "cond",
|
| 225 |
+
"geom_bias": true,
|
| 226 |
+
"memory": true,
|
| 227 |
+
"phase": "codec",
|
| 228 |
+
"world_given_p": 0.5,
|
| 229 |
+
"w_edge": 0.5,
|
| 230 |
+
"feat_sg_f": true,
|
| 231 |
+
"w_logn": 0.01,
|
| 232 |
+
"w_base": 0.5,
|
| 233 |
+
"w_init": 0.25,
|
| 234 |
+
"w_geom": 1.0,
|
| 235 |
+
"w_pose": 0.1,
|
| 236 |
+
"w_motion": 0,
|
| 237 |
+
"w_warp": 0.1,
|
| 238 |
+
"w_warp_flow": 1.0,
|
| 239 |
+
"warp_radius": 3,
|
| 240 |
+
"warp_tau": 0.01,
|
| 241 |
+
"grain_df_k": 8,
|
| 242 |
+
"w_code": 0.0001,
|
| 243 |
+
"depth_delta": 0.1,
|
| 244 |
+
"depth_loss": "huber",
|
| 245 |
+
"depth_bg_far": 0.0
|
| 246 |
+
},
|
| 247 |
+
"excluded": "stems.dino.model.*"
|
| 248 |
+
}
|
image_video_conv/step12000/ema/grain_prior.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d38633f27a6ede6e3ec19b52323bd432f6432d44de0d7f319150bbfab1222e9
|
| 3 |
+
size 1178087048
|
image_video_conv/step12000/launcher.sh
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
# H2-conv: 3.17 (review fixes) on 8 GPUs. Fresh start from G2df-iv 20k EMA: d_f 52 (state 16 420), splat 8 blocks @768
|
| 3 |
+
# feat 128 / 12 atoms + splat_direct, conv decoder 512/512/128 x 4/4/3 with 8-head mid attention and the coarse
|
| 4 |
+
# image as input (conv_low_in), activation checkpointing. DINO frozen, everything else trains; tensors whose shape
|
| 5 |
+
# changed with d_f keep their fresh init (--init-shape-ok). Same data / losses / schedule as G2df-iv (image 0.3 /
|
| 6 |
+
# video 0.7, WSD), ckpt every 250. Batch 64 images + 16 clips per GPU (512 + 128 global). Stop: touch STOP_H2.
|
| 7 |
+
P=<path> D=<path> O=$P/H2-conv; mkdir -p $O
|
| 8 |
+
INIT_CKPT=$P/G2df-iv/step_0020000_ema.pt
|
| 9 |
+
CODE=<path> cd $CODE
|
| 10 |
+
S=${STEPS:-20000}; MEM_MAX=${MEM_MAX:-250}; GPUS=${GPUS:-0,1,2,3,4,5,6,7}; NGPU=$(echo $GPUS | tr ',' '\n' | wc -l)
|
| 11 |
+
IMG="--imagenet $D/imagenet-1k"
|
| 12 |
+
VID="--openvid $D/dino_v0_data/openvid1m/manifest.jsonl --ssv2-train $D/dino_v0_data/ssv2/ssv2_train_manifest.jsonl --ssv2-weight 0.3 --frame-stride 2,4,8"
|
| 13 |
+
BATCHES=${BATCHES:-64+16,48+12,32+8}
|
| 14 |
+
SETS="--set d_f=52 --set rgb_decoder=splat --set feat_sg_f=true --set w_lpips=0.2 --set w_edge=0.5 --set read_act_ckpt=false --set lpips_max_frames=32 --set query_chunk=2048"
|
| 15 |
+
GEO="--set w_warp=0.1 --set w_motion=0 --set splat_index=projected --set splat_cap=4 --set w_warp_flow=1.0 --set warp_radius=3 --set warp_tau=0.01 --set grain_df_k=8"
|
| 16 |
+
NEW="--set splat_dim=768 --set splat_layers=8 --set splat_feat=128 --set splat_atoms=12 --set splat_direct=true --set rgb_head=conv --set conv_channels=[512,512,128] --set conv_blocks=[4,4,3] --set conv_attn_heads=8 --set conv_low_in=true --set conv_act_ckpt=true"
|
| 17 |
+
export TORCHINDUCTOR_CACHE_DIR=<path> TRITON_CACHE_DIR=<path>
|
| 18 |
+
mkdir -p $TRITON_CACHE_DIR
|
| 19 |
+
export TORCHINDUCTOR_MAX_AUTOTUNE=${MAXAT:-1} TORCHINDUCTOR_MAX_AUTOTUNE_POINTWISE=${MAXAT:-1}
|
| 20 |
+
. <path>
|
| 21 |
+
gpu_busy() { # more than 5 % VRAM in use on any of our GPUs
|
| 22 |
+
local out v; out=$(rocm-smi --showmemuse 2>/dev/null)
|
| 23 |
+
for g in ${GPUS//,/ }; do v=$(echo "$out" | grep "GPU\[$g\]" | grep "VRAM%" | awk '{print $NF}'); [ "${v:-0}" -gt 5 ] && return 0; done
|
| 24 |
+
return 1
|
| 25 |
+
}
|
| 26 |
+
echo "waiting for GPU $GPUS $(date -u)" >> $O/launch.txt
|
| 27 |
+
while gpu_busy; do [ -e $P/STOP_H2 ] && exit 0; sleep 60; done
|
| 28 |
+
echo "GPU $GPUS free, starting $(date -u)" >> $O/launch.txt
|
| 29 |
+
train() { # <out> <steps> <extra...>
|
| 30 |
+
local out=$1 steps=$2; shift 2
|
| 31 |
+
gpuardian run --name muse-spark-mavt -- /usr/bin/env -u KEY HIP_VISIBLE_DEVICES=$GPUS PYTHONFAULTHANDLER=1 PYTHONPATH=src HF_HUB_OFFLINE=1 OMP_NUM_THREADS=16 \
|
| 32 |
+
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True \
|
| 33 |
+
<path> -m torch.distributed.run --standalone --nproc_per_node $NGPU --max-restarts=0 \
|
| 34 |
+
scripts/train_grain_prior.py --config configs/grain_prior/final.yaml \
|
| 35 |
+
--set dino_repo=<path> $SETS $GEO $NEW --set "nested_L=[0,16,32,52,52,52,52]" \
|
| 36 |
+
$IMG $VID $BATCH --modality-loss-weights image:0.3,video:0.7 --num-workers 24 \
|
| 37 |
+
--compile-regions ${REGIONS:-Block,ReadLayer} --steps $steps --decay-steps $((steps / 10)) --ckpt-every 250 --out $out "$@" >> $out/train.log 2>&1
|
| 38 |
+
}
|
| 39 |
+
bat() { local b=$1; echo "--batch-image ${b%+*} --batch-video ${b#*+}"; }
|
| 40 |
+
if [ -f $O/last.pt ]; then INIT="--resume $O/last.pt"; CK=$O/last.pt; else INIT="--init $INIT_CKPT --resume none --init-new-ok --init-shape-ok"; CK=$INIT_CKPT; fi
|
| 41 |
+
if [ ! -f $O/probe/batch.txt ]; then
|
| 42 |
+
mkdir -p $O/probe
|
| 43 |
+
for b in ${BATCHES//,/ }; do
|
| 44 |
+
BATCH=$(bat $b)
|
| 45 |
+
: > $O/probe/log.jsonl; rm -f $O/probe/last*.pt
|
| 46 |
+
train $O/probe 40 --init $CK --resume none --init-new-ok --init-shape-ok --log-every 10 --ckpt-every 1000000; R=$?
|
| 47 |
+
PEAK=$(python3 -c "import json;print(max(json.loads(l).get(\"peak_mem_gb\",0) for l in open(\"$O/probe/log.jsonl\")))" 2>/dev/null || echo 999)
|
| 48 |
+
echo "probe ${NGPU}gpu $BATCH exit=$R peak_mem_gb=$PEAK $(date -u)" >> $O/probe.txt
|
| 49 |
+
if [ $R -eq 0 ] && python3 -c "import sys;sys.exit(1 if float(\"$PEAK\")>$MEM_MAX else 0)"; then echo "${NGPU}gpu $BATCH" > $O/probe/batch.txt; break; fi
|
| 50 |
+
done
|
| 51 |
+
[ -f $O/probe/batch.txt ] || { echo "no batch fits under MEM_MAX: not starting" >> $O/probe.txt; exit 1; }
|
| 52 |
+
fi
|
| 53 |
+
BATCH=$(cut -d" " -f2- $O/probe/batch.txt)
|
| 54 |
+
[ -e $P/STOP_H2 ] && exit 0
|
| 55 |
+
try=0
|
| 56 |
+
while [ ! -e $P/STOP_H2 ]; do
|
| 57 |
+
train $O $S $INIT; R=$?
|
| 58 |
+
echo "EXIT=$R try=$try $(date -u)" >> $O/train.log
|
| 59 |
+
if [ $R -eq 0 ] || [ ! -f $O/last.pt ]; then break; fi
|
| 60 |
+
[ $try -ge 3 ] && { echo "giving up after $try retries" >> $O/train.log; break; }
|
| 61 |
+
INIT="--resume $O/last.pt"; try=$((try + 1)); sleep 30
|
| 62 |
+
done
|
| 63 |
+
echo "LAUNCHER_EXIT=$R $(date -u)" >> $O/launch.txt
|
image_video_conv/step12000/raw/config.json
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"step": 12000,
|
| 3 |
+
"n_params": 294408173,
|
| 4 |
+
"cfg": {
|
| 5 |
+
"image_size": 256,
|
| 6 |
+
"patch": 16,
|
| 7 |
+
"dino_repo": "facebook/dinov3-vitl16-pretrain-lvd1689m",
|
| 8 |
+
"dino_dim": 1024,
|
| 9 |
+
"dino_registers": 4,
|
| 10 |
+
"dino_layers": [
|
| 11 |
+
8,
|
| 12 |
+
16,
|
| 13 |
+
24
|
| 14 |
+
],
|
| 15 |
+
"stub_dino_dim": 64,
|
| 16 |
+
"stub_dino_blocks": 4,
|
| 17 |
+
"pix_dim": 256,
|
| 18 |
+
"dim": 512,
|
| 19 |
+
"heads": 8,
|
| 20 |
+
"layers": 6,
|
| 21 |
+
"mlp_ratio": 4.0,
|
| 22 |
+
"rope_dims": [
|
| 23 |
+
16,
|
| 24 |
+
24,
|
| 25 |
+
24
|
| 26 |
+
],
|
| 27 |
+
"rope_base": 100.0,
|
| 28 |
+
"shared_streams": false,
|
| 29 |
+
"keyframe_every": 4,
|
| 30 |
+
"d_c_image": 47,
|
| 31 |
+
"d_c_video": 23,
|
| 32 |
+
"fov_min": 30.0,
|
| 33 |
+
"fov_max": 120.0,
|
| 34 |
+
"fov_init": 50.0,
|
| 35 |
+
"rho_refine_heads": 4,
|
| 36 |
+
"flow_grid": 4,
|
| 37 |
+
"d_r": 24,
|
| 38 |
+
"l_max": 0,
|
| 39 |
+
"budget": 12288,
|
| 40 |
+
"p_l0": 0.15,
|
| 41 |
+
"enc_r_layers": 4,
|
| 42 |
+
"dec_dim": 512,
|
| 43 |
+
"dec_heads": 8,
|
| 44 |
+
"knn": 9,
|
| 45 |
+
"softmin_beta": 1.0,
|
| 46 |
+
"cut_eps": 0.0001,
|
| 47 |
+
"z_eps": 0.01,
|
| 48 |
+
"backface_kappa": 10.0,
|
| 49 |
+
"dec_pred_blocks": 2,
|
| 50 |
+
"dec_innov_blocks": 2,
|
| 51 |
+
"prev_read": true,
|
| 52 |
+
"n_freq": 6,
|
| 53 |
+
"conv_channels": [
|
| 54 |
+
512,
|
| 55 |
+
512,
|
| 56 |
+
128
|
| 57 |
+
],
|
| 58 |
+
"conv_res_blocks": 1,
|
| 59 |
+
"w_rgb": 1.0,
|
| 60 |
+
"w_feat": 1.0,
|
| 61 |
+
"w_geo": 0.5,
|
| 62 |
+
"w_pred": 0.5,
|
| 63 |
+
"geo_rgb": true,
|
| 64 |
+
"w_flow": 0.01,
|
| 65 |
+
"w_smooth": 0.01,
|
| 66 |
+
"w_kl_c": 1e-06,
|
| 67 |
+
"w_kl_d": 1e-06,
|
| 68 |
+
"w_link": 0.25,
|
| 69 |
+
"depth_probe": null,
|
| 70 |
+
"w_depth_prior": 0.0,
|
| 71 |
+
"depth_prior_kind": "silog",
|
| 72 |
+
"depth_prior_on": [
|
| 73 |
+
"image",
|
| 74 |
+
"video"
|
| 75 |
+
],
|
| 76 |
+
"w_depth_gt": 0.0,
|
| 77 |
+
"depth_gt_lam": 0.85,
|
| 78 |
+
"w_rho_distill": 0.0,
|
| 79 |
+
"w_lpips": 0.2,
|
| 80 |
+
"lpips_max_frames": 32,
|
| 81 |
+
"charbonnier_eps": 0.001,
|
| 82 |
+
"detach_rho_image": true,
|
| 83 |
+
"extra": {},
|
| 84 |
+
"stem_channels": [
|
| 85 |
+
64,
|
| 86 |
+
128,
|
| 87 |
+
256,
|
| 88 |
+
512
|
| 89 |
+
],
|
| 90 |
+
"pe_freq": 8,
|
| 91 |
+
"mlp_hidden": 512,
|
| 92 |
+
"stratum": 1,
|
| 93 |
+
"d_f": 52,
|
| 94 |
+
"coarse_grid": 4,
|
| 95 |
+
"d_coarse": 128,
|
| 96 |
+
"grain_blocks": 2,
|
| 97 |
+
"grain_read_s": 1.0,
|
| 98 |
+
"sigma_min": 0.15,
|
| 99 |
+
"sigma_span": 1.1,
|
| 100 |
+
"rho_lo": -7.0,
|
| 101 |
+
"rho_hi": 5.0,
|
| 102 |
+
"temp_s": 1.0,
|
| 103 |
+
"n_motion": 16,
|
| 104 |
+
"d_b": 2,
|
| 105 |
+
"n_slots": 52,
|
| 106 |
+
"d_e": 20,
|
| 107 |
+
"queue": 3,
|
| 108 |
+
"fold_mode": "memory",
|
| 109 |
+
"nested_L": [
|
| 110 |
+
0,
|
| 111 |
+
16,
|
| 112 |
+
32,
|
| 113 |
+
52,
|
| 114 |
+
52,
|
| 115 |
+
52,
|
| 116 |
+
52
|
| 117 |
+
],
|
| 118 |
+
"image_fov_fixed": true,
|
| 119 |
+
"pp_range": 0.05,
|
| 120 |
+
"refine_passes": 2,
|
| 121 |
+
"upd_blocks": 2,
|
| 122 |
+
"corr_eps": 0.05,
|
| 123 |
+
"corr_s": [
|
| 124 |
+
3.0,
|
| 125 |
+
1.5
|
| 126 |
+
],
|
| 127 |
+
"frame_seconds": 0.125,
|
| 128 |
+
"res_layers": 4,
|
| 129 |
+
"read_layers": 2,
|
| 130 |
+
"tau_d": 0.1,
|
| 131 |
+
"tau_d_mode": "median",
|
| 132 |
+
"rgb_channels": [
|
| 133 |
+
256,
|
| 134 |
+
128,
|
| 135 |
+
64,
|
| 136 |
+
32
|
| 137 |
+
],
|
| 138 |
+
"rgb_from": "hidden",
|
| 139 |
+
"query_grid": 64,
|
| 140 |
+
"read_qk_norm": false,
|
| 141 |
+
"readout_version": "legacy",
|
| 142 |
+
"read_strict": true,
|
| 143 |
+
"read_coarse_init": true,
|
| 144 |
+
"read_sink": true,
|
| 145 |
+
"read_radius_scale": true,
|
| 146 |
+
"read_radius_clip": 8.0,
|
| 147 |
+
"innov_stopgrad_base": true,
|
| 148 |
+
"w_geom_dense": 1.0,
|
| 149 |
+
"w_geom_ramp_steps": 0,
|
| 150 |
+
"dino_multi_layer": true,
|
| 151 |
+
"read_coarse_kv": true,
|
| 152 |
+
"coarse_sink": true,
|
| 153 |
+
"read_relpos_value": true,
|
| 154 |
+
"relpos_rank": 8,
|
| 155 |
+
"rgb_coarse_start": true,
|
| 156 |
+
"w_rgb_coarse": 1.0,
|
| 157 |
+
"rgb_head": "conv",
|
| 158 |
+
"rgb_pw_mlp_ratio": 4.0,
|
| 159 |
+
"rgb_in_feat": false,
|
| 160 |
+
"read_split_layer2": true,
|
| 161 |
+
"read_prev_frame": true,
|
| 162 |
+
"w_pred_frame": 0.5,
|
| 163 |
+
"sem_target": "",
|
| 164 |
+
"w_sem": 0.0,
|
| 165 |
+
"sem_dim": 768,
|
| 166 |
+
"w_gan": 0.0,
|
| 167 |
+
"gan_start": 0,
|
| 168 |
+
"disc_channels": 64,
|
| 169 |
+
"disc_layers": 3,
|
| 170 |
+
"anchor_df": false,
|
| 171 |
+
"train_scope": "all",
|
| 172 |
+
"rgb_ctx_blocks": 0,
|
| 173 |
+
"rgb_decoder": "splat",
|
| 174 |
+
"splat_layers": 8,
|
| 175 |
+
"splat_feat": 128,
|
| 176 |
+
"splat_atoms": 12,
|
| 177 |
+
"splat_window": 2,
|
| 178 |
+
"splat_wmax": 8.0,
|
| 179 |
+
"splat_index": "projected",
|
| 180 |
+
"splat_cap": 4,
|
| 181 |
+
"splat_pix_feat": 0,
|
| 182 |
+
"splat_pix_atoms": 6,
|
| 183 |
+
"splat_pix_wmax": 8.0,
|
| 184 |
+
"rgb_pix_blocks": 0,
|
| 185 |
+
"rgb_pix_width": 128,
|
| 186 |
+
"splat_dim": 768,
|
| 187 |
+
"conv_blocks": [
|
| 188 |
+
4,
|
| 189 |
+
4,
|
| 190 |
+
3
|
| 191 |
+
],
|
| 192 |
+
"conv_mid_attn": true,
|
| 193 |
+
"conv_act_ckpt": true,
|
| 194 |
+
"conv_attn_heads": 8,
|
| 195 |
+
"conv_low_in": true,
|
| 196 |
+
"splat_direct": true,
|
| 197 |
+
"read_normalizer": "softmax",
|
| 198 |
+
"read_topk": 0,
|
| 199 |
+
"entmax_alpha_init": 1.0,
|
| 200 |
+
"alpha_anneal_steps": 0,
|
| 201 |
+
"state_noise_bits": 0,
|
| 202 |
+
"geom_noise_px": 0.0,
|
| 203 |
+
"sigma_param": "log",
|
| 204 |
+
"sigma_lo": 0.02,
|
| 205 |
+
"query_version": 1,
|
| 206 |
+
"measurement_version": 1,
|
| 207 |
+
"render_profile": "uniform_midpoint_v1",
|
| 208 |
+
"innovation_semantics": "legacy_image",
|
| 209 |
+
"render_samples": 32,
|
| 210 |
+
"query_chunk": 2048,
|
| 211 |
+
"read_act_ckpt": false,
|
| 212 |
+
"render_near": 0.1,
|
| 213 |
+
"render_far": 4.0,
|
| 214 |
+
"background_rgb": [
|
| 215 |
+
0.0,
|
| 216 |
+
0.0,
|
| 217 |
+
0.0
|
| 218 |
+
],
|
| 219 |
+
"prior_layers": 6,
|
| 220 |
+
"horizons": [
|
| 221 |
+
1,
|
| 222 |
+
4
|
| 223 |
+
],
|
| 224 |
+
"query_init": "cond",
|
| 225 |
+
"geom_bias": true,
|
| 226 |
+
"memory": true,
|
| 227 |
+
"phase": "codec",
|
| 228 |
+
"world_given_p": 0.5,
|
| 229 |
+
"w_edge": 0.5,
|
| 230 |
+
"feat_sg_f": true,
|
| 231 |
+
"w_logn": 0.01,
|
| 232 |
+
"w_base": 0.5,
|
| 233 |
+
"w_init": 0.25,
|
| 234 |
+
"w_geom": 1.0,
|
| 235 |
+
"w_pose": 0.1,
|
| 236 |
+
"w_motion": 0,
|
| 237 |
+
"w_warp": 0.1,
|
| 238 |
+
"w_warp_flow": 1.0,
|
| 239 |
+
"warp_radius": 3,
|
| 240 |
+
"warp_tau": 0.01,
|
| 241 |
+
"grain_df_k": 8,
|
| 242 |
+
"w_code": 0.0001,
|
| 243 |
+
"depth_delta": 0.1,
|
| 244 |
+
"depth_loss": "huber",
|
| 245 |
+
"depth_bg_far": 0.0
|
| 246 |
+
},
|
| 247 |
+
"excluded": "stems.dino.model.*"
|
| 248 |
+
}
|
image_video_conv/step12000/raw/grain_prior.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:885449bb56d989b7f83bb2cc64fb3004ed3ceaa0b1b4a7c5057420a3b61903f9
|
| 3 |
+
size 1178087048
|