MCPcopy Index your code
hub / github.com/MediaBrain-SJTU/MedKLIP

github.com/MediaBrain-SJTU/MedKLIP @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
686 symbols 1,801 edges 93 files 188 documented · 27%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

MedKLIP: Medical Knowledge Enhanced Language-Image Pre-Training in Radiology

Introduction:

The official implementation code for "MedKLIP: Medical Knowledge Enhanced Language-Image Pre-Training in Radiology".

Paper Web

Arxiv Version

Quick Start:

Check checkpoints dir to download our pre-trained model. It can be used for all zero-shot && finetuning tasks

  • Zero-Shot Classification:

    We give an example on CXR14 in Sample_Zero-Shot_Classification_CXR14. Modify the path, and test our model by python test.py * Zero-Shot Grounding:

    We give an example on RSNA_Pneumonia in Sample_Zero-Shot_Grounding_RSNA. Modify the path, and test our model by python test.py * Finetuning:

    We give segmentation and classification finetune code on SIIM_ACR dataset in Sample_Finetuning_SIIMACR. Modify the path, and finetune our model by python I1_classification/train_res_ft.py or python I2_segementation/train_res_ft.py

Pre-train:

Our pre-train code is given in Train_MedKLIP. * Check the Train_MedKLIP\data_file dir and download the pre-processed data files. * Modify the path as you disire, and python PreTrain_MedKLIP\train_MedKLIP.py to pre-train.

Acknowledge

We borrow some pre-process codes from AGXnet

Citation

@article{wu2023medklip,
  title={MedKLIP: Medical Knowledge Enhanced Language-Image Pre-Training},
  author={Wu, Chaoyi and Zhang, Xiaoman and Zhang, Ya and Wang, Yanfeng and Xie, Weidi},
  journal={Proceedings of the IEEE/CVF International Conference on Computer Vision},
  year={2023}
}

Contact

If you have any question, please feel free to contact wtzxxxwcy02@sjtu.edu.cn.

Core symbols most depended-on inside this repo

print
called by 57
Sample_Finetuning_SIIMACR/I2_segmentation/utils.py
print
called by 28
PreTrain_MedKLIP/utils.py
update
called by 16
Sample_Finetuning_SIIMACR/I2_segmentation/utils.py
max
called by 14
Sample_Finetuning_SIIMACR/I2_segmentation/utils.py
update
called by 11
PreTrain_MedKLIP/utils.py
state_dict
called by 10
Sample_Finetuning_SIIMACR/I1_classification/optim/lookahead.py
state_dict
called by 10
Sample_Finetuning_SIIMACR/I2_segmentation/optim/lookahead.py
update_groups
called by 8
PreTrain_MedKLIP/scheduler/scheduler.py

Shape

Method 415
Function 180
Class 91

Languages

Python100%

Modules by API surface

Sample_Finetuning_SIIMACR/I2_segmentation/utils.py34 symbols
PreTrain_MedKLIP/utils.py31 symbols
Sample_zero-shot_Classification_CXR14/dataset/randaugment.py29 symbols
Sample_Finetuning_SIIMACR/I2_segmentation/dataset/randaugment.py29 symbols
Sample_Finetuning_SIIMACR/I1_classification/dataset/randaugment.py29 symbols
PreTrain_MedKLIP/dataset/randaugment.py29 symbols
Sample_zero-shot_Classification_CXR14/models/tokenization_bert.py26 symbols
Sample_Zero-Shot_Grounding_RSNA/models/tokenization_bert.py26 symbols
PreTrain_MedKLIP/models/tokenization_bert.py26 symbols
Sample_Finetuning_SIIMACR/I2_segmentation/models/resunet.py13 symbols
Sample_zero-shot_Classification_CXR14/models/transformer.py11 symbols
Sample_Zero-Shot_Grounding_RSNA/models/transformer.py11 symbols

For agents

$ claude mcp add MedKLIP \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact