Views
No views yet
| File | Description |
|---|---|
nlp/robertax1.0.pt | Fine-tuned RoBERTaX state dict (45-label classifier) |
nlp/pretrained/pytorch_model.bin | Pretrained RoBERTa base weights |
nlp/pretrained/config.json | Model configuration |
nlp/pretrained/vocab.json | Tokenizer vocabulary |
nlp/pretrained/merges.txt | BPE merges file |
1from huggingface_hub import snapshot_download
2
3snapshot_download(
4 repo_id="dnamodel/xraydar-nlp",
5 local_dir="./xraydar-nlp-weights"
6)1from huggingface_hub import hf_hub_download
2import shutil, os
3
4os.makedirs("src/model/robertax_pretrained", exist_ok=True)
5
6shutil.copy(
7 hf_hub_download("dnamodel/xraydar-nlp", "nlp/robertax1.0.pt"),
8 "src/model/robertax1.0.pt"
9)
10
11for f in ["pytorch_model.bin", "config.json", "vocab.json", "merges.txt"]:
12 shutil.copy(
13 hf_hub_download("dnamodel/xraydar-nlp", f"nlp/pretrained/{f}"),
14 f"src/model/robertax_pretrained/{f}"
15 )| # | Label | # | Label |
|---|---|---|---|
| 0 | abnormal_non_clinically_important | 23 | normal |
| 1 | aortic_calcification | 24 | object |
| 2 | apical_fibrosis | 25 | other |
| 3 | atelectasis | 26 | paraspinal_mass |
| 4 | axillary_abnormality | 27 | paratracheal_hilar_enlargement |
| 5 | bronchial_wall_thickening | 28 | parenchymal_lesion |
| 6 | bulla | 29 | pleural_abnormality |
| 7 | cardiomegaly | 30 | pleural_effusion |
| 8 | cavitating_lung_lesion | 31 | pneumomediastinum |
| 9 | clavicle_fracture | 32 | pneumoperitoneum |
| 10 | comparison | 33 | pneumothorax |
| 11 | consolidation | 34 | possible_diagnosis |
| 12 | coronary_calcification | 35 | recommendation |
| 13 | dextrocardia | 36 | rib_fracture |
| 14 | dilated_bowel | 37 | rib_lesion |
| 15 | emphysema | 38 | scoliosis |
| 16 | ground_glass_opacification | 39 | subcutaneous_emphysema |
| 17 | hemidiaphragm_elevated | 40 | technical_issue |
| 18 | hernia | 41 | undefined_sentence |
| 19 | hyperexpanded_lungs | 42 | unfolded_aorta |
| 20 | interstitial_shadowing | 43 | upper_lobe_blood_diversion |
| 21 | mediastinum_displaced | 44 | volume_loss |
| 22 | mediastinum_widened |
1@article{cid2024development,
2 title={Development and validation of open-source deep neural networks for comprehensive chest x-ray reading: a retrospective, multicentre study},
3 author={Cid, Yan Digilov and Macpherson, Matt and others},
4 journal={The Lancet Digital Health},
5 volume={6},
6 number={1},
7 pages={e44--e57},
8 year={2024},
9 publisher={Elsevier},
10 doi={10.1016/S2589-7500(23)00218-2}
11}