Git Product home page Git Product logo

pytorch-cxr's Introduction

pytorch-cxr

Chest X-ray multi-labels binary classifications

Prerequisites

  • Python 3.6+
  • PyTorch 1.1.0+

Datasets

You need to resize and copy from the extracted original data. Modify {src,tar}_path at the end of dataset.py properly for your environment.

$ python dataset.py

Training

If no --cuda <comma-separated gpu-ids> given, cpus will be used for training. If no distributed environment, the first cuda id is used for the training and the others are ignored.

$ python train.py --cuda <comma-separated gpu-ids> --runtime-dir <your-runtime-dir> [--tensorboard] [--slack]

If you want to run in distributed mode, please refer to here.

$ python -m torch.distributed.launch --nproc_per_node=<NUM_GPUS_YOU_HAVE> train.py --cuda <gpu-ids> --runtime-dir <runtime-dir> [any optinal switches]

or using the train.sh with proper modification of node id etc.

if you want to log to slack, add .slack file in yaml format:

token: <your bot-slack-app token>
recipients: <list of log message recipients username>

Prediction

$ python predict.py <study-dir-to-be-predicted>

pytorch-cxr's People

Contributors

jinserk avatar

Watchers

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