GithubHelp home page GithubHelp logo

radcap_project's Introduction

radcap_project

This is code for a project in medical school trying to automate descriptions of medical images. It is based on different implementations of the CNN-RNN design. Each implementation has one python file for the model, one file to prepare the data in batches, one file to train the network and one file to generate captions with the trained network. There is also code in the radcap_project/data_preprocessing/ folder for creating the vocabulary. The file radcap_bodypartsplit_data.json, which should by in the preproccessing folder, contains specific information for my dataset. Use your own datafile there instead and chance the code to read your data.

To train the network run the train file.

To generate captions run the caption-generation file, see below.

Implementations:

  1. The CNN-RNN from the paper "Show and tell" https://arxiv.org/abs/1411.4555

-File 1(the model): radcap_project/cnn_rnn_models/cnn_rnn_vinalys/

-File 2(dataprep): radcap_project/cnn_rnn_models/cnn_rnn_vinalys/dataHandler.py

-File 3(train): radcap_project/train.py

-File 4(generate captions): radcap_project/sample.py

  1. An attempt to improve this with visual attention https://arxiv.org/abs/1502.03044

-File 1(the model): radcap_project/cnn_rnn_models/cnn_rnn_xu/model_cnnrnn_attention_sgrvinod.py

-File 2(dataprep): radcap_project/cnn_rnn_models/cnn_rnn_xu/dataHandlerAttention.py

-File 3(train): radcap_project/train_attention.py

-File 4(generate captions): radcap_project/caption_beam.py

  1. The design proposed in the paper "On the Automatic Generation of Medical Imaging Reports"https://arxiv.org/abs/1711.08195

-File 1(the model): radcap_project/cnn_rnn_models/cnn_rnn_hierarchical/model_hierarchical.py

-File 2(dataprep): radcap_project/cnn_rnn_models/cnn_rnn_hierarchical/dataHandlerHierarchical.py

-File 3(train): radcap_project/train_hierarchical.py

-File 4(generate captions): radcap_project/caption_beam_hierarchical.py

For questions you can contact me at: [email protected]

radcap_project's People

Contributors

pillercottrer avatar

Watchers

 avatar

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.