Coder Social home page Coder Social logo

junqiangchen / vnet3d Goto Github PK

View Code? Open in Web Editor NEW
128.0 4.0 46.0 9.79 MB

Prostate MR Image Segmentation 2012

Home Page: https://promise12.grand-challenge.org/

License: MIT License

Python 100.00%
medical-imaging vnet3d tensorflow mri-images prostate loss image-segmentation miccai-grand-challenge segmentation vnet

vnet3d's Introduction

ImageSegmentation With Vnet3D

This is an example of the prostate in transversal T2-weighted MR images Segment from MICCAI Grand Challenge:Prostate MR Image Segmentation 2012

Prerequisities

The following dependencies are needed:

  • numpy >= 1.11.1
  • SimpleITK >=1.0.1
  • opencv-python >=3.3.0
  • tensorflow-gpu ==1.8.0
  • pandas >=0.20.1
  • scikit-learn >= 0.17.1

How to Use

(re)implemented the model with tensorflow in the paper of "Milletari, F., Navab, N., & Ahmadi, S. A. (2016) V-net: Fully convolutional neural networks for volumetric medical image segmentation.3DV 2016"

1、download trained data,download dataset:https://promise12.grand-challenge.org/download/ ,if you can't download it,i have shared it:https://pan.baidu.com/s/1y9YAAQKdD3OMOMyamx9MdA, password:whbf

2、the file of promise12Vnet3dImage.csv,is like this format: D:\Data\PROMISE2012\Vnet3d_data\Vnet3d_patch_train\image/0_10 D:\Data\PROMISE2012\Vnet3d_data\Vnet3d_patch_train\image/0_11 D:\Data\PROMISE2012\Vnet3d_data\Vnet3d_patch_train\image/0_12 ...... if you trained data path is not D:\Data\PROMISE2012,you should change the csv file path just like this:using C:\Data\ replace D:\Data\PROMISE2012.

3、when data is prepared,just run the vnet3d_train_predict.py

4、training the model on the GTX1080,it take 40 hours,and i also attach the trained model in the project,you also just use the vnet3d_train_predict.py file to predict,and get the segmentation result.

5、download trained model:https://pan.baidu.com/s/1kQ1SCVuBK6xJFR7cyKN7XQ password:0ytv

6、download test data: https://pan.baidu.com/s/1pDCQzTxUmyYdwDinBJKTuA, password:s0jt

Result

MICCAI Grand Challenge Result

the trained loss result the Vnet3D model the trained process:0 epoch——GTMask and PredictMask 1000 epoch——GTMask and PredictMask 10000 epoch——GTMask and PredictMask the predict result

Contact

vnet3d's People

Contributors

junqiangchen avatar kevin369ml avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vnet3d's Issues

請教影像前處理

請問如何產生Vnet3d_patch_train目錄下的前處理後的影像? 可否分享產生前處理圖檔的代碼?

prepared data

Hi, Junqiang. I can't find the the prepared data on the Baidu cloud. How can i download the prepared data. Just like you writed in the readme file.

关于代码中的epoch

请问代码里问什么每个epoch只进行一次取_next_batch操作呢?理论上一个epoch是不是该走完所有的training examples?我可以该将代码里的一个epoch理解为一个iteration?

About Train and test data.

Hello, dear Mr. @junqiangchen
I saw your train and mask data is csv format.
However, in my case, I have dozens of 3D data which is nii.gz format.
They can convert to h5 file. But I don't know how to read it into vnet model.
And in your case, why do you use csv format?
And in csv file, why the content is paths of images? but not 3D data?
Any way, I wonder how to read 3D data into models, could you give me some hints?
Thank you!

Different between .pd and .ckpt format model file?

Hi,

I am a little confused about the pd format model files. Could you please teach me the difference between:
modelname.pd.meta/index/data-00000-of-00001
and
modelname.ckpt.meta/index/data-00000-of-00001
?
Thanks.

Best,

pengbol

Downloading from pan.baidu

Hi, downloading the data you uploaded on pan.baidu is not easy for people living outside of China, It would be great if you could share it on Google drive. If that's not possible, could you tell how to modify the .csv files according to the official PROMSE12 dataset? Is there a particular folder structure to follow? Thanks in advance

how reproduce the files .csv to train the model

HI
thank you for your great work but i wanna ask you some questions:

1: I couldn't download the trained model, can you please send me drive link or Dropbox to download
2: for the files promise12Vnet3dImage.csv and promise12Vnet3dMask.csv, as i understand that you changed the dataset to image and then save it in csv file right? so for me I need to convert promise12 to images and then create these two files or just use your files for training and convert the test data to test the model.
Please le know because i meet a lot of error and i am new in this domain.

thank you in advance

训练数据咨询

您好,感谢您的分享,请问您可以分享一下自己的转为bmp后的训练数据吗?
或者介绍下您的数据准备过程,从而有章可循。非常感谢

请教

你好,我目前的dice很高,但是distance那两项分数非常低,能问一下这造成的原因以及解决的办法吗.

关于测试数据

你好,请问能提供一下用于测试的数据吗?promise12官网的链接跳转到dropbox后死活下载不了了....感谢!
另外想请问一下,你是把每一堆样本都随机取了18-21个左右的patch吗?谢谢!

数据集处理

您是不是遗漏了数据集的处理过程,2012数据集是.mhd,您这训练过程变成bmp...

关于数据集处理

首先,非常感谢你们的工作!
有几个小问题想请教:

  1. 原始数据的每个volume的depth不尽相同,从47到17不等,而您的patch数据集的每个batch的depth都是
    64,请问您是具体如何处理,生成数据集的?
    2.关于数据预处理:您具体采用了什么数据预处理和数据augmentation策略?
    非常感谢!
    @junqiangchen

关于训练自己数据

训练您的数据时,不会报错,想过也可以。但是当我训练自己的数据的时候,会报错ValueError: cannot reshape array of size 1 into shape (128,128,1)。我自己数据也是patch成(128,128,1)的bmp,但是仍然会报错。

关于标签

麻烦请问,你的前列腺数据的01标签是怎么从raw文件里面读取出来,我只能看到原始图像,还是说我忽略了什么问题,谢谢解答

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.