Datasets:
Add files using upload-large-folder tool
Browse files- .gitattributes +3 -0
- README.md +18 -6
- configs/augment_recipe.yaml +170 -0
- configs/render_MfM_confidence_3dgs.yaml +94 -0
- configs/train_MfM.yaml +99 -0
- configs/train_RfD.yaml +212 -0
- configs/validate_MfM.yaml +150 -0
- configs/validate_RfD.yaml +205 -0
- data/physcore.zip +3 -0
- data/phystwin.zip +3 -0
- gaussian_output/physcore.zip +3 -0
.gitattributes
CHANGED
|
@@ -61,3 +61,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 61 |
|
| 62 |
# 3D point clouds
|
| 63 |
*.ply filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
# 3D point clouds
|
| 63 |
*.ply filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
|
| 65 |
+
# Archives
|
| 66 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -28,13 +28,24 @@ Dynamics** (CoRL 2026).
|
|
| 28 |
|
| 29 |
```
|
| 30 |
data/
|
| 31 |
-
├── phystwin
|
| 32 |
-
└── physcore
|
| 33 |
-
gaussian_output/physcore
|
| 34 |
-
checkpoints/
|
| 35 |
-
configs/
|
| 36 |
```
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
Each of the 26 cases is one recording from **3 calibrated RGB-D cameras**, time-aligned:
|
| 39 |
|
| 40 |
| path | content |
|
|
@@ -50,7 +61,8 @@ Each of the 26 cases is one recording from **3 calibrated RGB-D cameras**, time-
|
|
| 50 |
|
| 51 |
## Where to start
|
| 52 |
|
| 53 |
-
|
|
|
|
| 54 |
`data/`, `gaussian_output/`, `checkpoints/` and `configs/` sit beside the pipeline
|
| 55 |
scripts. The code repository's README walks through the stages in order and names the
|
| 56 |
config each one reads.
|
|
|
|
| 28 |
|
| 29 |
```
|
| 30 |
data/
|
| 31 |
+
├── phystwin.zip 14 cases, redistributed (see Licenses)
|
| 32 |
+
└── physcore.zip 12 cases, recorded by us
|
| 33 |
+
gaussian_output/physcore.zip static 3DGS scenes for the 12 physcore cases
|
| 34 |
+
checkpoints/ MfM_checkpoint.pt, RfD_checkpoint.pt
|
| 35 |
+
configs/ one YAML per pipeline script
|
| 36 |
```
|
| 37 |
|
| 38 |
+
The recordings are shipped as archives to keep the repository to a handful of files.
|
| 39 |
+
Unzip each one in place; every archive expands into a directory of the same name:
|
| 40 |
+
|
| 41 |
+
```bash
|
| 42 |
+
cd data && unzip phystwin.zip && unzip physcore.zip && cd ..
|
| 43 |
+
cd gaussian_output && unzip physcore.zip && cd ..
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
which gives `data/phystwin/different_types/<case>/`,
|
| 47 |
+
`data/physcore/different_types/<case>/` and `gaussian_output/physcore/<case>/`.
|
| 48 |
+
|
| 49 |
Each of the 26 cases is one recording from **3 calibrated RGB-D cameras**, time-aligned:
|
| 50 |
|
| 51 |
| path | content |
|
|
|
|
| 61 |
|
| 62 |
## Where to start
|
| 63 |
|
| 64 |
+
Unzip the three archives as above, then copy the contents of this repository into the
|
| 65 |
+
root of a PhysCoRe checkout, so that
|
| 66 |
`data/`, `gaussian_output/`, `checkpoints/` and `configs/` sit beside the pipeline
|
| 67 |
scripts. The code repository's README walks through the stages in order and names the
|
| 68 |
config each one reads.
|
configs/augment_recipe.yaml
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Augmentation recipe for datagen/augment/run_recipe.py.
|
| 2 |
+
#
|
| 3 |
+
# Each group is self-contained: material sampling, rollout physics, rendering,
|
| 4 |
+
# seed, and output count all live here.
|
| 5 |
+
|
| 6 |
+
sources_root: data_episodes/phystwin
|
| 7 |
+
output_root: data_episodes_augmented/episodes
|
| 8 |
+
viz_root: data_episodes_augmented/video
|
| 9 |
+
device: cuda
|
| 10 |
+
viz: true
|
| 11 |
+
|
| 12 |
+
groups:
|
| 13 |
+
- name: elastic
|
| 14 |
+
mode: elastic
|
| 15 |
+
num_episodes: 70
|
| 16 |
+
seed_base: 42
|
| 17 |
+
material:
|
| 18 |
+
log_E:
|
| 19 |
+
mean_range: [6.0, 9.0]
|
| 20 |
+
std_range: [0.5, 1.5]
|
| 21 |
+
clamp: [5.0, 11.0]
|
| 22 |
+
nu:
|
| 23 |
+
mean_range: [0.15, 0.35]
|
| 24 |
+
std_range: [0.05, 0.15]
|
| 25 |
+
clamp: [0.05, 0.45]
|
| 26 |
+
noise:
|
| 27 |
+
freq_range: [0.5, 1.6]
|
| 28 |
+
octaves: 4
|
| 29 |
+
persistence: 0.55
|
| 30 |
+
lacunarity: 2.0
|
| 31 |
+
render:
|
| 32 |
+
max_observed_points: 0
|
| 33 |
+
particle_subset: shell
|
| 34 |
+
splat_radius: 1
|
| 35 |
+
depth_noise_std: 0.002
|
| 36 |
+
depth_noise_relative: 0.001
|
| 37 |
+
depth_dropout: 0.01
|
| 38 |
+
near_depth: 0.01
|
| 39 |
+
far_depth: 60.0
|
| 40 |
+
ground:
|
| 41 |
+
friction: 0.5
|
| 42 |
+
elasticity: 0.0
|
| 43 |
+
clearance_cells: 0.0
|
| 44 |
+
dataset:
|
| 45 |
+
rollout_steps: 25
|
| 46 |
+
real_world_domain_center: [0.5, 0.5, 0.2]
|
| 47 |
+
rollout:
|
| 48 |
+
use_batched_mpm: true
|
| 49 |
+
use_episode_sim_dt: true
|
| 50 |
+
default_dt: 0.000666
|
| 51 |
+
default_steps_per_frame: 2
|
| 52 |
+
num_grids: 32
|
| 53 |
+
clip_bound: 0.5
|
| 54 |
+
gravity: [0.0, 0.0, -9.8]
|
| 55 |
+
damping: 0.999
|
| 56 |
+
rho: 100.0
|
| 57 |
+
ground_height: 0.02
|
| 58 |
+
ground_surface: coulomb
|
| 59 |
+
ground_elasticity: 0.0
|
| 60 |
+
ground_friction: 0.5
|
| 61 |
+
ground_tangent_damping: 0.25
|
| 62 |
+
ground_static_velocity_threshold: 0.02
|
| 63 |
+
use_explicit_rigid_contact: true
|
| 64 |
+
use_episode_rigid_contact: true
|
| 65 |
+
rigid_surface_fps: 256
|
| 66 |
+
rigid_friction: 0.5
|
| 67 |
+
rigid_contact_margin: 0.02
|
| 68 |
+
rigid_velocity_blend: 0.9
|
| 69 |
+
rigid_stickiness: 1.0
|
| 70 |
+
rigid_strict_nonpenetration: true
|
| 71 |
+
rigid_projection_iterations: 2
|
| 72 |
+
rigid_projection_margin: 5.0e-05
|
| 73 |
+
elasticity_model: CorotatedElasticity
|
| 74 |
+
plasticity_model: IdentityPlasticity
|
| 75 |
+
manipulation_controller_grid_contact_radius: 0.08
|
| 76 |
+
manipulation_controller_grid_velocity_blend: 1.0
|
| 77 |
+
max_delta_velocity_norm: 0.05
|
| 78 |
+
correction_target_velocity_gain: 100.0
|
| 79 |
+
correction_target_velocity_damping: 1.2
|
| 80 |
+
correction_target_velocity_integral_gain: 40.0
|
| 81 |
+
correction:
|
| 82 |
+
mode: spring
|
| 83 |
+
dt_scale: 0.25
|
| 84 |
+
steps_per_frame_scale: 4
|
| 85 |
+
velocity_cap: 5.0
|
| 86 |
+
omega_n: 150.0
|
| 87 |
+
zeta: 2.5
|
| 88 |
+
apply_force_every_substep: true
|
| 89 |
+
max_force_norm: 5000.0
|
| 90 |
+
|
| 91 |
+
- name: plastic
|
| 92 |
+
mode: plastic
|
| 93 |
+
num_episodes: 10
|
| 94 |
+
seed_base: 44
|
| 95 |
+
material:
|
| 96 |
+
log_E:
|
| 97 |
+
mean_range: [10.0, 10.5]
|
| 98 |
+
std_range: [0.0, 0.0]
|
| 99 |
+
clamp: [10.0, 10.5]
|
| 100 |
+
nu:
|
| 101 |
+
mean_range: [0.30, 0.38]
|
| 102 |
+
std_range: [0.0, 0.0]
|
| 103 |
+
clamp: [0.30, 0.40]
|
| 104 |
+
noise:
|
| 105 |
+
freq_range: [1.6, 2.4]
|
| 106 |
+
octaves: 4
|
| 107 |
+
persistence: 0.55
|
| 108 |
+
lacunarity: 2.0
|
| 109 |
+
render:
|
| 110 |
+
max_observed_points: 0
|
| 111 |
+
particle_subset: shell
|
| 112 |
+
splat_radius: 1
|
| 113 |
+
depth_noise_std: 0.002
|
| 114 |
+
depth_noise_relative: 0.001
|
| 115 |
+
depth_dropout: 0.01
|
| 116 |
+
near_depth: 0.01
|
| 117 |
+
far_depth: 60.0
|
| 118 |
+
ground:
|
| 119 |
+
friction: 0.5
|
| 120 |
+
elasticity: 0.0
|
| 121 |
+
clearance_cells: 0.0
|
| 122 |
+
dataset:
|
| 123 |
+
rollout_steps: 25
|
| 124 |
+
real_world_domain_center: [0.5, 0.5, 0.2]
|
| 125 |
+
rollout:
|
| 126 |
+
use_batched_mpm: true
|
| 127 |
+
use_episode_sim_dt: true
|
| 128 |
+
default_dt: 0.000666
|
| 129 |
+
default_steps_per_frame: 2
|
| 130 |
+
num_grids: 32
|
| 131 |
+
clip_bound: 0.5
|
| 132 |
+
gravity: [0.0, 0.0, -9.8]
|
| 133 |
+
damping: 0.999
|
| 134 |
+
rho: 100.0
|
| 135 |
+
ground_height: 0.02
|
| 136 |
+
ground_surface: coulomb
|
| 137 |
+
ground_elasticity: 0.0
|
| 138 |
+
ground_friction: 0.5
|
| 139 |
+
ground_tangent_damping: 0.25
|
| 140 |
+
ground_static_velocity_threshold: 0.02
|
| 141 |
+
use_explicit_rigid_contact: true
|
| 142 |
+
use_episode_rigid_contact: true
|
| 143 |
+
rigid_surface_fps: 256
|
| 144 |
+
rigid_friction: 0.5
|
| 145 |
+
rigid_contact_margin: 0.02
|
| 146 |
+
rigid_velocity_blend: 0.9
|
| 147 |
+
rigid_stickiness: 1.0
|
| 148 |
+
rigid_strict_nonpenetration: true
|
| 149 |
+
rigid_projection_iterations: 2
|
| 150 |
+
rigid_projection_margin: 5.0e-05
|
| 151 |
+
elasticity_model: CorotatedElasticity
|
| 152 |
+
plasticity_model: VonMisesPlasticity
|
| 153 |
+
plasticity_kwargs:
|
| 154 |
+
VonMisesPlasticity:
|
| 155 |
+
sigma_y: 200.0
|
| 156 |
+
manipulation_controller_grid_contact_radius: 0.08
|
| 157 |
+
manipulation_controller_grid_velocity_blend: 1.0
|
| 158 |
+
max_delta_velocity_norm: 0.05
|
| 159 |
+
correction_target_velocity_gain: 100.0
|
| 160 |
+
correction_target_velocity_damping: 1.2
|
| 161 |
+
correction_target_velocity_integral_gain: 40.0
|
| 162 |
+
correction:
|
| 163 |
+
mode: spring
|
| 164 |
+
dt_scale: 0.25
|
| 165 |
+
steps_per_frame_scale: 4
|
| 166 |
+
velocity_cap: 5.0
|
| 167 |
+
omega_n: 150.0
|
| 168 |
+
zeta: 2.5
|
| 169 |
+
apply_force_every_substep: true
|
| 170 |
+
max_force_norm: 5000.0
|
configs/render_MfM_confidence_3dgs.yaml
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MfM confidence -> dynamic 3DGS video. Owned by render_MfM_confidence_3dgs.py.
|
| 2 |
+
# Needs `validate_MfM.py --save-rollout` on the same checkpoint and episode.
|
| 3 |
+
|
| 4 |
+
render:
|
| 5 |
+
checkpoint: checkpoints/MfM_checkpoint.pt # must be the one that produced traj_path
|
| 6 |
+
episode_root: data_episodes/physcore/<case_name>/episode_0000
|
| 7 |
+
gs_dir: gaussian_output/physcore/<case_name>/init=pcd_iso=True_ldepth=0.001_lnormal=0.0_laniso_0.0_lseg=1.0
|
| 8 |
+
traj_path: outputs/MfM/val/YYYYMMDD_hhmm/validation_episode_0000_trajectory.pt
|
| 9 |
+
out_dir: outputs/MfM_conf_overlay/<case_name>_YYYYMMDD_hhmm # IS the run dir; stamp by hand
|
| 10 |
+
name: null
|
| 11 |
+
device: cuda
|
| 12 |
+
mem_fraction: 0.0
|
| 13 |
+
|
| 14 |
+
overlay_on_rgb: true
|
| 15 |
+
rgb_root: null
|
| 16 |
+
overlay_alpha_gain: 1.0
|
| 17 |
+
overlay_bg_fade: 0.4
|
| 18 |
+
overlay_front_opacity: 0.95
|
| 19 |
+
|
| 20 |
+
channels: null
|
| 21 |
+
cmap: viridis
|
| 22 |
+
norm_q: 0.99 # used only when norm_hi is null
|
| 23 |
+
norm_hi: 2.0 # tune per case; pin it to compare runs
|
| 24 |
+
midpoint_only: false
|
| 25 |
+
running_max: false
|
| 26 |
+
warmup_frames: 30 # settles the recurrent state; 0 = off, and the video opens bright
|
| 27 |
+
|
| 28 |
+
iteration: 10000
|
| 29 |
+
opacity_threshold: 0.01
|
| 30 |
+
bg_dist_threshold: 0.03
|
| 31 |
+
knn_k: 16 # also drives the warp weights, so this is not a color-only knob
|
| 32 |
+
warp_chunk: 4096
|
| 33 |
+
|
| 34 |
+
fps: 30
|
| 35 |
+
video_frames: null
|
| 36 |
+
save_pngs: true
|
| 37 |
+
metadata_json: null
|
| 38 |
+
flip_z: null
|
| 39 |
+
|
| 40 |
+
# Must match what validate_MfM.py ran with; defines the shift undone to put the
|
| 41 |
+
# trajectory back in the Gaussians' frame.
|
| 42 |
+
dataset:
|
| 43 |
+
real_world_domain_center: [0.5, 0.5, 0.2]
|
| 44 |
+
observation_views: all
|
| 45 |
+
observation_view_index: 0
|
| 46 |
+
|
| 47 |
+
# Refiner architecture. Must match the checkpoint; the model is rebuilt from
|
| 48 |
+
# this block before the weights load.
|
| 49 |
+
model:
|
| 50 |
+
hidden: 128
|
| 51 |
+
graph_unet_k: 8
|
| 52 |
+
graph_unet_pool: fps
|
| 53 |
+
graph_unet_ratios:
|
| 54 |
+
- 1.0
|
| 55 |
+
- 0.5
|
| 56 |
+
- 0.25
|
| 57 |
+
edge_feature: canonical_length_only
|
| 58 |
+
edge_direction: false
|
| 59 |
+
fixed_tracked_mask: false
|
| 60 |
+
use_persistent_tracks: true
|
| 61 |
+
persistent_track_use_motion_valid: true
|
| 62 |
+
tracked_disp_mode: canonical
|
| 63 |
+
control_disp_mode: absolute
|
| 64 |
+
max_controls: 4
|
| 65 |
+
tracked_disp_scale: 33.0
|
| 66 |
+
tracked_mask_scale: 1.0
|
| 67 |
+
control_vec_scale: 1.0
|
| 68 |
+
control_disp_scale: 33.0
|
| 69 |
+
canonical_bands: 4
|
| 70 |
+
tracked_bands: 16
|
| 71 |
+
attention_window: 9
|
| 72 |
+
temporal_conv: 9
|
| 73 |
+
initial_material_confidence_bias: 0.0
|
| 74 |
+
evidence_aggregation: true
|
| 75 |
+
evidence_tracked_weight: 8.0
|
| 76 |
+
evidence_control_weight: 4.0
|
| 77 |
+
evidence_control_radius: 0.04
|
| 78 |
+
log_E_min: 5.0
|
| 79 |
+
log_E_max: 11.0
|
| 80 |
+
nu_min: 0.05
|
| 81 |
+
nu_max: 0.45
|
| 82 |
+
graph_aggregation_chunks: 10
|
| 83 |
+
|
| 84 |
+
train:
|
| 85 |
+
seed: 0 # seeds material_guess below only
|
| 86 |
+
update_every: 10 # K — MfM refreshes every K frames and holds in between
|
| 87 |
+
|
| 88 |
+
# This model ignores the initial guess, so it has no effect on the render.
|
| 89 |
+
material_guess:
|
| 90 |
+
mode: uniform
|
| 91 |
+
log_E_range: [7.66, 7.66]
|
| 92 |
+
nu_range: [0.363, 0.363]
|
| 93 |
+
log_E_clamp_range: [5.0, 12.0]
|
| 94 |
+
nu_clamp_range: [0.05, 0.45]
|
configs/train_MfM.yaml
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MfM (Material from Motion) training. Owned by train_MfM.py.
|
| 2 |
+
# The names `refiner` and `Refiner`, here and in the code, both refer to MfM.
|
| 3 |
+
|
| 4 |
+
dataset:
|
| 5 |
+
# Augmented episodes from run_recipe.py, relative to the repo root. The split
|
| 6 |
+
# below is the first 80% of each group for training, the last 20% for validation.
|
| 7 |
+
train_roots:
|
| 8 |
+
- data_episodes_augmented/episodes/*_elastic/episode_00[0-4][0-9] # elastic 0000-0049
|
| 9 |
+
- data_episodes_augmented/episodes/*_elastic/episode_005[0-5] # elastic 0050-0055
|
| 10 |
+
- data_episodes_augmented/episodes/*_plastic/episode_000[0-7] # plastic 0000-0007
|
| 11 |
+
validation_roots:
|
| 12 |
+
- data_episodes_augmented/episodes/*_elastic/episode_005[6-9] # elastic 0056-0059
|
| 13 |
+
- data_episodes_augmented/episodes/*_elastic/episode_006[0-9] # elastic 0060-0069
|
| 14 |
+
- data_episodes_augmented/episodes/*_plastic/episode_000[8-9] # plastic 0008-0009
|
| 15 |
+
model:
|
| 16 |
+
hidden: 128
|
| 17 |
+
graph_unet_k: 8
|
| 18 |
+
graph_unet_pool: fps
|
| 19 |
+
graph_unet_ratios:
|
| 20 |
+
- 1.0
|
| 21 |
+
- 0.5
|
| 22 |
+
- 0.25
|
| 23 |
+
edge_feature: canonical_length_only
|
| 24 |
+
edge_direction: false
|
| 25 |
+
fixed_tracked_mask: false
|
| 26 |
+
use_persistent_tracks: true
|
| 27 |
+
persistent_track_use_motion_valid: true
|
| 28 |
+
tracked_disp_mode: canonical
|
| 29 |
+
control_disp_mode: absolute
|
| 30 |
+
max_controls: 4
|
| 31 |
+
tracked_disp_scale: 33.0
|
| 32 |
+
tracked_mask_scale: 1.0
|
| 33 |
+
control_vec_scale: 1.0
|
| 34 |
+
control_disp_scale: 33.0
|
| 35 |
+
canonical_bands: 4
|
| 36 |
+
tracked_bands: 16
|
| 37 |
+
attention_window: 9
|
| 38 |
+
temporal_conv: 9
|
| 39 |
+
initial_material_confidence_bias: 0.0
|
| 40 |
+
evidence_aggregation: true
|
| 41 |
+
evidence_tracked_weight: 8.0
|
| 42 |
+
evidence_control_weight: 4.0
|
| 43 |
+
evidence_control_radius: 0.04
|
| 44 |
+
log_E_min: 5.0
|
| 45 |
+
log_E_max: 11.0
|
| 46 |
+
nu_min: 0.05
|
| 47 |
+
nu_max: 0.45
|
| 48 |
+
graph_aggregation_chunks: 10
|
| 49 |
+
train:
|
| 50 |
+
seed: 0
|
| 51 |
+
device: cuda
|
| 52 |
+
# Run directory, stamped by hand at launch: outputs/MfM/train/YYYYMMDD_hhmm.
|
| 53 |
+
output_dir: outputs/MfM/train/YYYYMMDD_hhmm
|
| 54 |
+
epochs: 2000
|
| 55 |
+
lr: 0.0001
|
| 56 |
+
final_lr: 0.0001
|
| 57 |
+
lr_warmup_epochs: 0
|
| 58 |
+
warmup_start_lr: 0.0001
|
| 59 |
+
lr_decay_start: 0
|
| 60 |
+
lr_decay_end: 0
|
| 61 |
+
weight_decay: 0.01
|
| 62 |
+
update_every: 10
|
| 63 |
+
tbptt_chunks: 4
|
| 64 |
+
batch_size: 4
|
| 65 |
+
batch_grouping: same_source
|
| 66 |
+
source_group_size: 64
|
| 67 |
+
supervision_fraction: 1.0
|
| 68 |
+
checkpoint_every: 10
|
| 69 |
+
best_checkpoint_metric: logE_shape
|
| 70 |
+
log_every_epochs: 1
|
| 71 |
+
save_latest_every_epoch: true
|
| 72 |
+
init_from: null
|
| 73 |
+
resume_from: null
|
| 74 |
+
validation_every: 10
|
| 75 |
+
shuffle: true
|
| 76 |
+
augment_z_rotation: true
|
| 77 |
+
tracking_dropout: 0.0
|
| 78 |
+
tracking_jitter_std: 0.007
|
| 79 |
+
use_source_motion_valid: true
|
| 80 |
+
temporal_crop_fraction: 0.0
|
| 81 |
+
cosine_decay: true
|
| 82 |
+
loss:
|
| 83 |
+
material_weight: 1.0
|
| 84 |
+
material_confidence_log_weight: 0.2
|
| 85 |
+
plasticity_weight: 0.1
|
| 86 |
+
material_guess:
|
| 87 |
+
mode: uniform
|
| 88 |
+
log_E_range:
|
| 89 |
+
- 7.66
|
| 90 |
+
- 7.66
|
| 91 |
+
nu_range:
|
| 92 |
+
- 0.363
|
| 93 |
+
- 0.363
|
| 94 |
+
log_E_clamp_range:
|
| 95 |
+
- 5.0
|
| 96 |
+
- 12.0
|
| 97 |
+
nu_clamp_range:
|
| 98 |
+
- 0.05
|
| 99 |
+
- 0.45
|
configs/train_RfD.yaml
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RfD (Residual from Dynamics) training. Owned by train_RfD.py.
|
| 2 |
+
# `gvc` = legacy RfD, `refiner` = MfM. validate_RfD.yaml needs the same output_dir.
|
| 3 |
+
|
| 4 |
+
dataset:
|
| 5 |
+
train_roots:
|
| 6 |
+
- data_episodes/physcore/double_clift_cloth/episode_0000
|
| 7 |
+
- data_episodes/physcore/double_fold_rope/episode_0000
|
| 8 |
+
- data_episodes/physcore/double_squeeze_plastic/episode_0000
|
| 9 |
+
- data_episodes/physcore/double_stretch_bear/episode_0000
|
| 10 |
+
- data_episodes/physcore/double_stretch_bear_1/episode_0000
|
| 11 |
+
- data_episodes/physcore/double_stretch_plastic/episode_0000
|
| 12 |
+
- data_episodes/physcore/single_clift_cloth/episode_0000
|
| 13 |
+
- data_episodes/physcore/single_clift_rope/episode_0000
|
| 14 |
+
- data_episodes/physcore/single_lift_bear/episode_0000
|
| 15 |
+
- data_episodes/physcore/single_lift_cloth/episode_0000
|
| 16 |
+
- data_episodes/physcore/single_lift_rope/episode_0000
|
| 17 |
+
- data_episodes/physcore/single_push_rope/episode_0000
|
| 18 |
+
validation_roots:
|
| 19 |
+
- data_episodes/physcore/double_clift_cloth/episode_0000
|
| 20 |
+
- data_episodes/physcore/double_fold_rope/episode_0000
|
| 21 |
+
- data_episodes/physcore/double_squeeze_plastic/episode_0000
|
| 22 |
+
- data_episodes/physcore/double_stretch_bear/episode_0000
|
| 23 |
+
- data_episodes/physcore/double_stretch_bear_1/episode_0000
|
| 24 |
+
- data_episodes/physcore/double_stretch_plastic/episode_0000
|
| 25 |
+
- data_episodes/physcore/single_clift_cloth/episode_0000
|
| 26 |
+
- data_episodes/physcore/single_clift_rope/episode_0000
|
| 27 |
+
- data_episodes/physcore/single_lift_bear/episode_0000
|
| 28 |
+
- data_episodes/physcore/single_lift_cloth/episode_0000
|
| 29 |
+
- data_episodes/physcore/single_lift_rope/episode_0000
|
| 30 |
+
- data_episodes/physcore/single_push_rope/episode_0000
|
| 31 |
+
rollout_steps: 25
|
| 32 |
+
cache_size: 1
|
| 33 |
+
real_world_domain_center: [0.5, 0.5, 0.2]
|
| 34 |
+
observation_views: all
|
| 35 |
+
observation_view_index: 0
|
| 36 |
+
|
| 37 |
+
# MPM rollout physics; per_sample_rollout_config below overrides it per case.
|
| 38 |
+
rollout:
|
| 39 |
+
use_batched_mpm: true
|
| 40 |
+
use_episode_sim_dt: true
|
| 41 |
+
default_dt: 0.000666
|
| 42 |
+
default_steps_per_frame: 2
|
| 43 |
+
num_grids: 32
|
| 44 |
+
clip_bound: 0.5
|
| 45 |
+
gravity: [0.0, 0.0, -9.8]
|
| 46 |
+
damping: 0.999
|
| 47 |
+
rho: 100.0
|
| 48 |
+
ground_height: 0.02
|
| 49 |
+
ground_surface: coulomb
|
| 50 |
+
ground_elasticity: 0.0
|
| 51 |
+
ground_friction: 0.5
|
| 52 |
+
ground_tangent_damping: 0.25
|
| 53 |
+
ground_static_velocity_threshold: 0.02
|
| 54 |
+
use_explicit_rigid_contact: true
|
| 55 |
+
use_episode_rigid_contact: true
|
| 56 |
+
rigid_surface_fps: 256
|
| 57 |
+
rigid_friction: 0.5
|
| 58 |
+
rigid_contact_margin: 0.02
|
| 59 |
+
rigid_velocity_blend: 0.9
|
| 60 |
+
rigid_stickiness: 1.0
|
| 61 |
+
rigid_strict_nonpenetration: true
|
| 62 |
+
rigid_projection_iterations: 2
|
| 63 |
+
rigid_projection_margin: 5.0e-05
|
| 64 |
+
elasticity_model: CorotatedElasticity
|
| 65 |
+
plasticity_model: IdentityPlasticity
|
| 66 |
+
manipulation_controller_grid_contact_radius: 0.04
|
| 67 |
+
manipulation_controller_grid_velocity_blend: 1.0
|
| 68 |
+
max_delta_velocity_norm: 0.05
|
| 69 |
+
correction_target_velocity_gain: 100.0
|
| 70 |
+
correction_target_velocity_damping: 1.2
|
| 71 |
+
correction_target_velocity_integral_gain: 40.0
|
| 72 |
+
correction:
|
| 73 |
+
mode: spring
|
| 74 |
+
dt_scale: 0.25
|
| 75 |
+
steps_per_frame_scale: 4
|
| 76 |
+
velocity_cap: 5.0
|
| 77 |
+
omega_n: 150.0
|
| 78 |
+
zeta: 2.5
|
| 79 |
+
apply_force_every_substep: true
|
| 80 |
+
max_force_norm: 5000.0
|
| 81 |
+
|
| 82 |
+
# Per-case overrides, keyed by case name. Radii are scene-dependent — retune for
|
| 83 |
+
# your own objects.
|
| 84 |
+
per_sample_rollout_config:
|
| 85 |
+
double_squeeze_plastic:
|
| 86 |
+
manipulation_controller_grid_contact_radius: 0.08
|
| 87 |
+
plasticity_model: VonMisesPlasticity
|
| 88 |
+
plasticity_kwargs:
|
| 89 |
+
VonMisesPlasticity:
|
| 90 |
+
sigma_y: 200.0
|
| 91 |
+
double_stretch_bear:
|
| 92 |
+
manipulation_controller_grid_contact_radius: 0.08
|
| 93 |
+
plasticity_model: VonMisesPlasticity
|
| 94 |
+
plasticity_kwargs:
|
| 95 |
+
VonMisesPlasticity:
|
| 96 |
+
sigma_y: 200.0
|
| 97 |
+
double_stretch_bear_1:
|
| 98 |
+
# Radius only — this case keeps the base IdentityPlasticity.
|
| 99 |
+
manipulation_controller_grid_contact_radius: 0.06
|
| 100 |
+
double_stretch_plastic:
|
| 101 |
+
manipulation_controller_grid_contact_radius: 0.08
|
| 102 |
+
plasticity_model: VonMisesPlasticity
|
| 103 |
+
plasticity_kwargs:
|
| 104 |
+
VonMisesPlasticity:
|
| 105 |
+
sigma_y: 200.0
|
| 106 |
+
single_lift_rope:
|
| 107 |
+
manipulation_controller_grid_contact_radius: 0.03
|
| 108 |
+
plasticity_model: VonMisesPlasticity
|
| 109 |
+
plasticity_kwargs:
|
| 110 |
+
VonMisesPlasticity:
|
| 111 |
+
sigma_y: 200.0
|
| 112 |
+
single_push_rope:
|
| 113 |
+
manipulation_controller_grid_contact_radius: 0.02
|
| 114 |
+
plasticity_model: VonMisesPlasticity
|
| 115 |
+
plasticity_kwargs:
|
| 116 |
+
VonMisesPlasticity:
|
| 117 |
+
sigma_y: 200.0
|
| 118 |
+
|
| 119 |
+
# Refiner (MfM) architecture. Must match gvc.refiner_checkpoint: the model is
|
| 120 |
+
# built from this block and the weights loaded strictly.
|
| 121 |
+
model:
|
| 122 |
+
spatial: graph_unet
|
| 123 |
+
temporal: conv_gru_fusion
|
| 124 |
+
hidden: 128
|
| 125 |
+
layers: 4
|
| 126 |
+
k: 8
|
| 127 |
+
graph_unet_k: 8
|
| 128 |
+
graph_unet_pool: fps
|
| 129 |
+
graph_unet_ratios: [1.0, 0.5, 0.25]
|
| 130 |
+
edge_feature: canonical_length_only
|
| 131 |
+
edge_direction: false
|
| 132 |
+
input_mode: observed_control
|
| 133 |
+
fixed_tracked_mask: false
|
| 134 |
+
use_persistent_tracks: true
|
| 135 |
+
persistent_track_use_motion_valid: true
|
| 136 |
+
tracked_disp_mode: canonical
|
| 137 |
+
control_disp_mode: absolute
|
| 138 |
+
max_controls: 4
|
| 139 |
+
observed_drop_canonical: false
|
| 140 |
+
tracked_disp_scale: 33.0
|
| 141 |
+
tracked_mask_scale: 1.0
|
| 142 |
+
control_vec_scale: 1.0
|
| 143 |
+
control_disp_scale: 33.0
|
| 144 |
+
coord_bands: 16
|
| 145 |
+
canonical_bands: 4
|
| 146 |
+
tracked_bands: 16
|
| 147 |
+
control_bands: 1
|
| 148 |
+
attention_window: 9
|
| 149 |
+
attention_heads: 4
|
| 150 |
+
temporal_conv: 9
|
| 151 |
+
use_material: false
|
| 152 |
+
use_correction: false
|
| 153 |
+
use_correction_mask: false
|
| 154 |
+
use_velocity: false
|
| 155 |
+
use_F: false
|
| 156 |
+
use_material_confidence: true
|
| 157 |
+
separate_confidence: true
|
| 158 |
+
detached_confidence: false
|
| 159 |
+
initial_material_confidence_bias: 0.0
|
| 160 |
+
aggregate_controls: true
|
| 161 |
+
evidence_aggregation: true
|
| 162 |
+
evidence_tracked_weight: 8.0
|
| 163 |
+
evidence_control_weight: 4.0
|
| 164 |
+
evidence_control_radius: 0.04
|
| 165 |
+
log_E_min: 5.0
|
| 166 |
+
log_E_max: 11.0
|
| 167 |
+
nu_min: 0.05
|
| 168 |
+
nu_max: 0.45
|
| 169 |
+
graph_aggregation_chunks: 10
|
| 170 |
+
use_decomposed_material: false
|
| 171 |
+
|
| 172 |
+
# RfD, still spelled gvc here.
|
| 173 |
+
gvc:
|
| 174 |
+
base_channels: 32
|
| 175 |
+
levels: 2
|
| 176 |
+
max_delta_v: 0.05
|
| 177 |
+
h: 10 # corrector fires every h MPM substeps
|
| 178 |
+
warmup_fraction: 0.5 # first/second-half boundary; MfM freezes material there
|
| 179 |
+
bptt_frames: 5 # BPTT segment length in frames
|
| 180 |
+
refiner_checkpoint: checkpoints/MfM_checkpoint.pt
|
| 181 |
+
|
| 182 |
+
train:
|
| 183 |
+
seed: 42
|
| 184 |
+
device: cuda
|
| 185 |
+
output_dir: outputs/RfD/YYYYMMDD_hhmm
|
| 186 |
+
epochs: 80
|
| 187 |
+
lr: 1.0e-4
|
| 188 |
+
final_lr: 1.0e-5
|
| 189 |
+
lr_decay_start: 30
|
| 190 |
+
lr_decay_end: 80
|
| 191 |
+
weight_decay: 0.0
|
| 192 |
+
grad_clip: 0.5
|
| 193 |
+
augment_z_rotation: true # per-(episode, epoch) z-rotation + 50% x-mirror flip
|
| 194 |
+
|
| 195 |
+
update_every: 10 # k = window size in camera frames
|
| 196 |
+
validation_every: 5
|
| 197 |
+
checkpoint_every: 5
|
| 198 |
+
plot_every: 1
|
| 199 |
+
viz_every: 20
|
| 200 |
+
viz_fps: 30
|
| 201 |
+
viz_max_controls: 16
|
| 202 |
+
|
| 203 |
+
loss:
|
| 204 |
+
chamfer_weight: 1.0
|
| 205 |
+
tracked_l2_weight: 1.0
|
| 206 |
+
|
| 207 |
+
material_guess:
|
| 208 |
+
mode: uniform
|
| 209 |
+
log_E_range: [7.66, 7.66]
|
| 210 |
+
nu_range: [0.363, 0.363]
|
| 211 |
+
log_E_clamp_range: [5.0, 12.0]
|
| 212 |
+
nu_clamp_range: [0.3, 0.43]
|
configs/validate_MfM.yaml
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MfM (Material from Motion) validation. Owned by validate_MfM.py.
|
| 2 |
+
# `refiner` and `Refiner`, here and in the code, both mean MfM.
|
| 3 |
+
|
| 4 |
+
validation:
|
| 5 |
+
checkpoint: checkpoints/MfM_checkpoint.pt
|
| 6 |
+
device: cuda
|
| 7 |
+
# Report path, stamped by hand at launch. Saved trajectories are named after
|
| 8 |
+
# it, so null turns trajectory saving off even when save_rollout is true.
|
| 9 |
+
out: outputs/MfM/val/YYYYMMDD_hhmm/validation.json
|
| 10 |
+
validation_mode: pure-tail # `full` and `refresh-tail` are ablations
|
| 11 |
+
save_rollout: true
|
| 12 |
+
|
| 13 |
+
dataset:
|
| 14 |
+
validation_roots:
|
| 15 |
+
- data_episodes/physcore/*/episode_0000
|
| 16 |
+
rollout_steps: 25
|
| 17 |
+
cache_size: 1
|
| 18 |
+
real_world_domain_center: [0.5, 0.5, 0.2]
|
| 19 |
+
observation_views: all
|
| 20 |
+
observation_view_index: 0
|
| 21 |
+
|
| 22 |
+
# Refiner (MfM) architecture. Must match the checkpoint being validated, since the
|
| 23 |
+
# model is rebuilt from this block before the weights load.
|
| 24 |
+
model:
|
| 25 |
+
hidden: 128
|
| 26 |
+
graph_unet_k: 8
|
| 27 |
+
graph_unet_pool: fps
|
| 28 |
+
graph_unet_ratios:
|
| 29 |
+
- 1.0
|
| 30 |
+
- 0.5
|
| 31 |
+
- 0.25
|
| 32 |
+
edge_feature: canonical_length_only
|
| 33 |
+
edge_direction: false
|
| 34 |
+
fixed_tracked_mask: false
|
| 35 |
+
use_persistent_tracks: true
|
| 36 |
+
persistent_track_use_motion_valid: true
|
| 37 |
+
tracked_disp_mode: canonical
|
| 38 |
+
control_disp_mode: absolute
|
| 39 |
+
max_controls: 4
|
| 40 |
+
tracked_disp_scale: 33.0
|
| 41 |
+
tracked_mask_scale: 1.0
|
| 42 |
+
control_vec_scale: 1.0
|
| 43 |
+
control_disp_scale: 33.0
|
| 44 |
+
canonical_bands: 4
|
| 45 |
+
tracked_bands: 16
|
| 46 |
+
attention_window: 9
|
| 47 |
+
temporal_conv: 9
|
| 48 |
+
initial_material_confidence_bias: 0.0
|
| 49 |
+
evidence_aggregation: true
|
| 50 |
+
evidence_tracked_weight: 8.0
|
| 51 |
+
evidence_control_weight: 4.0
|
| 52 |
+
evidence_control_radius: 0.04
|
| 53 |
+
log_E_min: 5.0
|
| 54 |
+
log_E_max: 11.0
|
| 55 |
+
nu_min: 0.05
|
| 56 |
+
nu_max: 0.45
|
| 57 |
+
graph_aggregation_chunks: 10
|
| 58 |
+
|
| 59 |
+
# The only two training fields validation reads.
|
| 60 |
+
train:
|
| 61 |
+
seed: 0
|
| 62 |
+
update_every: 10
|
| 63 |
+
|
| 64 |
+
# Initial material the rollout starts from; the clamps bound the predicted values.
|
| 65 |
+
material_guess:
|
| 66 |
+
mode: uniform
|
| 67 |
+
log_E_range: [7.66, 7.66]
|
| 68 |
+
nu_range: [0.363, 0.363]
|
| 69 |
+
log_E_clamp_range: [5.0, 12.0]
|
| 70 |
+
nu_clamp_range: [0.05, 0.45]
|
| 71 |
+
|
| 72 |
+
rollout:
|
| 73 |
+
use_batched_mpm: true
|
| 74 |
+
use_episode_sim_dt: true
|
| 75 |
+
default_dt: 0.000666
|
| 76 |
+
default_steps_per_frame: 2
|
| 77 |
+
num_grids: 32
|
| 78 |
+
clip_bound: 0.5
|
| 79 |
+
gravity: [0.0, 0.0, -9.8]
|
| 80 |
+
damping: 0.999
|
| 81 |
+
rho: 100.0
|
| 82 |
+
ground_height: 0.02
|
| 83 |
+
ground_surface: coulomb
|
| 84 |
+
ground_elasticity: 0.0
|
| 85 |
+
ground_friction: 0.5
|
| 86 |
+
ground_tangent_damping: 0.25
|
| 87 |
+
ground_static_velocity_threshold: 0.02
|
| 88 |
+
use_explicit_rigid_contact: true
|
| 89 |
+
use_episode_rigid_contact: true
|
| 90 |
+
rigid_surface_fps: 256
|
| 91 |
+
rigid_friction: 0.5
|
| 92 |
+
rigid_contact_margin: 0.02
|
| 93 |
+
rigid_velocity_blend: 0.9
|
| 94 |
+
rigid_stickiness: 1.0
|
| 95 |
+
rigid_strict_nonpenetration: true
|
| 96 |
+
rigid_projection_iterations: 2
|
| 97 |
+
rigid_projection_margin: 5.0e-05
|
| 98 |
+
elasticity_model: CorotatedElasticity
|
| 99 |
+
# Elastic by default; plastic cases override it in per_sample_rollout_config.
|
| 100 |
+
plasticity_model: IdentityPlasticity
|
| 101 |
+
manipulation_controller_grid_contact_radius: 0.04 # tune per case (scene-dependent)
|
| 102 |
+
manipulation_controller_grid_velocity_blend: 1.0
|
| 103 |
+
max_delta_velocity_norm: 0.05
|
| 104 |
+
correction_target_velocity_gain: 100.0
|
| 105 |
+
correction_target_velocity_damping: 1.2
|
| 106 |
+
correction_target_velocity_integral_gain: 40.0
|
| 107 |
+
correction:
|
| 108 |
+
mode: spring
|
| 109 |
+
dt_scale: 0.25
|
| 110 |
+
steps_per_frame_scale: 4
|
| 111 |
+
velocity_cap: 5.0
|
| 112 |
+
omega_n: 150.0
|
| 113 |
+
zeta: 2.5
|
| 114 |
+
apply_force_every_substep: true
|
| 115 |
+
max_force_norm: 5000.0
|
| 116 |
+
|
| 117 |
+
per_sample_rollout_config:
|
| 118 |
+
double_squeeze_plastic:
|
| 119 |
+
plasticity_model: VonMisesPlasticity
|
| 120 |
+
plasticity_kwargs:
|
| 121 |
+
VonMisesPlasticity:
|
| 122 |
+
sigma_y: 200.0
|
| 123 |
+
manipulation_controller_grid_contact_radius: 0.04
|
| 124 |
+
double_stretch_bear:
|
| 125 |
+
plasticity_model: VonMisesPlasticity
|
| 126 |
+
plasticity_kwargs:
|
| 127 |
+
VonMisesPlasticity:
|
| 128 |
+
sigma_y: 200.0
|
| 129 |
+
manipulation_controller_grid_contact_radius: 0.04
|
| 130 |
+
double_stretch_bear_1:
|
| 131 |
+
plasticity_model: IdentityPlasticity
|
| 132 |
+
manipulation_controller_grid_contact_radius: 0.06
|
| 133 |
+
double_stretch_plastic:
|
| 134 |
+
plasticity_model: VonMisesPlasticity
|
| 135 |
+
plasticity_kwargs:
|
| 136 |
+
VonMisesPlasticity:
|
| 137 |
+
sigma_y: 200.0
|
| 138 |
+
manipulation_controller_grid_contact_radius: 0.04
|
| 139 |
+
single_lift_rope:
|
| 140 |
+
plasticity_model: VonMisesPlasticity
|
| 141 |
+
plasticity_kwargs:
|
| 142 |
+
VonMisesPlasticity:
|
| 143 |
+
sigma_y: 200.0
|
| 144 |
+
manipulation_controller_grid_contact_radius: 0.03
|
| 145 |
+
single_push_rope:
|
| 146 |
+
plasticity_model: VonMisesPlasticity
|
| 147 |
+
plasticity_kwargs:
|
| 148 |
+
VonMisesPlasticity:
|
| 149 |
+
sigma_y: 200.0
|
| 150 |
+
manipulation_controller_grid_contact_radius: 0.02
|
configs/validate_RfD.yaml
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RfD (Residual from Dynamics) validation sweep. Owned by validate_RfD.py.
|
| 2 |
+
# `gvc` = legacy RfD, `refiner` = MfM. train.output_dir must match train_RfD.yaml;
|
| 3 |
+
# every checkpoint there is scored on the held-out second half of each episode.
|
| 4 |
+
|
| 5 |
+
dataset:
|
| 6 |
+
train_roots:
|
| 7 |
+
- data_episodes/physcore/double_clift_cloth/episode_0000
|
| 8 |
+
- data_episodes/physcore/double_fold_rope/episode_0000
|
| 9 |
+
- data_episodes/physcore/double_squeeze_plastic/episode_0000
|
| 10 |
+
- data_episodes/physcore/double_stretch_bear/episode_0000
|
| 11 |
+
- data_episodes/physcore/double_stretch_bear_1/episode_0000
|
| 12 |
+
- data_episodes/physcore/double_stretch_plastic/episode_0000
|
| 13 |
+
- data_episodes/physcore/single_clift_cloth/episode_0000
|
| 14 |
+
- data_episodes/physcore/single_clift_rope/episode_0000
|
| 15 |
+
- data_episodes/physcore/single_lift_bear/episode_0000
|
| 16 |
+
- data_episodes/physcore/single_lift_cloth/episode_0000
|
| 17 |
+
- data_episodes/physcore/single_lift_rope/episode_0000
|
| 18 |
+
- data_episodes/physcore/single_push_rope/episode_0000
|
| 19 |
+
validation_roots:
|
| 20 |
+
- data_episodes/physcore/double_clift_cloth/episode_0000
|
| 21 |
+
- data_episodes/physcore/double_fold_rope/episode_0000
|
| 22 |
+
- data_episodes/physcore/double_squeeze_plastic/episode_0000
|
| 23 |
+
- data_episodes/physcore/double_stretch_bear/episode_0000
|
| 24 |
+
- data_episodes/physcore/double_stretch_bear_1/episode_0000
|
| 25 |
+
- data_episodes/physcore/double_stretch_plastic/episode_0000
|
| 26 |
+
- data_episodes/physcore/single_clift_cloth/episode_0000
|
| 27 |
+
- data_episodes/physcore/single_clift_rope/episode_0000
|
| 28 |
+
- data_episodes/physcore/single_lift_bear/episode_0000
|
| 29 |
+
- data_episodes/physcore/single_lift_cloth/episode_0000
|
| 30 |
+
- data_episodes/physcore/single_lift_rope/episode_0000
|
| 31 |
+
- data_episodes/physcore/single_push_rope/episode_0000
|
| 32 |
+
rollout_steps: 25
|
| 33 |
+
cache_size: 1
|
| 34 |
+
real_world_domain_center: [0.5, 0.5, 0.2]
|
| 35 |
+
observation_views: all
|
| 36 |
+
observation_view_index: 0
|
| 37 |
+
|
| 38 |
+
# MPM rollout physics. Identical to configs/train_RfD.yaml, base radius and
|
| 39 |
+
# per-case overrides alike, so each case is scored as it was adapted.
|
| 40 |
+
rollout:
|
| 41 |
+
use_batched_mpm: true
|
| 42 |
+
use_episode_sim_dt: true
|
| 43 |
+
default_dt: 0.000666
|
| 44 |
+
default_steps_per_frame: 2
|
| 45 |
+
num_grids: 32
|
| 46 |
+
clip_bound: 0.5
|
| 47 |
+
gravity: [0.0, 0.0, -9.8]
|
| 48 |
+
damping: 0.999
|
| 49 |
+
rho: 100.0
|
| 50 |
+
ground_height: 0.02
|
| 51 |
+
ground_surface: coulomb
|
| 52 |
+
ground_elasticity: 0.0
|
| 53 |
+
ground_friction: 0.5
|
| 54 |
+
ground_tangent_damping: 0.25
|
| 55 |
+
ground_static_velocity_threshold: 0.02
|
| 56 |
+
use_explicit_rigid_contact: true
|
| 57 |
+
use_episode_rigid_contact: true
|
| 58 |
+
rigid_surface_fps: 256
|
| 59 |
+
rigid_friction: 0.5
|
| 60 |
+
rigid_contact_margin: 0.02
|
| 61 |
+
rigid_velocity_blend: 0.9
|
| 62 |
+
rigid_stickiness: 1.0
|
| 63 |
+
rigid_strict_nonpenetration: true
|
| 64 |
+
rigid_projection_iterations: 2
|
| 65 |
+
rigid_projection_margin: 5.0e-05
|
| 66 |
+
elasticity_model: CorotatedElasticity
|
| 67 |
+
plasticity_model: IdentityPlasticity
|
| 68 |
+
manipulation_controller_grid_contact_radius: 0.04
|
| 69 |
+
manipulation_controller_grid_velocity_blend: 1.0
|
| 70 |
+
max_delta_velocity_norm: 0.05
|
| 71 |
+
correction_target_velocity_gain: 100.0
|
| 72 |
+
correction_target_velocity_damping: 1.2
|
| 73 |
+
correction_target_velocity_integral_gain: 40.0
|
| 74 |
+
correction:
|
| 75 |
+
mode: spring
|
| 76 |
+
dt_scale: 0.25
|
| 77 |
+
steps_per_frame_scale: 4
|
| 78 |
+
velocity_cap: 5.0
|
| 79 |
+
omega_n: 150.0
|
| 80 |
+
zeta: 2.5
|
| 81 |
+
apply_force_every_substep: true
|
| 82 |
+
max_force_norm: 5000.0
|
| 83 |
+
|
| 84 |
+
# Per-case rollout overrides, keyed by the case (parent directory) name. These
|
| 85 |
+
# match configs/train_RfD.yaml, so each case is scored as it was adapted.
|
| 86 |
+
per_sample_rollout_config:
|
| 87 |
+
double_squeeze_plastic:
|
| 88 |
+
manipulation_controller_grid_contact_radius: 0.08 # tune per case (scene-dependent)
|
| 89 |
+
plasticity_model: VonMisesPlasticity
|
| 90 |
+
plasticity_kwargs:
|
| 91 |
+
VonMisesPlasticity:
|
| 92 |
+
sigma_y: 200.0
|
| 93 |
+
double_stretch_bear:
|
| 94 |
+
manipulation_controller_grid_contact_radius: 0.08 # matches the submitted run
|
| 95 |
+
plasticity_model: VonMisesPlasticity
|
| 96 |
+
plasticity_kwargs:
|
| 97 |
+
VonMisesPlasticity:
|
| 98 |
+
sigma_y: 200.0
|
| 99 |
+
double_stretch_bear_1:
|
| 100 |
+
# Radius only, so this case keeps the base IdentityPlasticity.
|
| 101 |
+
manipulation_controller_grid_contact_radius: 0.06
|
| 102 |
+
double_stretch_plastic:
|
| 103 |
+
manipulation_controller_grid_contact_radius: 0.08 # tune per case (scene-dependent)
|
| 104 |
+
plasticity_model: VonMisesPlasticity
|
| 105 |
+
plasticity_kwargs:
|
| 106 |
+
VonMisesPlasticity:
|
| 107 |
+
sigma_y: 200.0
|
| 108 |
+
single_lift_rope:
|
| 109 |
+
manipulation_controller_grid_contact_radius: 0.03 # tune per case (scene-dependent)
|
| 110 |
+
plasticity_model: VonMisesPlasticity
|
| 111 |
+
plasticity_kwargs:
|
| 112 |
+
VonMisesPlasticity:
|
| 113 |
+
sigma_y: 200.0
|
| 114 |
+
single_push_rope:
|
| 115 |
+
manipulation_controller_grid_contact_radius: 0.02 # tune per case (scene-dependent)
|
| 116 |
+
plasticity_model: VonMisesPlasticity
|
| 117 |
+
plasticity_kwargs:
|
| 118 |
+
VonMisesPlasticity:
|
| 119 |
+
sigma_y: 200.0
|
| 120 |
+
|
| 121 |
+
# Refiner (MfM) architecture. The checkpoint carries no embedded cfg, so the
|
| 122 |
+
# model is built from this block and loaded strictly. Keep it in sync with
|
| 123 |
+
# configs/train_RfD.yaml and gvc.refiner_checkpoint.
|
| 124 |
+
model:
|
| 125 |
+
spatial: graph_unet
|
| 126 |
+
temporal: conv_gru_fusion
|
| 127 |
+
hidden: 128
|
| 128 |
+
layers: 4
|
| 129 |
+
k: 8
|
| 130 |
+
graph_unet_k: 8
|
| 131 |
+
graph_unet_pool: fps
|
| 132 |
+
graph_unet_ratios: [1.0, 0.5, 0.25]
|
| 133 |
+
edge_feature: canonical_length_only
|
| 134 |
+
edge_direction: false
|
| 135 |
+
input_mode: observed_control
|
| 136 |
+
fixed_tracked_mask: false
|
| 137 |
+
use_persistent_tracks: true
|
| 138 |
+
persistent_track_use_motion_valid: true
|
| 139 |
+
tracked_disp_mode: canonical
|
| 140 |
+
control_disp_mode: absolute
|
| 141 |
+
max_controls: 4
|
| 142 |
+
observed_drop_canonical: false
|
| 143 |
+
tracked_disp_scale: 33.0
|
| 144 |
+
tracked_mask_scale: 1.0
|
| 145 |
+
control_vec_scale: 1.0
|
| 146 |
+
control_disp_scale: 33.0
|
| 147 |
+
coord_bands: 16
|
| 148 |
+
canonical_bands: 4
|
| 149 |
+
tracked_bands: 16
|
| 150 |
+
control_bands: 1
|
| 151 |
+
attention_window: 9
|
| 152 |
+
attention_heads: 4
|
| 153 |
+
temporal_conv: 9
|
| 154 |
+
use_material: false
|
| 155 |
+
use_correction: false
|
| 156 |
+
use_correction_mask: false
|
| 157 |
+
use_velocity: false
|
| 158 |
+
use_F: false
|
| 159 |
+
use_material_confidence: true
|
| 160 |
+
separate_confidence: true
|
| 161 |
+
detached_confidence: false
|
| 162 |
+
initial_material_confidence_bias: 0.0
|
| 163 |
+
aggregate_controls: true
|
| 164 |
+
evidence_aggregation: true
|
| 165 |
+
evidence_tracked_weight: 8.0
|
| 166 |
+
evidence_control_weight: 4.0
|
| 167 |
+
evidence_control_radius: 0.04
|
| 168 |
+
log_E_min: 5.0
|
| 169 |
+
log_E_max: 11.0
|
| 170 |
+
nu_min: 0.05
|
| 171 |
+
nu_max: 0.45
|
| 172 |
+
graph_aggregation_chunks: 10
|
| 173 |
+
use_decomposed_material: false
|
| 174 |
+
|
| 175 |
+
# RfD, still spelled gvc here.
|
| 176 |
+
gvc:
|
| 177 |
+
base_channels: 32
|
| 178 |
+
levels: 2
|
| 179 |
+
max_delta_v: 0.05
|
| 180 |
+
h: 10 # corrector fires every h MPM substeps
|
| 181 |
+
warmup_fraction: 0.5 # first-half boundary, shared with configs/train_RfD.yaml
|
| 182 |
+
refiner_checkpoint: checkpoints/MfM_checkpoint.pt
|
| 183 |
+
|
| 184 |
+
train:
|
| 185 |
+
seed: 42
|
| 186 |
+
device: cuda
|
| 187 |
+
# Run directory of the training run being validated. Must equal
|
| 188 |
+
# train.output_dir in configs/train_RfD.yaml, or the sweep aborts with
|
| 189 |
+
# "checkpoints dir not found".
|
| 190 |
+
output_dir: outputs/RfD/YYYYMMDD_hhmm
|
| 191 |
+
update_every: 10 # k = window size in camera frames
|
| 192 |
+
viz_every: 20
|
| 193 |
+
viz_fps: 30
|
| 194 |
+
viz_max_controls: 16
|
| 195 |
+
|
| 196 |
+
loss:
|
| 197 |
+
chamfer_weight: 1.0
|
| 198 |
+
tracked_l2_weight: 1.0
|
| 199 |
+
|
| 200 |
+
material_guess:
|
| 201 |
+
mode: uniform
|
| 202 |
+
log_E_range: [7.66, 7.66]
|
| 203 |
+
nu_range: [0.363, 0.363]
|
| 204 |
+
log_E_clamp_range: [5.0, 12.0]
|
| 205 |
+
nu_clamp_range: [0.3, 0.43]
|
data/physcore.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e6669c77c77e0e68ddc6f0fd90704eba3bc35d2af8b1db885063015b91bc40c
|
| 3 |
+
size 4208002608
|
data/phystwin.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f658b0a4f520721e66da38ea070c73ce5b43b2f22bbc18d8931ee1f96a5a019
|
| 3 |
+
size 3441847915
|
gaussian_output/physcore.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c498c12fd09848063e09fa0a792afe99899b4d8833dcdf30be2671d80808a00
|
| 3 |
+
size 111477552
|