Model reference · open weights
resnet50.tcga_brca_simclr is an open-weight embedding model from 1aurent. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | 1aurent |
|---|---|
| Type | Embedding models |
| Task | Embeddings |
| Parameters (lead) | 24M |
| Runs with | timm |
| Released | 2023-10-28 |
| Popularity | 642 downloads / month |
| Licence | Open, with conditions |
About
A ResNet50 image classification model.
Trained on 2M histology patches from TCGA-BRCA.
from urllib.request import urlopen
from PIL import Image
import timm
# get example histology image
img = Image.open(
urlopen(
"https://github.com/owkin/HistoSSLscaling/raw/main/assets/example.tif"
)
)
# load model from the hub
model = timm.create_model(
model_name="hf-hub:1aurent/resnet50.tcga_brca_simclr",
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)
output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor
@misc{chen2022selfsupervised,
title = {Self-Supervised Vision Transformers Learn Visual Concepts in Histopathology},
author = {Richard J. Chen and Rahul G. Krishnan},
year = {2022},
eprint = {2203.00585},
archiveprefix = {arXiv},
primaryclass = {cs.CV}
}
From the published model card. Full card on the HuggingFace links in the sidebar.
How it works
Benchmarks
As published on the model card — the maker's own numbers, not measured by AxForge.
| Task | Dataset | Metric | Score |
|---|---|---|---|
| Image Classification | TCGA-BRCA | AUC |
Using it via the API
Once AxForge deploys resnet50-tcga-brca-simclr for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (resnet50-tcga-brca-simclr below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/embeddings \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"resnet50-tcga-brca-simclr","input":"text to embed"}'
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.