USF-MAE (ViT-Base): foundation for ultrasound image analysis
1 min readupdated
The model is a ViT-Base encoder (image processing model using attention mechanisms) trained via self-supervision (masked autoencoding) on roughly 370 thousand ultrasound images. It is built to extract high-quality features and embeddings from medical scans, aiding computer vision tasks in healthcare. Unlike standard general-purpose models, this one is optimized specifically for the quirks of ultrasound data. The release will appeal to researchers and medical software developers.
Key features
- Based on the ViT-Base architecture with an 85.8-million parameter count.
- Pre-trained on the OpenUS-46 dataset, which includes around 370K images.
- Uses the MAE self-supervised method with patch masking.
- Integrated into the timm library for easy use in Python.
What you can do
- Extract numeric embeddings from medical ultrasound scans for downstream classification.
- Build diagnostic classifiers and analytical systems on top of the extracted features.
- Conduct research in biomedical signal and image processing.
Example
from urllib.request import urlopen
from PIL import Image
import timm
img = Image.open(
urlopen(
"https://github.com/Yusufii9/USF-MAE/raw/main/figures/USF-MAE.jpeg"
)
).convert("RGB")
model = timm.create_model(
model_name="hf-hub:1aurent/vit_base_patch16_224.usfmae",
pretrained=True,
).eval()
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
data = transforms(img).unsqueeze(0)
output = model(data)
print(output.shape)
Read more
DetailsImage size: 224x224x3 with a 16x16 patch size
License: MIT
Training: 100 epochs based on ImageNet-21k weights
Output embedding size: 768 features










Comments