Git Product home page Git Product logo

chest-x-ray-report-generator's Introduction

Chest X-Ray Report Generator

This project is part of a task for the college where I study, so task-parts contains files that associated with that task, whishing that I would get the full mark ;). In general the base code doesn't have any special parts except that folder.

Installation

After cloning the repository, install the required packages in a virtual environment.

Next, download the datasets and checkpoints, as describe below.

Dataset

IU X-Ray

  1. Download the Chen et al. labels and the chest X-rays in png format for IU X-Ray from:
https://openi.nlm.nih.gov
  1. Place the files into dataset folder, such that their paths are dataset/reports and dataset/images.

Checkpoints

This approach uses CheXNet, and DenseNet121 as a CNN Encoder model. By default the CheXNet pretrained weights are located in weights folder.

Config

The model configurations for each task can be found in its config.py file.

Training and Evaluation

Training

Use the below command to train the model form a saved checkpoint or without a checkpoint.

python train.py

Evaluation

The model performance measure is based of the BLEU metric.

Feel free to change the performance measure metric in the check_accuracy method that is located in the eval.py file

Run the following command to calculate BLEU score.

python eval.py

chest-x-ray-report-generator's People

Contributors

abdallamohammed avatar

Stargazers

 avatar  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.