Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.3 KB

File metadata and controls

40 lines (29 loc) · 1.3 KB

LGFM-Net: Local-Global Feature Mixing Network for Radiology Report Generation

Requirements

  • Python >= 3.6
  • Pytorch >= 1.7
  • torchvison

Data

Download IU X-Ray and MIMIC-CXR datasets, and place them in data folder.

  • IU X-Ray dataset is available from here
  • MIMIC-CXR dataset is available from here

Folder Structure

  • config : setup training arguments and data path
  • data : store IU and MIMIC dataset
  • models: our model
  • modules:
    • the layer define of our model
    • dataloader
    • loss function
    • metrics
    • tokenizer
    • some utils
  • preprocess: data preprocess
  • pycocoevalcap: Microsoft COCO Caption Evaluation Tools

Training & Testing

The source code for training can be found here:

Run main_train.py to train a model on the IU X-Ray data and MIMIC-CXR data.

Run main_test.py to test a model on the IU X-Ray data and MIMIC-CXR.

To run the command, you only need to specify the config file and the GPU ID and iteration version of the model to be used

Acknowledgement

We appreciate for all code providers, especially for R2GenCMN.