NVIDIA EgoHand: Architecture and Porting to Apple Silicon
EgoHand reconstructs a three-dimensional hand from an RGB image through a sequence of learned and geometric operations. A detector first localizes the hand. An image encoder then extracts visual features, Transformer decoders estimate pose, shape, and camera-related quantities, and a parametric hand model converts these estimates into joints and a mesh.
I ported NVIDIA’s released EgoHand checkpoint to Apple Silicon. This article traces the computation from image input to geometric output, explains the execution boundaries of the macOS implementation, and examines measurements recorded on an M2 Max with a 38-core GPU and 96 GB of unified memory.
The analysis is based on pinned source revisions, the training configuration stored in the checkpoint, and saved verification records. Performance measurements come from October 28 and 31, 2026. The configuration and records were checked during preparation on November 3; the performance experiments were not rerun for this article. Paths in the examples are project-relative or generic placeholders.
1. Key Findings
- Detection and reconstruction use separate models. RT-DETR predicts hand boxes and physical handedness; EgoHand reconstructs three-dimensional parameters from each hand crop.
- DINOv3 provides the image encoder. This checkpoint uses ViT-H/16+: a 256×256 crop produces a 16×16 grid of spatial tokens, each with 1,280 features.
- Decoding follows two branches. A six-layer primary decoder regresses three-dimensional parameters. A separate three-layer decoder predicts 25 two-dimensional joints used to refine camera translation.
- Camera geometry is part of the input. Crop position, scale, and viewing direction condition the model alongside the image features.
- MHR is a parametric rig, not a file format. EgoHand uses the SOMA-Hand representation with Meta’s MHR as its shape backend. Rig evaluation converts the predicted parameters into geometry.
- The macOS port uses explicit heterogeneous execution. The neural network runs on MPS, detection primarily uses Core ML, and MHR shape evaluation runs on MPS. The remaining rig operations, mirroring, and camera solver run on the CPU.
2. From an RGB Frame to a Reconstructed Hand
The complete input consists of an RGB frame, hand boxes, and camera calibration that matches the source image resolution. The processing stages are:
| Stage | Input | Output |
|---|---|---|
| Hand detection | Full image | Left/right labels, confidence scores, and two-dimensional boxes |
| Geometric preprocessing | Boxes, image, and camera model | 256×256 hand crops and corresponding camera information |
| Image encoding | Normalized crops | DINOv3 spatial features |
| Three-dimensional parameter decoding | Spatial features, box conditions, and ray features | Joint rotations, shape, scale, and camera parameters |
| Two-dimensional joint decoding | Shared image features | Joint coordinates, crop-presence predictions, and coordinate uncertainty |
| Geometry reconstruction and translation estimation | Parameters, two-dimensional joints, and intrinsics | Three-dimensional joints, meshes, and camera-space translation |
| Handedness and coordinate restoration | Canonical predictions | Exportable left- and right-hand results in the source camera frame |
This is a single-frame reconstruction pipeline. Video input does not imply temporal attention across frames. The live implementation processes frames independently and does not enable offline sequence smoothing. Temporal stability and single-frame estimation are separate concerns. The official integration can also incorporate camera localization during postprocessing to transform hand geometry from camera coordinates into world coordinates. Official inference documentation
3. Hand Detection and Physical Handedness
The detector estimates where each hand is and whether it is the wearer’s physical left or right hand.
The port uses NVIDIA’s released RT-DETR hand-detector ONNX model. The pinned implementation takes a 640×640 detection input and returns boxes, labels, and scores. Class 1 denotes the physical left hand; class 2 denotes the physical right hand. These labels describe anatomical handedness, not the side of the image occupied by the hand. The distinction is particularly relevant for a front-facing camera.
Detected boxes are padded, made square, and represented as (center_x, center_y, size). The adapter sets pad=0.15: each side is extended by 15% of the original dimension, giving a factor of 1.3 before squaring. Boxes near an image boundary are not simply clipped to remove every out-of-bounds region; the subsequent crop operation handles sampling.
Each frame retains at most one left-hand box and one right-hand box. If identical box coordinates receive conflicting labels, only the higher-scoring proposal is retained. Distinct overlapping boxes remain eligible because they may represent two real hands.
The detector supplies regions and labels rather than final hand geometry. Errors in box position, extent, or handedness propagate into cropping and reconstruction; the reconstruction model does not guarantee their correction. Pinned detector source
4. Preserving Camera Geometry During Cropping
4.1 Why Resizing a Hand to 256×256 Is Insufficient
Let a square hand box have center and side length . The pinhole camera intrinsic matrix is
Two hands can occupy the same area in their resized crops while originating from substantially different box sizes in the source image. The crop alone discards the original image position and imaging scale. Both remain useful for estimating three-dimensional location.
The standard crop path converts the image to RGB, resizes it to 256×256, and normalizes its channels with the ImageNet mean [0.485, 0.456, 0.406] and standard deviation [0.229, 0.224, 0.225]. The resulting model input has shape B×3×256×256. Crop implementation
4.2 Calibrated Perspective Crops
For a camera with lens distortion, extracting a square pixel region does not by itself define a new pinhole view. The port reuses the upstream perspective_crop implementation. It uses projection and backprojection through the source camera model to construct a virtual pinhole camera directed toward the hand. The operation produces a 256×256 crop, virtual intrinsics, and a rotation that maps predictions back into the source camera frame.
Right-hand crops are first canonicalized to the left-hand convention. Mirroring must transform the camera information consistently. After prediction, SOMA’s handedness conversion and the coordinate transforms restore the physical right hand. A horizontal flip in the display cannot replace these geometric operations. Perspective cropping, mirroring implementation
Calibration must match the image dimensions, focal lengths, principal point, and distortion model. The demo can use estimated intrinsics when measured calibration is unavailable, but it explicitly labels that mode as uncalibrated. This supports execution and interaction checks; it does not validate metric depth accuracy.
5. DINOv3 as the Spatial Image Encoder
The checkpoint uses dinov3_vith16plus. The pinned constructor and checkpoint configuration specify:
| Property | Value |
|---|---|
| Input crop | 256×256 RGB |
| Patch size | 16×16 |
| Spatial grid | 16×16, or 256 patch tokens |
| Hidden dimension | 1,280 |
| Encoder layers | 32 |
| Attention heads | 20 |
| Additional tokens | One CLS token and four storage tokens |
| Features returned downstream | B×1280×16×16 |
The encoder uses special tokens internally. The wrapper removes them when returning the normalized spatial features from the final layer. Downstream decoding therefore receives 256 spatial positions; CLS and storage tokens are not additional image patches.
Self-attention allows each patch representation to incorporate information from other image regions. For an occluded finger, that context may include the palm and visible fingers. Such contextual reasoning does not guarantee recovery of the true hidden pose.
According to the official model description, the visual backbone is initialized from the DINOv3 weights used in SAM 3D Body. Inference uses the complete trained EgoHand checkpoint. The backbone features are part of a trained reconstruction system, rather than a standalone hand model. DINOv3 wrapper, official model card
5.1 Conditioning Visual Features on Viewing Direction
For each patch, the implementation maps its crop coordinates into pixel coordinates in the current camera view and computes a viewing ray:
Azimuth and elevation are each encoded with sine and cosine functions at eight frequency bands. This gives a -dimensional ray positional encoding, or Ray PE. An MLP projects it to 1,280 dimensions and adds it to the corresponding spatial feature.
A separate CLIFF-style condition contains
These values describe box position relative to the principal point and box scale relative to focal length. In the perspective-crop path, the box and intrinsics must be consistent with the virtual view. Ray PE implementation
6. Decoding Three-Dimensional Hand Parameters
The primary Transformer decoder converts visual context into a structured hand representation.
The pinned checkpoint concatenates learned initial pose, shape, and camera values with the three box-conditioning values. A linear projection converts this vector into one parameter-query token, which cross-attends to the 256 spatial image tokens. The decoder regresses parameters rather than generating an autoregressive sequence.
The basic attention operation is
Here, comes from the parameter token, and come from image features. This expression describes the core attention operation; the complete decoder also includes multiple heads, normalization, residual connections, and feedforward layers.
| Primary decoder property | Checkpoint configuration |
|---|---|
| Layers | 6 |
| Token dimension | 1,024 |
| Image-context dimension | 1,280 |
| Attention heads | 8 |
| Parameter-query tokens | 1 |
| Regression heads | Two-layer MLPs for pose, shape, and camera |
| Per-layer predictions | Enabled; inference uses the final layer |
The initial parameter vector contains 150 pose values, corresponding to a six-dimensional rotation representation for each of 25 joints; 32 shape values, comprising five identity coefficients and 27 scale values; three camera values; and three box conditions. The resulting 188-dimensional vector is projected into a 1,024-dimensional token.
The six-dimensional rotation representation is converted into rotation matrices. One rotation describes the wrist and 24 describe the fingers, producing B×25×3×3. The decoder predicts structured parameters; it does not directly generate the mesh’s 2,859 vertices one at a time.
This checkpoint has num_kp2d_queries=0 because two-dimensional joints are handled by a separate branch. A diagram with 25 joint-query tokens in the primary decoder would describe a different configurable architecture, not this checkpoint. Primary decoder source
7. SOMA-Hand and Meta MHR: From Parameters to Geometry
Meta’s Momentum Human Rig, or MHR, is a parametric human model that separates identity-dependent shape, skeleton, and pose. MHR is not a storage container such as .npz. Its full-body parameter dimensions also cannot be applied directly to EgoHand’s hand-specific outputs. Meta MHR
EgoHand uses SOMA-Hand’s pose representation and rig interface, with an MHR identity model as the shape backend. The roles are distinct:
| Component | Role in this pipeline |
|---|---|
| MHR shape backend | Generates shape-dependent information from identity and scale parameters |
| SOMA-Hand rig | Converts wrist and finger rotations into joints and a mesh through skeletal deformation and skinning |
| NPZ / TorchScript | Store results or assets, and provide an execution representation for parts of the model, respectively |
7.1 Shape Includes Both Identity and Scale
The checkpoint’s shape prediction consists of two groups:
- Five identity coefficients, which represent identity-dependent hand shape.
- 27 scale values, consisting of one global scale and 26 local MHR scale controls.
At the SOMA API boundary, the 27 scale values are split into global_scale and scale_params[26]. Identity and scale describe persistent shape and proportions; the 25 joint rotations describe the current pose. Holding shape fixed while varying rotations represents different motions of the same hand.
Geometric reconstruction first establishes an identity-dependent rest shape and skeleton, then computes joint transforms and deforms vertices through skinning. SOMA/MHR handles the detailed identity fitting, skeletal constraints, and skinning. These operations cannot be reduced to a single matrix multiplication. SOMA wrapper

Figure 1. Reconstruction from frame 0 of a saved replay of a public calibrated video. Each hand has 25 joints, 2,859 vertices, and 5,692 triangular faces. The two hands are independently centered at their wrists for visualization; their relative positions in the source image are not preserved here. These are predictions, not ground truth. No private camera imagery is used.
7.2 Output Fields and Coordinate Conventions
The port exports the following principal fields:
| Field | Shape per hand | Meaning |
|---|---|---|
poses | 25×3×3 | SOMA joint rotation matrices |
identity_coeffs | 5 | MHR hand identity coefficients |
global_scale | Scalar | Global scale |
scale_params | 26 | Local scale controls |
pred_keypoints_3d | 25×3 | Wrist-relative joint positions, in meters |
pred_vertices | 2859×3 | Wrist-relative mesh vertices, in meters |
transl | 3 | Wrist position in camera coordinates, in meters |
These are the field names in the port’s NPZ exports. Upstream batch exports use names such as hand_poses, joints, vertices, and cam_t. They represent corresponding categories of data, but the names are not interchangeable without an explicit mapping.
The camera axes are right, down, and forward. After restoring the source camera frame,
Image projection additionally requires the camera model. World-space reconstruction requires camera extrinsics; EgoHand’s hand predictions alone do not establish a world-coordinate trajectory.
8. Two-Dimensional Joints and Camera Translation
A plausible three-dimensional hand and an accurately aligned image projection impose different constraints. The checkpoint therefore branches from the shared DINO features into a separate two-dimensional decoder:
- Project the 1,280-dimensional spatial features into 256-dimensional memory and add learned positional embeddings.
- Use 25 learned joint queries in a three-layer, eight-head Transformer decoder to read that memory.
- Predict each joint’s two-dimensional coordinates, coordinate uncertainty, and a presence signal indicating whether it lies within the model crop.
Presence is not an occlusion label, and the predicted sigma is not a calibrated three-dimensional confidence measure. Neither supports a direct statement such as “this three-dimensional joint has a 95% probability of being correct.” Two-dimensional decoder implementation
8.1 Predicted Depth and a Constrained Translation Solver
The checkpoint uses the log_lambda parameterization. For a predicted scalar , let . With square crop side length and focal length , depth is
This is the implementation’s camera-depth parameterization. Camera intrinsics alone do not resolve monocular scale ambiguity; depth still depends on learned priors about hand size and shape.
With fixed, the predicted two-dimensional joints are mapped from crop coordinates to the full current view and paired with the three-dimensional joints produced by SOMA. For a pinhole camera with zero skew, the lateral constraints can be written as
The solver estimates from valid correspondences. It checks presence, finite values, the number of valid points, and numerical conditioning. This configuration requires at least four valid points. If the solve is invalid, the original camera prediction is retained.
Perspective crops also require rotating the reconstructed geometry back into the source camera frame, and canonicalized right hands must be restored to their physical handedness. The exported mesh and translation must follow the declared coordinate convention. Camera parameterization, fixed-depth translation solver
9. Training Context and Model Size
The official model card reports approximately 14 million training images from real and synthetic sources. Training objectives include two-dimensional joints, three-dimensional joints, and pose and shape parameters. The paper describes how different data sources are mapped into a common SOMA-Hand representation. This port does not reproduce training or independently validate the paper’s accuracy results. EgoHand paper
The checkpoint configuration includes losses for pose, wrist orientation, identity, scale, camera parameters, two-dimensional coordinates and presence, and translation. These objectives constrain complementary aspects of the prediction: image projection, three-dimensional structure, parameter plausibility, and camera-relative location.
The official model card reports approximately 883.5 million network parameters. The complete checkpoint file is about 10.66 GB and includes optimizer state and training records. File size is therefore not a measure of inference parameter memory. Loaded assets, runtime tensors, and GPU memory usage require separate accounting.
10. Porting to macOS: Explicit Execution Boundaries
The official integration targets Linux and NVIDIA GPUs. My port retains the released weights and geometric conventions, runs the neural network through PyTorch MPS, and selects execution backends separately for detection and geometric reconstruction.
10.1 Pinned Software and Asset Revisions
| Component | Validated version or revision |
|---|---|
| Isaac Capture / EgoPost | a74babb0 |
| EgoHand checkpoint | a153616c, egohand_s060000.ckpt |
| DINOv3 implementation | 5aa7e93a |
| SOMA-X assets | f81a0179 |
| RT-DETR hand-detector assets | 55572ddc |
| Python / PyTorch | 3.12.16 / 2.8.0 |
| ONNX Runtime / SOMA | 1.31.1 / 0.3.0 |
| OpenCV | 4.11.0.86 |
This is a tested configuration, not a compatibility claim for every newer dependency. OpenCV’s camera APIs, SOMA’s rig execution paths, and TorchScript graph interfaces require particular care when changing versions.
10.2 DINOv3 and the Decoders: FP32 on MPS
Network weights and inputs reside on MPS and execute in eager float32 mode. The adapter disables CUDA-specific autocast and timing logic, using explicit MPS synchronization for diagnostic timing.
Automatic MPS-to-CPU fallback remains disabled. Unsupported operations have explicit execution boundaries so their placement can be inspected. Setting PYTORCH_ENABLE_MPS_FALLBACK=1 permits unsupported operations to fall back to the CPU; successful execution under that setting does not demonstrate that the entire network ran on the GPU. PyTorch MPS environment variables
Experiments with FP16 autocast and half-precision weights did not improve speed in this pipeline, so the implementation retains FP32. Theoretical arithmetic throughput alone is insufficient to predict performance: small batches, operator implementations, and synchronization also affect latency.
10.3 RT-DETR Through ONNX Runtime’s Core ML Execution Provider
The detector retains its original weights. Both ONNX inputs are first fixed to batch size one, and intermediate shapes are inferred before Core ML execution. The provider configuration is:
providers = [
("CoreMLExecutionProvider", {
"ModelFormat": "MLProgram",
"MLComputeUnits": "ALL",
"RequireStaticInputShapes": "1",
}),
"CPUExecutionProvider",
]
This excerpt shows the provider options, not the model-derivation and validation code. The original ONNX file is preserved, and the derived file has a manifest recording source and output hashes.
Analysis of the graph assigned 673 of 688 pre-partition nodes to six Core ML partitions. The remaining 15 nodes execute through ONNX Runtime’s CPU provider. Assignment to Core ML does not establish execution on the Neural Engine. ALL permits the system to select compute units; this work does not include an ANE placement trace. Core ML execution-provider options
10.4 SOMA/MHR: Moving Only the Validated Computation
Moving the outer model with .to("mps") is insufficient to port the rig. The pinned upstream constructor includes a CUDA default, and right-hand mirroring directly invokes underlying identity and pose operations.
The adapter first establishes explicit CPU boundaries around the SOMA rig, right-hand mirroring, and the small camera solver. The latter uses eigvalsh, which is unsupported by the tested MPS runtime. The rig also includes an RBF LU solve and Warp operations without an MPS backend.
The next step moves MHR shape evaluation to MPS. A separate TorchScript derivative of the fixed asset changes forced float64 accumulation in skeleton propagation to float32 and expands a constant 3000×750 sparse matrix into a dense matrix with the same entries. Learned parameter values are preserved. The numerical representation and accumulation precision change, however, so geometric parity must be checked again.
The resulting execution boundaries are:
| Stage | Execution backend |
|---|---|
| Capture, detector preprocessing, and cropping | CPU |
| RT-DETR detection | Core ML EP plus remaining ONNX Runtime CPU nodes |
| DINOv3, primary decoder, and two-dimensional branch | PyTorch MPS, float32 |
| MHR shape evaluation | MPS, with explicit return to the CPU rig |
| SOMA fitting, remaining rig operations, skinning, and right-hand mirroring | CPU |
| Small camera-translation solve | CPU |
| Export and preview | CPU and desktop display path |
The implementation remains heterogeneous; it is not a complete GPU, Core ML, or MLX conversion. Unified memory helps with the capacity constraints of separate device memory, but transfers between execution domains, synchronization, and CPU scheduling still incur costs.
10.5 Live Input: Batch Hands Within a Frame
The live adapter limits the hand batch to two: B=1 for one detected hand and B=2 for two. It does not wait for future frames to fill the upstream offline batch size of 32. Capture maintains a single slot for the latest frame, replacing stale frames rather than accumulating a long queue.
Images and predictions are paired by source frame ID. An old prediction is not arbitrarily overlaid on a newer image. Frames without detected hands produce no invented pose. Capture FPS, processing FPS, frame age, and dropped-frame counts are recorded separately; camera capture rate alone does not describe model throughput.
11. M2 Max Hardware and Measured Performance
11.1 Hardware and Experimental Conditions
The reference machine is a MacBook Pro with an Apple M2 Max, a 12-core CPU, a 38-core GPU, 96 GB of unified memory, and 8 TB of internal storage. The hardware configuration was checked during preparation. The system reports macOS 27.2; the measurements below were recorded in the project’s macOS environment.
Detector microbenchmarks, matched video replays, and a live profile with synchronization probes are reported separately. Their measurement boundaries differ. Selecting the lowest number from each experiment would not describe a measured system configuration.

Figure 2. Values are taken from saved JSON records. Panel A measures detector graph execution; panel B shows independently summarized stage medians for 213 two-hand frames; panel C compares the same video with only the MHR backend changed. These are separate experiments. The chart data are available for inspection.
11.2 Detector Execution: 163.1 ms to 16.2 ms
The same real reference frame was used for 20 warm iterations:
| Backend | Median execution time | p95 |
|---|---|---|
| ONNX Runtime CPU | 163.07 ms | 164.50 ms |
| Fixed-batch Core ML EP | 16.21 ms | 18.74 ms |
This is approximately a 10.1× speedup in detector graph execution. It excludes image preprocessing and is not a tenfold improvement in end-to-end performance. Initial Core ML compilation and warmup add further overhead.
Predicted labels match the reference, and the maximum raw box-coordinate difference is approximately 0.00171 pixels. In the complete 40-frame replay, mesh-coordinate differences are at most approximately 0.111 mm. These compare implementations; they do not measure error against ground-truth hand pose.
11.3 MHR Offload: A Matched 40-Frame Comparison
This comparison changes only the MHR backend while retaining the detector and neural-network settings. The sample contains 22 one-hand frames and 18 two-hand frames.
| Case | Median reconstruction with CPU MHR | Median reconstruction with MPS MHR |
|---|---|---|
| One hand | 220.17 ms | 182.14 ms |
| Two hands | 289.79 ms | 243.52 ms |
Median reconstruction time decreases by approximately 17.3% and 16.0%, respectively. The maximum geometry distance in the parity check, including camera-space joints, is approximately 0.000651 mm. This indicates close numerical agreement with the CPU reference, not submicron accuracy relative to the physical world.
Whole-replay processing throughput changes from 3.29 to 3.39 FPS, including different cold-start spikes. Improvements in median latency therefore cannot be converted directly into equivalent gains in sustained FPS.
11.4 Two-Hand Full-Mesh Reconstruction: Where Time Is Spent
A separate live profile on October 28 processed 264 frames, of which 213 contained detections for both hands. It used estimated calibration and enabled stage synchronization. The table summarizes only those 213 two-hand frames:
| Stage | Median | p95 |
|---|---|---|
| Detection, including preprocessing | 25.74 ms | 26.83 ms |
| DINOv3 backbone | 150.54 ms | 158.48 ms |
| Primary three-dimensional decoder | 12.94 ms | 14.07 ms |
| MHR shape call | 25.72 ms | 27.98 ms |
| Remaining reconstruction | 58.31 ms | 61.08 ms |
| Complete reconstruction | 247.60 ms | 261.36 ms |
| Export | 2.69 ms | 2.95 ms |
| Read-to-export frame age | 295.07 ms | 316.79 ms |
“Remaining reconstruction” is the per-frame residual after subtracting instrumented stages from total reconstruction time. It includes cropping and transfers, the two-dimensional branch, remaining rig operations, mirroring, and camera work. It is not a separately defined module. Medians are not strictly additive, and SOMA wrapper timings overlap MHR evaluation, so adding both would double-count work.
DINOv3 dominates the individually measured stages in this record. The calculation 1000 / 247.60 ≈ 4.04 is merely the reciprocal of median reconstruction time, not measured end-to-end FPS. Detection, frame waiting, preview, and latency tails contribute additional costs.
Frame age is measured from completion of the camera read to the export boundary. It is not sensor-exposure-to-display latency. This revision did not measure rendering or display time separately, and stage synchronization itself can affect throughput. MPS synchronization semantics
A separate 40-frame regression record from October 31 reports median reconstruction times of 172.3 ms for one hand and 229.6 ms for two. Those differences are not attributed to a new controlled performance optimization and do not replace the stage profile above.
12. Reproducing the Apple Silicon Port
The public implementation is available at multics/egohand-apple-silicon. It provides the full-mesh baseline, hardware specifications, and sanitized measurement records in a repository with a clean history. It excludes personal paths, camera configuration, private calibration, and development-session records. The original integration code is distributed under the MIT License. NVIDIA, DINOv3, and SOMA/MHR code, weights, and assets retain their respective licenses and must be obtained separately. Later joints-only and native Metal rig experiments are not included in this release.
Setup and launch scripts use project-relative resource paths. No author-specific paths need to be edited. The initial setup downloads the approximately 10.66 GB EgoHand checkpoint and other resources; allow additional storage for dependencies and runtime caches.
git clone https://github.com/multics/egohand-apple-silicon.git
cd egohand-apple-silicon
./setup.sh
./run_demo.sh
setup.sh installs pinned dependencies, fetches pinned upstream source, and downloads and verifies model assets. The default demo selects camera 0 and uses estimated intrinsics. Grant camera access to the terminal application when macOS requests it. This mode does not constitute camera calibration. Select another camera with ./run_demo.sh --camera 1, or provide measured calibration with --calibration /path/to/your-camera.json.
Successful installation and validated model inference are separate milestones. A useful validation sequence has four levels:
- Environment: verify imports, MPS availability, and a small tensor operation. These checks do not exercise the model.
- Single frame: load the released checkpoint and a real calibrated input; check output shapes, finite values, rotations, and units for both hands.
- Controlled comparison: compare CPU and MPS on the same crop and calibration, then compare changes on the same video. Report hand presence, left/right combinations, and missing detections rather than only averages.
- Interaction: test left-only, right-only, two-hand, no-hand, and image-boundary cases, along with export and shutdown. Record detection, reconstruction, frame age, dropped frames, and cold-start behavior.
For example, a calibrated video replay can be run with:
.venv/bin/egohand-live \
--source assets/egopost \
--checkpoint weights/egohand/egohand_s060000.ckpt \
--assets weights/soma \
--detector weights/detector/hand_detector.onnx \
--calibration /path/to/measured-camera.json \
--video /path/to/video.mp4 \
--device mps --detector-device coreml --mhr-device mps \
--batch-size 2 --output runs/review-replay
Add --profile-stages for synchronized stage diagnostics, and report whether it was enabled when comparing throughput. Use a new output session and retain metadata and per-frame logs so that timing distributions can be recomputed.
13. Validated Scope and Remaining Limitations
The released EgoHand weights have completed real inference on this M2 Max with the neural network on MPS. Both physical hands produce joints, rotations, translation, and full meshes. Core ML detection and MPS MHR evaluation have paired output comparisons against their reference paths.
Outstanding work includes porting the entire rig to MPS, tracing actual ANE placement, assessing pose accuracy against three-dimensional ground truth, and establishing sustained operation at camera frame rate. Detector class definitions alone do not establish generalization to handedness estimation in front-facing camera views. Numerical parity, an uncalibrated live demonstration, and published paper results do not substitute for those evaluations.
The architectural relationships that matter throughout the port are image coordinates and camera geometry, predicted parameters and reconstructed geometry, and stage latency and end-to-end throughput. Preserving these relationships makes both the outputs and the performance measurements interpretable.
14. Version and Evidence Notes
- Architectural dimensions refer to the pinned upstream source and the configuration stored in the released checkpoint. Later upstream revisions may differ.
- Performance records include
detector-coreml-benchmark.json,round1-mhr-comparison.json,full-mesh-b1e0baf-profile.json, andduplicate-box-fix-replay.json. Public chart data exclude absolute local paths and session-directory identifiers. - The paper and official documentation provide background and reference points. This article does not claim to reproduce training, the paper’s accuracy results, or performance on NVIDIA GPUs.