USF-MAE models
Collection
USF-MAE: ... ultrasound foundation model (arXiv:2510.22990), https://github.com/Yusufii9/USF-MAE • 2 items • Updated
How to use 1aurent/vit_base_patch16_224.usfmae with timm:
import timm
model = timm.create_model("hf-hub:1aurent/vit_base_patch16_224.usfmae", pretrained=True)The ViT-Base encoder of USF-MAE (Ultrasound Self-Supervised Foundation Model with Masked Autoencoding), ported to timm as an encoder-only feature extractor (num_classes=0). USF-MAE is a masked autoencoder (MAE) pretrained self-supervised on ~370,000 ultrasound images from 46 open-source datasets (OpenUS-46); only the encoder is kept here, the MAE decoder was used during pretraining only.
from urllib.request import urlopen
from PIL import Image
import timm
# get example image (any RGB ultrasound image works)
img = Image.open(
urlopen(
"https://github.com/Yusufii9/USF-MAE/raw/main/figures/USF-MAE.jpeg"
)
).convert("RGB")
# load model from the hub
model = timm.create_model(
model_name="hf-hub:1aurent/vit_base_patch16_224.usfmae",
pretrained=True,
).eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
data = transforms(img).unsqueeze(0) # input is a (batch_size, num_channels, img_size, img_size) shaped tensor
output = model(data) # output is a (batch_size, num_features=768) shaped tensor (cls-token embedding)
@article{MEGAHED2026110313,
author = {Youssef Megahed and Robin Ducharme and Aylin Erman and Mark C. Walker and Steven Hawken and Adrian D.C. Chan},
title = {USF-MAE: Ultrasound self-supervised foundation model with masked autoencoding},
journal = {Biomedical Signal Processing and Control},
volume = {122},
pages = {110313},
year = {2026},
issn = {1746-8094},
doi = {https://doi.org/10.1016/j.bspc.2026.110313},
url = {https://www.sciencedirect.com/science/article/pii/S1746809426008670}
}
@misc{megahed2025usfmae,
author = {Youssef Megahed and Robin Ducharme and Aylin Erman and Mark Walker and Steven Hawken and Adrian D. C. Chan},
title = {{USF-MAE}: Ultrasound Self-Supervised Foundation Model with Masked Autoencoding},
year = {2025},
eprint = {2510.22990},
archivePrefix = {arXiv},
doi = {10.48550/arXiv.2510.22990}
}