VinModelV3
vin.model_v3.VinModelV3(config)
VIN-Core head for one-step RRI prediction.
VIN v3 focuses on pose encoding, compact voxel evidence, and semidense projection stats, while enforcing fail-fast contracts to avoid silent collapse. It ranks candidates for immediate RRI; bounded rollout values such as \(Q_H\) are separate thesis models trained on rollout replay.
Methods
forward
Score candidate poses for one snippet (no diagnostics).
forward_with_debug
Run VIN v3 forward pass and return intermediate tensors.
init_bin_values
Initialize learnable bin representatives for CORAL expectation.
summarize_vin
Summarize VIN v3 inputs/outputs for a single oracle-labeled batch.
forward
vin.model_v3.VinModelV3.forward(
efm,
candidate_poses_world_cam,
reference_pose_world_rig,
p3d_cameras,
backbone_out= None ,
)
Score candidate poses for one snippet (no diagnostics).
Parameters
efm
EfmSnippetView | VinSnippetView
EFM snippet view or VIN snippet view for the current snippet.
required
candidate_poses_world_cam
PoseTW
Candidate camera poses in world frame.
required
reference_pose_world_rig
PoseTW
Reference rig pose in world frame.
required
p3d_cameras
PerspectiveCameras
Pytorch3D cameras aligned with candidates.
required
backbone_out
EvlBackboneOutput | None
Optional precomputed backbone output.
None
Returns
VinPrediction
VinPrediction containing ordinal logits, expected scores, and
VinPrediction
validity masks for each candidate.
forward_with_debug
vin.model_v3.VinModelV3.forward_with_debug(
efm,
candidate_poses_world_cam,
reference_pose_world_rig,
p3d_cameras,
backbone_out= None ,
)
Run VIN v3 forward pass and return intermediate tensors.
Parameters
efm
EfmSnippetView | VinSnippetView
EFM snippet view or VIN snippet view for the current snippet.
required
candidate_poses_world_cam
PoseTW
Candidate camera poses in world frame.
required
reference_pose_world_rig
PoseTW
Reference rig pose in world frame.
required
p3d_cameras
PerspectiveCameras
Pytorch3D cameras aligned with candidates.
required
backbone_out
EvlBackboneOutput | None
Optional precomputed backbone output.
None
Returns
tuple[VinPrediction, VinV3ForwardDiagnostics]
Tuple of (VinPrediction, VinV3ForwardDiagnostics).
init_bin_values
vin.model_v3.VinModelV3.init_bin_values(values, * , overwrite= False )
Initialize learnable bin representatives for CORAL expectation.
Parameters
values
Tensor
Tensor["K"] target bin representatives (e.g., bin means).
required
overwrite
bool
If True, overwrite existing bin values.
False
summarize_vin
vin.model_v3.VinModelV3.summarize_vin(
batch,
* ,
include_torchsummary= True ,
torchsummary_depth= 3 ,
)
Summarize VIN v3 inputs/outputs for a single oracle-labeled batch.
This is intended for quick sanity checks when validating the streamlined baseline against sweep-derived expectations.
Parameters
batch
VinOracleBatch
Oracle-labeled batch to inspect.
required
include_torchsummary
bool
Whether to include a torchsummary block.
True
torchsummary_depth
int
Depth for torchsummary.
3
Returns
str
Human-readable summary string.