cocy/NCT-CRC-HE-100K
Updated • 9
How to use hillmancancercenterds/MuCTaL with fastai:
from huggingface_hub import from_pretrained_fastai
learn = from_pretrained_fastai("hillmancancercenterds/MuCTaL")Multi-cancer tile classifier. Predict tumor / not-tumor from 224px H&E stain normalized tiles. Ues acral MEL, HCC, Lung and CRC Lung: Kaggle. CRC: [Zenodo] (https://zenodo.org/records/1214456)
from fastai.vision.all import *
model_fn = 'full_model.pkl'
learn = load_learner(model_fn, cpu = False)
dl = learn.dls.test_dl(valid_df.loc[:,'fn'] ) #valid_df is dataframe of 224 x 224 px H&E tile file names ('fn')
pred = learn.get_preds(dl=dl, with_decoded=True)
https://github.com/HCC-data-sciences/pancancer_he_classifier/blob/main/06_acral_tile_heatmap_class_viz.ipynb
This model is for research use only. Not to be used in a clinical or patient diagnostic setting.
Base model
smp-hub/densenet169.imagenet