TinyUSFM models
Collection
TinyUSFM: a tiny ultrasound foundation model (arXiv:2510.19239, IEEE JBHI 2026), https://github.com/MacDunno/TinyUSFM • 2 items • Updated
How to use 1aurent/vit_tiny_patch16_224.tinyusfm with timm:
import timm
model = timm.create_model("hf-hub:1aurent/vit_tiny_patch16_224.tinyusfm", pretrained=True)TinyUSFM is a compact Vision Transformer (ViT) ultrasound foundation model, distilled from the large-scale USFM.
It keeps foundation-level representation ability with only 5.5M parameters and 2.16 GFLOPs, and was the official lightweight continuation of USFM.
This is a timm port of the official pretrained TinyUSFM encoder checkpoint released by the authors (Google Drive, see original repo).
from urllib.request import urlopen
from PIL import Image
import timm
# get example image
img = Image.open(
urlopen(
"https://github.com/MacDunno/TinyUSFM/raw/main/img/overview.png"
)
).convert("RGB")
# load model from the hub
model = timm.create_model(
model_name="hf-hub:1aurent/vit_tiny_patch16_224.tinyusfm",
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) shaped tensor
@article{tinyusfm,
author={Ma, Chen and Jiao, Jing and Liang, Shuyu and Fu, Junhu and Wang, Qin and Li, Zeju and Wang, Yuanyuan and Guo, Yi},
journal={IEEE Journal of Biomedical and Health Informatics},
title={TinyUSFM: Towards Compact and Efficient Ultrasound Foundation Models},
year={2026},
pages={1-14},
doi={10.1109/JBHI.2026.3678309}
}