Coder Social home page Coder Social logo

gsket's Introduction

Knowledge Matters: Radiology Report Generation with General and Specific Knowledge

结合通用知识和特定知识的医学报告生成

Requirements

conda activate tencent

Data

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

  • IU dataset from here
  • MIMIC-CXR dataset from here
  • we also release the /data_auxiliary/iu file of the iu dataset which may needed in the preprocessing stage

Folder Structure

  • config : setup training arguments and data path
  • data : store IU and MIMIC dataset
  • misc : build general knowledge and specific knowledge
  • models: basic model and all our models
  • 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:

main_basic.py: basic model

main.py: model with knowledge

The values of all the hyperparameters can be found in the folder 'config'.

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

Example: python main.py --cfg config/iu_retrieval.yml --gpu 0 --version 1

Citation

Shuxin Yang, Xian Wu, Shen Ge, S. Kevin Zhou, Li Xiao, Knowledge Matters: Radiology Report Generation with General and Specific Knowledge. Medical Image Analysis,2022

Contact

If you have any problem with the code, please contact Shuxin Yang([email protected]) or Li Xiao([email protected]).

Thanks

Joseph Paul Cohen, Joseph D. Viviano, Paul Bertin, Paul Morrison, Parsa Torabian, Matteo Guarrera, Matthew P Lungren, Akshay Chaudhari, Rupert Brooks, Mohammad Hashir, Hadrien Bertrand. TorchXRayVision: A library of chest X-ray datasets and models. Medical Imaging with Deep Learning. https://github.com/mlmed/torchxrayvision, 2020

gsket's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.