Giter Site home page Giter Site logo

deeplung's Introduction

Detection

This is a refine version of DeepLung repo with dependecies:

  • python 3.7
  • pytorch 1.10

Reference:

https://github.com/wentaozhu/DeepLung.git

https://github.com/uci-cbcl/DeepLung.git

Preprare data

  1. Download the luna16 data and put all them in folder luna16
  2. change path variable in file config_training.py and config_training9.py to your data folder. (change f variable in run_training.sh to choose another config file)
  3. run prepare.py to preproess all data.

Start running detection

  1. use the cmd
sh run_training.sh 

Done

  • torch version problem
  • data path
  • numpy version problem (1.21.5 with problem of np.asarray(metrics))

Classification

  • fix the error loading file with xlrd : /data/yangqinzhu/ctLung/DeepLung-master/nodcls/data/list3.2.csv

PrepareData

  1. change .dcm file name, such as 1-001.dcm to 0000001.dcm
  2. run ./nodcls/data/extclsshpinfo.py
  3. run /data/yangqinzhu/ctLung/DeepLung-master/nodcls/data/dataconverter.py to get file annotationdetclsconv_v3.csv
  4. run /data/yangqinzhu/ctLung/DeepLung-master/nodcls/data/nodclsgbt.py to generate folder /luna16/cls/crop_v3/

Train

  1. run main_nodcls.py to train the based classify model.(/data/yangqinzhu/ctLung/DeepLung-master/checkpoint-9/ckpt.t7)
  2. run bash run_test_getTrainData.sh to get pbb train data before runing file det2cls.py.
  3. run det2cls.py to train classify.
  4. run testdet2cls.py.

you can change the path as you need, I have listed them it front of the function in each python file

deeplung's People

Contributors

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