Calibrate a Camera Rig from People with RF-DETR Keypoint Uncertainty¶
Several cameras that film the same people can be placed relative to each other from the people alone: no checkerboard, no known 3D structure. The standard recipe matches points between views, builds a first reconstruction, and refines every camera and every 3D point with bundle adjustment, which minimizes the reprojection error. It treats every keypoint alike, and a person's keypoints are a poor input: wrists blur, ankles hide, and one wrong keypoint can drag the whole rig.
An RF-DETR keypoint model returns a findable probability and a 2x2 covariance for every keypoint. This notebook asks one question: does weighting bundle adjustment by that output calibrate the rig better than the standard pipeline, and how much of the gain comes from the covariance rather than from any per-keypoint confidence?
What you will do:
- run
RFDETRKeypointPreviewon five synchronized cameras of a CMU Panoptic sequence (cached for reruns of this cookbook); - pair the detections of the same person and joint across views;
- start every row from the same OpenCV reconstruction, compare the OpenCV start with ten bundle-adjustment variants (five weightings, each with and without a robust loss), and score the rig against the Panoptic calibration with confidence intervals.
The result is for one sequence of one dataset and for the oracle person association described below. It is a measurement to reproduce, not a leaderboard.
Install the package with the OpenCV extra (stream) the solver and the video reader use, and the plotting dependencies (visual). The helpers this notebook imports are in rfdetr._multiview; the install pins the 1.13.0 release, which includes them. Restart the kernel afterwards so the recorded versions are the ones in use.
%pip install -q -U "rfdetr[stream,visual]==1.13.0"
Keep imports together so every dependency of the measurement path is visible in one place.
%matplotlib inline
%config InlineBackend.close_figures = True
import hashlib
import importlib.metadata
import json
import os
import platform
from dataclasses import asdict
from datetime import datetime, timezone
from itertools import product
from pathlib import Path
from tempfile import TemporaryDirectory
import cv2
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import torch
from IPython import get_ipython
from IPython.display import display
from tqdm.auto import tqdm
from rfdetr import RFDETRKeypointPreview
from rfdetr._multiview import panoptic
from rfdetr._multiview.common import (
WEIGHTINGS,
draw_covariance_ellipses,
kind_legend,
paired_error_summary,
paired_ratio_text,
plot_error_cdf,
rescale_covariance,
row_color,
row_label,
row_uses,
)
from rfdetr._multiview.selfcal import fit_nu, rig_ladder, window_rows
from rfdetr.config import DEVICE
Choose what to run¶
SEQUENCEis the Panoptic capture.160906_pizza1has a small group of people around a table and five HD cameras.ROOTholds the downloaded files. SetPANOPTIC_DIRto move it; the videos are about 800 MB each and the camera-pose cookbook uses the same ones.WINDOWSare the problem sizes in annotated frames (every 12th video frame, 0.4 s apart): 5 frames is 2 seconds, 25 frames is 10 seconds. One problem calibrates the rig from the people seen in its window.FIT_FRACTIONandEVAL_STARTsplit the problems in time: the Student-t parameter of each weighting is fitted on the first part and every number below is measured on the last part, with a gap between them. Neighbouring windows show nearly the same scene, so an interleaved split would leak.BLOCK_WINDOWSsets the number of consecutive problem windows per descriptive bootstrap block. Keep blocks contiguous to retain some of the temporal dependence.
SEQUENCE = "160906_pizza1"
ROOT = Path(os.environ.get("PANOPTIC_DIR", "~/Datasets/panoptic")).expanduser() / SEQUENCE
WINDOWS = (5, 25)
BLOCK_WINDOWS = 5
FIT_FRACTION, EVAL_START = 0.3, 0.4
BASE_URL = f"http://domedb.perception.cs.cmu.edu/webdata/dataset/{SEQUENCE}"
display(pd.Series({"sequence": SEQUENCE, "device": DEVICE}))
Get the data¶
Panoptic's terms apply to everything below; read them on the dataset page before downloading. Two files carry the calibration and the 3D bodies, and one shared-CRF20 HD video per camera carries the images. curl -C - resumes a partial download and does nothing for a finished file, so the cells are safe to rerun.
!mkdir -p "{ROOT}/hdVideos"
!curl -sSfL --retry 5 -C - -o "{ROOT}/calibration_{SEQUENCE}.json" "{BASE_URL}/calibration_{SEQUENCE}.json"
!curl -sSfL --retry 5 -C - -o "{ROOT}/hdPose3d_stage1_coco19.tar" "{BASE_URL}/hdPose3d_stage1_coco19.tar"
# A fresh destination keeps old or partially extracted annotations out of this run.
pose_extract = TemporaryDirectory(prefix="panoptic-poses-", dir=ROOT)
!tar -xf "{ROOT}/hdPose3d_stage1_coco19.tar" -C "{pose_extract.name}"
exit_code = get_ipython().user_ns["_exit_code"]
if exit_code:
raise RuntimeError(f"Annotation extraction failed with exit status {exit_code}.")
pose_folder = Path(pose_extract.name) / "hdPose3d_stage1_coco19"
assert pose_folder.is_dir(), f"Missing extracted annotation folder: {pose_folder}"
The five cameras VoxelPose evaluates on. Each video is about 800 MB, so this is the slow step.
for camera_id in panoptic.CAMERAS:
name = panoptic.video_name(camera_id)
!curl -sSfL --retry 5 -C - -o "{ROOT}/hdVideos/{name}" "{BASE_URL}/videos/hd_shared_crf20/{name}"
Load the five cameras (calibration in millimetres) and the annotated 3D bodies. Here the calibration is only the answer the reconstruction is scored against and, below, the way to pair detections with bodies; the solver itself sees the intrinsics and nothing else. The 3D joints are never given to it.
cameras = panoptic.load_cameras(ROOT / f"calibration_{SEQUENCE}.json")
frames = panoptic.load_frames(pose_folder, include_empty=True)
display(pd.Series({"annotated frames": len(frames), "cameras": len(cameras)}, name="count"))
Predict keypoints for every camera¶
Running the model over the annotated frames of five videos takes a while, so the predictions of each camera are saved as an .npz file the first time. The file name holds a digest of the model identity and the requested frame IDs. The loop below loads the file when it exists and otherwise runs predict_people on the video and saves the result. The file name does not include the video, so point the cache at a fresh folder when a video changes. The camera-pose cookbook runs its own predictions. The detection threshold is 0.1, far below a usual 0.5, on purpose: RF-DETR already folds the keypoint uncertainty into detection_confidence, so a normal threshold would remove uncertain people before any row of the comparison saw them, including the row that uses no uncertainty.
model = RFDETRKeypointPreview(device=DEVICE)
# A dynamic development version can stay the same while the prediction code changes.
checkpoint = Path(model.model_config.pretrain_weights)
checkpoint_sha256 = hashlib.sha256(checkpoint.read_bytes()).hexdigest()
package_source = Path(panoptic.__file__).resolve().parents[1]
source_digest = hashlib.sha256()
for module in sorted(package_source.rglob("*.py")):
source_digest.update(module.relative_to(package_source).as_posix().encode())
source_digest.update(hashlib.sha256(module.read_bytes()).digest())
source_sha256 = source_digest.hexdigest()
model_identity = (
f"{type(model).__name__}:{checkpoint_sha256}:{source_sha256}:{model.model_config.model_dump_json()}:"
f"{DEVICE}:{importlib.metadata.version('rfdetr')}:{torch.__version__}:{cv2.__version__}:{np.__version__}"
)
# Load the saved predictions of a camera when they exist for this model and these frames, and run the model otherwise.
frame_ids = [int(frame["frame"]) for frame in frames]
digest = hashlib.sha256(json.dumps([model_identity, frame_ids]).encode()).hexdigest()[:16]
cache_folder = ROOT / "rfdetr_cache"
cache_folder.mkdir(exist_ok=True)
detections = []
for camera_id in panoptic.CAMERAS:
video = ROOT / "hdVideos" / panoptic.video_name(camera_id)
saved = cache_folder / f"{video.stem}-{digest}.npz"
if saved.exists():
with np.load(saved) as arrays:
found = dict(arrays)
print(f"camera {camera_id}: loaded {saved.name}")
else:
found = panoptic.predict_people(model, video, frame_ids)
with TemporaryDirectory(dir=cache_folder) as temporary_dir:
pending = Path(temporary_dir) / saved.name
np.savez(pending, **found)
pending.replace(saved)
print(f"camera {camera_id}: predicted and saved {saved.name}")
detections.append(found)
Before using the predictions, look at them. One annotated frame from each of the five cameras, with an ellipse where the model expects each keypoint to lie: two standard deviations of its covariance, rescaled from RF-DETR's per-unit-area form to pixels with rescale_covariance (the camera-pose cookbook explains why). Only keypoints found with probability at least 0.5 are drawn.
frame = int(frames[len(frames) // 2]["frame"])
fig, axes = plt.subplots(1, len(cameras), figsize=(18, 3.2))
for ax, camera_id, found in zip(axes, panoptic.CAMERAS, detections):
image = next(panoptic.read_frames(ROOT / "hdVideos" / panoptic.video_name(camera_id), [frame]))[1]
rows = np.flatnonzero(found["frame"] == frame)
keep = found["confidence"][rows] >= 0.5
pixel = rescale_covariance(found["covariance"][rows], found["box"][rows], panoptic.IMAGE_SIZE)
ax.imshow(image)
draw_covariance_ellipses(ax, found["xy"][rows][keep], pixel[keep], fill=False, edgecolor="#4FD6BF")
ax.set_title(f"camera {camera_id}")
ax.axis("off")
The five views see the same people from different sides. Small ellipses mark joints the model is sure about; large ones mark joints it expects to be off. The calibration compares how these sizes translate into rig error below.
Pair the same person and joint across views¶
RF-DETR returns anonymous detections, and bundle adjustment needs to know that a keypoint in camera 0 and one in camera 3 are the same joint of the same person. The pairing takes the ground-truth calibration, projects every annotated body into each view, and matches detections to the projected boxes by overlap. This is an oracle association: it uses the calibration we are about to recover, so it isolates the weighting of keypoints from the harder task of telling people apart across views. It never looks at keypoints, so it does not favour any weighting row.
A correspondence is one (person, joint) that at least two views predicted and that has a valid 3D annotation. The annotation is kept only to score the result.
obs = panoptic.build_observations(frames, cameras, detections)
display(
pd.Series(
np.bincount(obs.mask.sum(1), minlength=len(cameras) + 1)[2:],
index=[f"{v} views" for v in range(2, len(cameras) + 1)],
name="correspondences, count",
)
)
Before trusting any number, check the pairing numerically: the median distance between each predicted keypoint and the projection of its annotated 3D joint, per camera. A wrong frame offset or unit would make it huge.
distance = {
f"camera {c}": float(
np.median(np.linalg.norm(obs.xy[obs.mask[:, v], v] - cameras[v].project(obs.points[obs.mask[:, v]]), axis=1))
)
for v, c in enumerate(panoptic.CAMERAS)
}
display(pd.Series(distance, name="median keypoint error, px").round(1))
Compare the camera medians with the image dimensions. A large discrepancy can indicate a synchronization, pairing, or units problem. The covariance in obs is rescaled by the box area because the model reports covariance per unit box area.
How the rig is calibrated¶
Every row starts from the same reconstruction and differs only in the weights of the final bundle adjustment:
- Start (
ransac). OpenCV's five-point RANSAC essential matrix of cameras 0 and 1, the matches triangulated, then OpenCV's RANSAC PnP for each other camera. No weights, no refinement. - Bundle adjustment. Sparse nonlinear least squares (
scipy.optimize.least_squares) on the Mahalanobis reprojection error of every camera and 3D point, with camera 0 fixed and the distance between cameras 0 and 1 set to one (the scale of a rig seen only by images is arbitrary). Each row gives every keypoint a different pixel covariance:unweighted: every keypoint equal. The standard bundle adjustment.confidence: each keypoint weighted by its findable probability, the per-keypoint score any pose model offers.isotropic: each keypoint weighted by the size of its covariance, dropping its shape.covariance: the full rescaled 2x2 covariance.permuted: the covariances shuffled among keypoints of the same joint, which has the model's distribution of sizes and shapes but not which keypoint gets which.
<row>+robust. The same weights under a Student-t reprojection model, so a keypoint far from the fit loses weight smoothly.unweighted+robustis what a careful engineer would run today (a robust loss on equal weights), so it is the fair standard and the row to beat.
The score is taken after the similarity (scale, rotation, translation) that maps the estimated camera centres onto the calibration, because the rig is only defined up to one. It reports the mean camera-rotation error in degrees, the mean camera-centre error in millimetres, and the error of the 3D joints (MPJPE) after the same alignment.
Build the problems¶
A problem is the correspondences of a window of consecutive annotated frames, solved on their own. A window is eligible for initialization when there are enough points seen by cameras 0 and 1 together, and by each other camera. Visibility determines eligibility for every row. If initialization cannot construct a valid rig from an eligible window, it stops with a diagnostic. The first part of the windows tunes the robust parameter; the last part is the evaluation, with a gap.
Frame positions come from the full sampled annotation timeline, including frames without usable observations. Incomplete trailing windows are excluded. The permuted control draws covariance donors only from the windows in its own split. EVAL_START above FIT_FRACTION leaves a gap of windows between the fitting and evaluation sets.
frame_ids = np.array([frame["frame"] for frame in frames])
groups = {window: window_rows(obs, window, frame_ids=frame_ids) for window in WINDOWS}
assert 0 < FIT_FRACTION < EVAL_START < 1, "choose 0 < FIT_FRACTION < EVAL_START < 1 for a chronological holdout"
fit_groups, eval_groups = {}, {}
for window, problems in groups.items():
fit_end = int(FIT_FRACTION * len(problems))
evaluation_start = max(fit_end + 1, int(EVAL_START * len(problems)))
fit_groups[window], eval_groups[window] = problems[:fit_end], problems[evaluation_start:]
assert all(len(fit_groups[w]) and len(eval_groups[w]) for w in WINDOWS), (
"too few problems for nonempty fitting and evaluation sets separated by a window"
)
display(
pd.DataFrame(
{w: [len(g), len(fit_groups[w]), len(eval_groups[w])] for w, g in groups.items()},
index=["windows, count", "fit windows, count", "evaluation windows, count"],
).rename_axis(columns="frames per problem")
)
Fit the robust parameter on the held-out part¶
The Student-t degrees of freedom nu (small = more skeptical of far keypoints) is chosen per weighting by the lowest camera-centre error on the fit problems and then frozen. This is the slow step (every candidate refits every fit problem): a few minutes per window size on a laptop.
nus = {window: {} for window in WINDOWS}
steps = tqdm(list(product(WINDOWS, WEIGHTINGS)), desc="fit nu, window x weighting")
for window, weighting in steps:
steps.set_postfix(window=window, weighting=weighting)
nus[window][weighting] = fit_nu(obs, cameras, fit_groups[window], weighting)
display(
pd.DataFrame(nus)
.rename(index=row_label)
.rename_axis(index="weighting", columns="nu, unitless, by frames per problem")
)
Solve every problem with every row¶
results = {window: rig_ladder(obs, cameras, eval_groups[window], nus[window]) for window in WINDOWS}
print({window: len(r["frame"]) for window, r in results.items()})
Environment¶
Keep this footer with any table or chart exported from the current run. It identifies the prediction checkpoint and the software and hardware used to score it.
hardware = torch.cuda.get_device_name() if DEVICE == "cuda" else "Apple GPU (Metal)" if DEVICE == "mps" else "CPU"
footer = (
f"{SEQUENCE} | {checkpoint.name} sha256={checkpoint_sha256} | "
f"rfdetr {importlib.metadata.version('rfdetr')} source sha256={source_sha256} | torch {torch.__version__} | "
f"opencv {cv2.__version__} | numpy {np.__version__} | "
f"device {DEVICE} ({hardware}, {platform.processor() or platform.machine()}, {platform.platform()}) | "
f"{datetime.now(timezone.utc):%Y-%m-%d} UTC"
)
print(footer)
Results¶
How to read the scores. Every column of every table states its unit. One problem is a window of consecutive annotated frames, and each row is scored on the same windows.
camera-centre error, mm: the mean over cameras of the distance between the estimated and the calibrated camera centre, in millimetres, after the similarity alignment described above.camera-rotation error, degrees: the mean over cameras of the angle of the rotation that turns the estimated camera orientation into the calibrated one, in degrees, after the same alignment.joint position error (MPJPE), mm: the mean over joints of the distance between the triangulated joint and the annotated 3D joint, in millimetres, after the same alignment.- Each table shows the geometric mean of one of these over all evaluation windows: the typical error, which the few windows that fail badly do not dominate.
ratio to <row>, unitless: a row's geometric-mean error divided by the reference row's on the same windows. A ratio of 1 means the same, 0.60 means 40% smaller errors, 2.00 means twice as large.ci low, unitlessandci high, unitless: the 95% bootstrap interval of that ratio. It resamples contiguous blocks ofBLOCK_WINDOWSwindows, with the windows of each block kept paired across rows. These intervals describe sensitivity to the sampled blocks in this recording. They cannot establish an effect across recordings, and few blocks can yield unstable or degenerate intervals.- The five
True/Falsecolumns say which inputs the row uses:confidence,covariance size,covariance shape,shuffled covarianceandrobustareTruewhen the row uses it. - Colours. In the charts, grey
standardrows use no model uncertainty, violetRF-DETR confidencerows use the keypoint's findable probability, tealRF-DETR covariancerows use the learned covariance, and the ambercontrolrow uses the same covariances shuffled among keypoints.
The provenance printed with the results identifies the run that produced them.
METRIC_NAMES = {
"centre": ("camera-centre error", "mm"),
"rotation": ("camera-rotation error", "degrees"),
"mpjpe": ("joint position error (MPJPE)", "mm"),
}
def summary(window: int, metric: str, reference: str = "unweighted") -> pd.DataFrame:
"""Geometric-mean error of every row with its ratio to the reference row and a 95% bootstrap interval."""
name, unit = METRIC_NAMES[metric]
rows = paired_error_summary(results[window][metric], reference, cluster_ids[window], name, unit)
table = pd.DataFrame(rows).set_index("row").round(2)
uses = pd.DataFrame([asdict(row_uses(row)) for row in table.index], index=table.index)
uses.columns = uses.columns.str.replace("_", " ")
return pd.concat([uses, table], axis=1)
cluster_ids = {
window: np.searchsorted(frame_ids, results[window]["frame"]) // (window * BLOCK_WINDOWS) for window in WINDOWS
}
plot_window = WINDOWS[0]
print(f"{plot_window} frames per window, {len(np.unique(cluster_ids[plot_window]))} temporal blocks")
display(summary(plot_window, "centre").rename(index=row_label))
The chart compares the robust weighting rows against equal weights with the same robust loss. It shows the first configured window size and descriptive intervals over temporal blocks.
shown = ["unweighted+robust", "confidence+robust", "isotropic+robust", "covariance+robust", "permuted+robust"]
table = summary(plot_window, "centre", "unweighted+robust").loc[shown]
ratio = table["ratio to unweighted+robust, unitless"]
fig, ax = plt.subplots(figsize=(8.5, 3.6))
ax.barh(
[row_label(row) for row in shown],
ratio,
xerr=[ratio - table["ci low, unitless"], table["ci high, unitless"] - ratio],
color=[row_color(row) for row in shown],
)
ax.axvline(1.0, color="#444444", linestyle="--")
ax.invert_yaxis()
ax.set_xlabel("Camera-centre error relative to unweighted + robust (ratio, unitless; below 1 is better)")
ax.set_ylabel("Weighting")
ax.set_title(f"{plot_window} annotated frames per window")
ax.grid(True, axis="x", alpha=0.25)
kind_legend(ax)
Read the chart alongside the block count above. A low ratio describes the observed reduction in centre error for this run. Check whether the ranking changes with window size, metric, or block length before interpreting it.
The table below shows historical measurements at five frames per window. The notebook revision, checkpoint, and exact evaluation set for that run are unknown. Each row is one way to calibrate the rig from the same windows. The five flag columns say which inputs the row uses; the last four columns are the geometric-mean camera-centre error in millimetres, its ratio to the standard: equal weights row (unitless) and the 95% bootstrap interval of that ratio over blocks of windows.
| row | confidence | covariance size | covariance shape | shuffled covariance | robust | camera-centre error, mm | ratio to standard: equal weights, unitless | ci low, unitless | ci high, unitless |
|---|---|---|---|---|---|---|---|---|---|
| standard: RANSAC | False | False | False | False | False | 78.28 | 0.92 | 0.79 | 1.10 |
| standard: equal weights | False | False | False | False | False | 84.99 | 1.00 | 1.00 | 1.00 |
| RF-DETR confidence | True | False | False | False | False | 55.86 | 0.66 | 0.60 | 0.70 |
| RF-DETR covariance (size only) | False | True | False | False | False | 45.32 | 0.53 | 0.49 | 0.58 |
| RF-DETR covariance | False | True | True | False | False | 48.65 | 0.57 | 0.52 | 0.63 |
| control: shuffled covariance | False | False | False | True | False | 76.89 | 0.90 | 0.84 | 0.98 |
| standard: equal weights + robust | False | False | False | False | True | 27.18 | 0.32 | 0.29 | 0.35 |
| RF-DETR confidence + robust | True | False | False | False | True | 21.01 | 0.25 | 0.22 | 0.28 |
| RF-DETR covariance (size only) + robust | False | True | False | False | True | 16.49 | 0.19 | 0.17 | 0.22 |
| RF-DETR covariance + robust | False | True | True | False | True | 16.33 | 0.19 | 0.17 | 0.22 |
| control: shuffled covariance + robust | False | False | False | True | True | 27.12 | 0.32 | 0.28 | 0.36 |
In these measurements, the confidence and covariance rows had smaller centre errors than equal weights. Robust fitting further reduced error, and the full and size-only covariance rows had similar point estimates. The rows use separately tuned robust settings, so these results compare the complete fitting procedures.
Hardware, package versions, date and the number of windows and blocks of this run were not recorded.
The bars compare means. To see whether a gain comes from the typical problem or only from fewer rare large failures, plot the cumulative distribution of the camera-centre error of every window: at each error on the horizontal axis, the curve shows the share of problems that ended below it. A curve further left is better.
fig, ax = plt.subplots(figsize=(7, 3.8))
curves = ["unweighted+robust", "confidence+robust", "covariance+robust", "permuted+robust"]
plot_error_cdf(
ax,
results[plot_window]["centre"],
curves,
colors=[row_color(row) for row in curves],
labels=[row_label(row) for row in curves],
)
ax.set_xlabel("camera-centre error after alignment, mm")
ax.legend()
One curve per kind of row: the standard baseline, RF-DETR confidence, RF-DETR covariance and the shuffled-covariance control. Compare where the curves separate. A gap in the middle means the row is better for a typical problem; a gap only on the right, in the tail, means it mostly avoids the rare large failures that dominate a mean.
The paired table compares each method on the same evaluation windows. The full-versus-isotropic comparison shows the observed contribution from covariance shape. These ratios and intervals describe differences in this recording and do not test equivalence.
pairs_to_compare = [
("covariance+robust", "unweighted+robust"),
("covariance+robust", "confidence+robust"),
("isotropic+robust", "confidence+robust"),
("covariance+robust", "isotropic+robust"),
("covariance+robust", "permuted+robust"),
]
comparison = pd.DataFrame(
{
f"{row_label(first)} / {row_label(second)}": {
f"{metric}, {w} frames": paired_ratio_text(
results[w][metric][first], results[w][metric][second], cluster_ids[w]
)
for w in WINDOWS
for metric in ("centre", "rotation", "mpjpe")
}
for first, second in pairs_to_compare
}
).T.rename_axis(index="error ratio first / second, unitless [95% interval]")
display(comparison)
Compare the paired rows across centre, rotation and joint error. The same weighting can affect these metrics differently, and agreement on one window size need not hold on another.
The historical paired comparisons used five and 25 frames per window. Each entry gives the ratio of the geometric-mean error of the first row to the second on the same windows with its 95% interval over blocks of windows. All entries are unitless; a ratio below 1 means the first row has the smaller error.
| comparison, first / second row | camera-centre error ratio, 5 frames, unitless [95% interval] | camera-rotation error ratio, 5 frames, unitless [95% interval] | joint position error (MPJPE) ratio, 5 frames, unitless [95% interval] | camera-centre error ratio, 25 frames, unitless [95% interval] | camera-rotation error ratio, 25 frames, unitless [95% interval] | joint position error (MPJPE) ratio, 25 frames, unitless [95% interval] |
|---|---|---|---|---|---|---|
| RF-DETR covariance + robust / standard: equal weights + robust | 0.60 [0.56, 0.64] | 0.55 [0.52, 0.58] | 0.64 [0.61, 0.66] | 0.59 [0.50, 0.64] | 0.50 [0.48, 0.51] | 0.63 [0.60, 0.67] |
| RF-DETR covariance + robust / RF-DETR confidence + robust | 0.78 [0.74, 0.82] | 0.74 [0.72, 0.78] | 0.85 [0.82, 0.88] | 0.74 [0.72, 0.76] | 0.72 [0.68, 0.76] | 0.84 [0.82, 0.89] |
| RF-DETR covariance (size only) + robust / RF-DETR confidence + robust | 0.78 [0.75, 0.83] | 0.74 [0.70, 0.78] | 0.82 [0.79, 0.85] | 0.72 [0.69, 0.75] | 0.68 [0.62, 0.74] | 0.83 [0.81, 0.87] |
| RF-DETR covariance + robust / RF-DETR covariance (size only) + robust | 0.99 [0.95, 1.03] | 1.01 [0.98, 1.05] | 1.04 [1.03, 1.05] | 1.03 [0.98, 1.10] | 1.07 [1.02, 1.12] | 1.02 [1.01, 1.02] |
| RF-DETR covariance + robust / control: shuffled covariance + robust | 0.60 [0.55, 0.66] | 0.58 [0.53, 0.63] | 0.54 [0.51, 0.57] | 0.61 [0.50, 0.69] | 0.57 [0.49, 0.62] | 0.53 [0.49, 0.56] |
Both covariance rows had smaller errors than the confidence row across the displayed metrics and window sizes. For full covariance versus size only, the centre-error intervals include both reductions and increases, so the centre comparison is inconclusive. The 25-frame rotation and both joint-error intervals favor size-only covariance in these measurements. The rows tune Student-t degrees of freedom separately. Isolating covariance shape would require a comparison at a shared robust setting.
These intervals describe the sensitivity to the sampled blocks of this one recording.
What this does and does not show¶
- One sequence, one dataset. A small group of people at a table, seen by five cameras a few metres away. The ratios are for this scene; a different layout or crowd can move them.
- One recording provides few temporal blocks. Neighbouring windows share people and background. The block intervals describe this recording and may still reflect dependence between blocks.
- Oracle association. Detections were paired across views using the true calibration. A deployment has to match people across views first, and its errors would add to every row alike.
- The standard is OpenCV start plus a bundle adjustment of our own. No third-party structure-from-motion package was run.
unweighted+robustis a Student-t loss on equal weights, a stand-in for the robust losses such packages use. - The start is OpenCV's. A different start (for example one polished before refinement) may lower the error of the
ransacrow and the others alike; the comparison is among weightings from one start. - Only one RF-DETR keypoint checkpoint exists (
RFDETRKeypointPreview), so there is no size sweep and no spread across models.confidence+robustis RF-DETR's own confidence, not another model's. - Scoring uses the calibration as truth. The calibration has its own error, which sets a floor under every row.
Use the same split and scoring method across weighting rows when adapting the experiment to another recording.