Giter VIP home page Giter VIP logo

3dfasterrcnn_lungnoduledetector's Introduction

网络定义

网络定义位于models/tianchi/VGG16/faster_rcnn_end2end/train.prototxt,同时定义了数据输入层,位于lib/roi_data_layer/layer.py,在setup函数指定了网络输入图像为batchsize*1*x*y*z的3D图像数据。

数据存放

数据存放在data/tianchi/data下面,Annotations和Images前缀分别代表标注文件和肺3D图。标注文件为_label后缀的npy文件,文件内容是二维数组如下

[[ 201.        ,  242.        ,  112.        ,    8.12129222],
[ 231.        ,  390.        ,  132.        ,    4.43397444]]

每一行的前三个为z,x,y坐标,第四个数字为大小
肺3D图片是mhd经过预处理之后的npy文件,以_clean为后缀,是1*x*y*z大小的4维数组
ImageSets文件夹是存放数据引用,在后续中会通过指定 imdb 来指定需要训练文件列表。比如存在一个训练数据为LKDS-00001,则Annotations_train下面有LKDS-00001_label.npy,Images文件夹下面有LKDS-00001_clean.npy,ImageSets/train.txt有一行为LKDS-00001

训练脚本

不使用pretrained_model
在tools文件夹下面执行

python -u train_net.py --solver ../models/tianchi/VGG16/faster_rcnn_end2end/solver.prototxt --imdb_train tianchi_train --imdb_val tianchi_val --iters 70000 --cfg ../experiments/cfgs/faster_rcnn_end2end.yml --rand

模型生成在output/faster_rcnn_end2end/tianchi_train下面
使用pretrained_model

python -u train_net.py --solver ../models/tianchi/VGG16/faster_rcnn_end2end/solver.prototxt --weights ../output/faster_rcnn_end2end/tianchi_train/tianchi_faster_rcnn_epoch_1083.caffemodel --imdb_train tianchi_train --imdb_val tianchi_val --iters 70000 --cfg ../experiments/cfgs/faster_rcnn_end2end.yml --rand

验证模型的脚本

遍历所有模型,计算在验证集的tnr和tpr。

python -u val_net.py --solver ../models/tianchi/VGG16/faster_rcnn_end2end/solver_val.prototxt --imdb_train tianchi_train --imdb_val tianchi_val --iters 70000 --cfg ../experiments/cfgs/faster_rcnn_end2end.yml --rand

对测试集detect

python -u test_net.py --def ../models/tianchi/VGG16/faster_rcnn_end2end/test.prototxt --net ../output/faster_rcnn_end2end/tianchi_faster_rcnn_iter_2204.caffemodel --imdb tianchi_test --cfg ../experiments/cfgs/faster_rcnn_end2end.yml --max_per_image 1

3dfasterrcnn_lungnoduledetector's People

Contributors

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