Git Product home page Git Product logo

heart-volume-estimation's Introduction

Paper link: https://arxiv.org/abs/1702.03833

please cite the paper if you find this project useful for your research

OS: linux

Hardware: NVIDIA GPU required

3rd-party software: CUDA, caffe, opencv, theano, lasagne, matlab, and other dependencies required by them. We use the bleeding edge edition of theano, lasagne and caffe.

HOW TO TRAIN

Firstly, specify the path to target folder in SETTINGS.json:

  1. IN_TRAIN_DATA_PATH, path to train folder, please put in it raw folder
  2. IN_VALIDATE_DATA_PATH, path to validate folder, please put it in raw folder
  3. OUT_TRAIN_DATA_PATH, path to which the preprocess results of train folder are stored, please put it in clean folder
  4. OUT_VALIDATE_DATA_PATH, path to which the preprocess results of validate folder are stored, please put it in clean floder
  5. TRAIN_LABEL_PATH, path to train.csv, in which the number of rows should equal to the numpy of subfolders of IN_TRAIN_DATA_PATH
  6. VAL_LABEL_PATH, path to validate.csv
  7. FUSION_SNAPSHOT_PATH, path to model snapshot, please do not modify this

This algorithm includes two stages, the first one is detecting the heart area, which requires opencv, matlab and caffe. The parameters are already stored in folder /stage1, to re-train those parameters by your own, please refer to the README.md in stage1. The output of this stage is a stack of images at per frame, and stored in disk.

The second stage is computing volume out of a patch stack. It is an ensamble consists of 6 models. Each model is packaged by an adaptor class in directory fusion(fcn1, fcn2...). Our auto-learning procedure learning the weight of each model in ensamble. And it will automatically gives the submit result.

Then, run python train.py

How to predict

  1. IN_TEST_DATA_PATH, path to test folder
  2. OUT_TEST_DATA_PATH, path to which the preprocess results of test folder are stored
  3. SUBMIT_PATH, path to save the submit csv file

Place the new test data in IN_TEST_DATA_PATH, also specify OUT_TEST_DATA_PATH and SUBMIT_PATH

Then, run python predict.py

heart-volume-estimation's People

Contributors

lfz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

heart-volume-estimation's Issues

could you provide the dataset?

hi ,thanks for your share,now I am using the second-annual-data-science-bowl dataset like you,could you provide me the dataset and the code used for it? I am still a student at UESTC,china.if you can,thanks so such

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.