Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.47 KB

File metadata and controls

44 lines (30 loc) · 1.47 KB

Clinically Accurate Chest X-Ray Report Generation

PyTorch Implementation of Clinically Accurate Chest X-Ray Report Generation Paper

Implementation based on the following repos:

  1. https://github.com/fawazsammani/knowing-when-to-look-adaptive-attention
  2. https://github.com/ZexinYan/Medical-Report-Generation
  3. https://github.com/ZexinYan/im2p-pytorch

Getting Started

  1. Install dependencies using conda environment file env.yml

  2. Download images and reports from https://openi.nlm.nih.gov/faq

  3. Edit in preprocessing.py the following line to point to your data:

ImagesReports('./data/nlm/images', './data/nlm/reports', device=device, transform=preprocess)
  1. Train: python training.py

To Do

  • Add pretrained embedder to word decoder (*pretrained on existing data)
  • Add loss functions
  • word encoder should output a vector representing hot encoding of word
  • refactor decoder into sentenceRNN and wordRNN
  • clean up code names
  • create clean env
  • no teacher forcing implementation wordRNN
  • add validation section
  • add testing section
  • reinforcement learning section
  • change to receive arguments from commandline

Thoughts

  • in training, should loss function look at embedding instead of hot encoding for error?

Acknowledgements

This repo would not have been possible without the help and support of Alex Dela Cruz