MyoBridge: Released Model Checkpoints

Paper Code Dataset Website

MyoBridge estimates hand pose, contact, and force from egocentric visual features and wrist sEMG. This repository provides seed 0, final epoch 20 checkpoints for two model versions, each under Cross-trial (CT), Cross-session (CS), and Cross-subject (XS).

Folder Visual input Explicit WiLoR pose/shape prior Feature adapter
dino/ Frozen DINOv2 ViT-B/14 with registers, [B,34,768] No No; original DINO-only model
wilor/ Frozen WiLoR visual tokens, [B,13,1280] No Learned token projection only

These are not the DINO+WiLoR concatenation model, the later DINO residual-adapter experiment, or ablated/tuned variants. Both models take causal 200 ms sEMG windows with shape [B,18,400]. Seed 0 was selected in advance for distribution, not by ranking TEST metrics.

Contents

dino/{ct,cs,xs}/
wilor/{ct,cs,xs}/
    model.safetensors       # all MyoBridge learned parameters and non-MANO buffers
    checkpoint.pt           # same state under the key "model", plus epoch metadata
    config.json             # exact released graph and checkpoint provenance hashes
    normalization.json      # protocol-specific TRAIN-fitted EMG mean/std
    scales.json             # training loss scales
    splits.json             # original final TRAIN/TEST trial lists
    test_metrics.json       # archived seed-0 full-TEST results; not a new evaluation
dino/pretrained/             # original frozen DINOv2 pretrained weights and license
wilor/pretrained/            # WiLoR config, license and official asset URLs/checksums
assets/anatomical_partition.npz
code/                       # pinned inference-code snapshot
load_model.py               # loader for both exact historical model versions
evaluate_model.py           # evaluation on model-ready cached inputs
fetch_wilor_pretrained.py   # fetch original WiLoR assets from their official source
release_manifest.json
checksums.sha256

Only one seed is included. The state excludes optimizers, RNG states, server paths, credentials, and separately licensed MANO geometry. Removing MANO buffers does not remove the model's learned pose/shape prediction head: all trained MyoBridge parameters are retained without numerical changes. checkpoint.pt and model.safetensors contain the same inference state; only one is needed.

The original CT graph uses a 0.1 LayerNorm blend on regional states (pool_state_ln010). CS and XS use pool_full without this blend. This applies to both released versions and is handled by load_model.py; do not silently substitute one protocol's graph for another. The DINO-only graph has no residual DINO adapter, even though the current GitHub training example for --visual dino offers a later adapter variant.

Download

python -m pip install "huggingface_hub>=0.34" safetensors
hf download long2333/MyoBridge --local-dir MyoBridge
cd MyoBridge
python -m pip install -r requirements.txt

To download only one checkpoint and the small shared resources:

from huggingface_hub import snapshot_download

snapshot_download(
    repo_id="long2333/MyoBridge",
    local_dir="MyoBridge",
    allow_patterns=[
        "wilor/ct/*", "assets/*", "code/*", "code/**/*",
        "load_model.py", "evaluate_model.py", "requirements.txt",
        "README.md", "LICENSES.md", "release_manifest.json",
    ],
)

Licensed MANO setup

Obtain the official right-hand MANO model from MANO under its own license. MANO model files and their geometry buffers are not redistributed here. Convert the model for inference:

python code/scripts/prepare_mano.py \
  --mano-model /your/licensed/mano/models/MANO_RIGHT.pkl \
  --out /your/licensed/mano_geometry.npz

Use the same MANO model version and conventions as your data preparation. See the code's MANO validation and the partition file for the expected 778-vertex / 21-joint layout. The decoder's MANO geometry is distinct from the absent WiLoR input pose/shape prior.

Load and infer

python load_model.py --variant wilor --protocol ct \
  --mano /your/licensed/mano_geometry.npz
import json
import torch
from load_model import load_model

model = load_model(
    root=".", variant="wilor", protocol="ct",
    mano_path="/your/licensed/mano_geometry.npz", device="cuda",
)
normalization = json.load(open("wilor/ct/normalization.json"))
mean = torch.tensor(normalization["mean"], device="cuda")[None, :, None]
std = torch.tensor(normalization["std"], device="cuda")[None, :, None]

# emg_raw: float32 raw ADC windows [B,18,400], not already standardized.
# tokens: frozen WiLoR tokens [B,13,1280]; is_left: bool [B].
with torch.inference_mode():
    prediction = model(
        emg=(emg_raw.to("cuda").float() - mean) / std,
        wtok=tokens.to("cuda"), is_left=is_left.to("cuda"),
    )

For DINO, use variant="dino" and supply dino=tokens of shape [B,34,768] instead of wtok. Use each protocol's own normalization file and cached feature convention; do not normalize an EMG window twice. Outputs include wrist-relative joints/mesh in metres, regional and vertex contact probabilities, and regional/vertex force estimates. Force units are estimated, uncalibrated N as in the evaluation convention; do not treat them as calibrated sensor measurements.

Dataset and evaluation

Raw recordings, corrected pressure annotations, protocol definitions, and frozen vision-feature archives are available in EgoMyo. Follow the code documentation to restore cached features, convert raw data to model-ready targets, and prepare frame mappings. vision_feature/ contains egocentric input features; the separate external_video/ is not an input to these models.

The evaluation entry point expects the model-ready layout used by the released GitHub reader: membership.json, targets/<trial_id>.npz, and features/{dino,wilor}/<trial_id>.npy. It does not consume unextracted raw archives directly.

python evaluate_model.py --variant wilor --protocol ct \
  --data /data/egomyo_model_ready \
  --mano /your/licensed/mano_geometry.npz \
  --batch 128 --workers 2 --out /data/results/wilor_ct_seed0

Change --variant and --protocol for the other five checkpoints. The script uses the bundled final split and original TRAIN normalization. test_metrics.json stores the historical complete-TEST result associated with the original checkpoint SHA-256. The validation reports here are inference portability checks, not a newly repeated complete-TEST benchmark or three-seed mean.

Visual backbone pretrained parameters

  • DINOv2: dino/pretrained/dinov2_vitb14_reg4_pretrain.pth is the original unmodified frozen checkpoint used for these DINO features. Its Apache-2.0 license, upstream model card and SHA-256 provenance are included.
  • WiLoR: the official wilor_final.ckpt embeds MANO geometry subject to separate terms, and WiLoR models are CC-BY-NC-ND-4.0. Therefore this repository does not mirror the complete checkpoint or publish a modified/stripped derivative of it. wilor/pretrained/upstream.json supplies the exact original URLs, file sizes and SHA-256 values for both WiLoR and its detector. After reviewing and accepting the WiLoR, MANO and detector licenses, download directly from the official source:
python fetch_wilor_pretrained.py --accept-upstream-licenses \
  --output /your/licensed/WiLoR/pretrained_models

The original WiLoR model config is included in wilor/pretrained/model_config.yaml. Its YAML paths are upstream defaults; point them to your own licensed MANO installation when setting up WiLoR. The official checkpoint contains a pose/shape head for WiLoR inference; the MyoBridge WiLoR model does not take that head's predicted pose or shape as input.

Frozen public feature caches allow MyoBridge inference without running a visual backbone again. Original-video feature extraction still requires the corresponding third-party installation and licensed assets; see the GitHub feature-extraction documentation. Pretrained WiLoR weights are upstream dependencies, not MyoBridge task checkpoints.

Validation and limitations

All six source checkpoints were verified against the archived formal-model SHA-256 registry. Exported tensor values were checked exactly against the original states. The DINO loader was compared with each original historical graph on fixed CPU FP32 inputs; the WiLoR loader was compared against previously archived fixed-trial CPU FP32 reference predictions for CT/CS/XS (32 frames each). Reports include numerical errors and tolerances. No retraining, new seed selection, or full TEST reevaluation was performed for this publication.

These are research models with dataset-specific temporal, hand-topology, force, and synchronization conventions. Predictions may be inaccurate outside the recorded setting. Check modality timestamps before combining raw inputs; shared trial IDs do not establish frame-level synchronization. They are not validated for medical or safety-critical use.

Attribution and licensing

See LICENSES.md for per-component licensing and upstream attribution. This repository does not assign a blanket license that overrides DINOv2, WiLoR, MANO, detector, or other third-party terms. For MyoBridge-specific licensing beyond permissions already granted by the authors, contact the authors through the project/code repository.

Paper: arXiv:2611.34224. Please cite the paper and the applicable DINOv2/WiLoR upstream works when using these models.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Dataset used to train long2333/MyoBridge

Paper for long2333/MyoBridge