Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an implementation of UNET from this paper

U-Net: Convolutional Networks for Biomedical Image Segmentation the original author's code is here

the architecture of the network from original paper

image our changes:

1,the conv's padding is same,the paper is valid

2,the loss is the original binary_crossentropy,the paper is weighted binary_crossentropy

what you need

  • Tensorflow>1.2
pip install tensorflow-gpu
  • Keras >= 1.0
pip install keras
  • libtiff,can be download here,also we add it in libtiff-0.4.2.tar.gz
python2 setup.py install

how to begin

prepare data

the data is ISBI datasets,can be downloaded here

also we have added the dataset in the folder ISBI,there are three .tif

python2 split_merge_tif.py

then you will get images in data folder(30 train images and labels,30 test images)

training

python3 train_unet.py

finally,you will get train acc(%96.8+),val acc(%91+),val loss(0.2)

testing

python3 test_unet.py

references:

https://zhuanlan.zhihu.com/p/26659914

https://github.com/zhixuhao/unet

About

a unet structure for image segmentation implements Keras

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages