File size: 3,016 Bytes
12c4ac0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
tags:
- feature-extraction
- timm
- ultrasound
- medical-imaging
library_name: timm
license: apache-2.0
pipeline_tag: feature-extraction
---

# Model card for vit_tiny_patch16_224.tinyusfm

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](https://github.com/openmedlab/USFM).

This is a timm port of the official pretrained TinyUSFM encoder checkpoint released by the authors (Google Drive, see [original repo](https://github.com/MacDunno/TinyUSFM)).

![](https://github.com/MacDunno/TinyUSFM/raw/main/img/overview.png)

## Model Details

- **Model Type:** Feature backbone (encoder-only Vision Transformer, no classifier head)
- **Developed by**: Chen Ma, Jing Jiao, Shuyu Liang, Junhu Fu, Qin Wang, Zeju Li, Yuanyuan Wang, Yi Guo (Fudan University)
- **Model Stats:**
  - Params: 5.52M
  - Image size: 224 x 224 x 3
  - Patch size: 16 x 16 x 3
  - Embed dim: 192, depth: 12, heads: 12 (head dim 16), MLP ratio: 4, qkv bias: yes, LayerNorm eps 1e-6
- **Pre-training:**
  - Distilled from USFM (teacher) on ~200K curated ultrasound images (feature-gradient driven coreset selection) with domain-separated masked image modeling + consistency-driven dynamic distillation
  - Evaluated on UniUS-Bench (8 classification + 10 segmentation datasets, 15 organs)
- **Papers:**
  - [TinyUSFM: Towards Compact and Efficient Ultrasound Foundation Models](https://arxiv.org/abs/2510.19239) (IEEE JBHI 2026, DOI: 10.1109/JBHI.2026.3678309)
- **Original:** https://github.com/MacDunno/TinyUSFM
- **License:** Apache-2.0 (declared in the upstream README badge and License section; note: the LICENSE file itself is missing from the upstream repository)

## Model Usage

### Image Embeddings
```python
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
```

## Citation
```bibtex
@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}
}
```