Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages