← Open Source
zhixuhao

unet

unet for image segmentation.

Model DevelopmentArchitectureJupyter Notebook
Open on GitHub
Momentum
+0stars in 24 hours0.0%
4.94k
Stars
2.00k
Forks
+-3
This week
1
Contributors
Created 2017-04-06 · Updated 2026-10-15 · #7485 today
Top developers
zhixuhao

zhixuhao/unet is ranked 7,485 with 4,938 stars.

Same-category comparison

zhixuhao/unet is ranked 7,485 among these 8 peers; qubvel/segmentation_models is ranked 7,487.

Same-category comparison
NameRankMetrics
affinelayer/pix2pix-tensorflow7,462
Language:
JavaScript
Stars:
5,077
Forks:
1,279
Description:
Tensorflow port of Image-to-Image Translation with Conditional Adversarial Nets https://phillipi.github.io/pix2pix/.
Deci-AI/super-gradients7,463
Language:
Jupyter Notebook
Stars:
5,073
Forks:
590
Description:
Easily train or fine-tune SOTA computer vision models with one open source training library. The home of Yolo-NAS.
sktime/pytorch-forecasting7,474
Language:
Python
Stars:
5,001
Forks:
927
Description:
Time series forecasting with PyTorch.
togethercomputer/RedPajama-Data7,476
Language:
Python
Stars:
4,994
Forks:
374
Description:
The RedPajama-Data repository contains code for preparing large datasets for training large language models.
qubvel/segmentation_models7,487
Language:
Python
Stars:
4,923
Forks:
1,038
Description:
Segmentation models with pretrained backbones. Keras and TensorFlow Keras.
minimaxir/textgenrnn7,489
Language:
Python
Stars:
4,918
Forks:
728
Description:
Easily train your own text-generating neural network of any size and complexity on any text dataset with a few lines of code.
macanv/BERT-BiLSTM-CRF-NER7,495
Language:
Python
Stars:
4,908
Forks:
1,236
Description:
Tensorflow solution of NER task Using BiLSTM-CRF model with Google BERT Fine-tuning And private Server services.
PaddlePaddle/VisualDL7,503
Language:
HTML
Stars:
4,879
Forks:
631
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageJupyter Notebook
CategoryModel Development
SubcategoryArchitecture
Stars4,938
Forks1,998
Contributors1
Created date2017-04-06
Updated date2026-10-15
Stars in 1 day0
Stars in 7 days-3
Rank7,485
Previous rank19,181
Rank change11,696
7-day stars rank18,560
Previous 7-day stars rank18,494
7-day stars rank change-66
Total stars rank2,841
Previous total stars rank2,836
Total stars rank change-5
CountryChina
README summary

You can find it in folder data/membrane. Data augmentation The data for training contains 30 512*512 images, which are far not enough to feed a deep learning neural network. I use a module called ImageDataGenerator in keras. Model This deep neural network is implemented with Keras functional API, which makes it extremely easy to experiment with different interesting architectures. Output from the network is a 512*512 which represents mask that should be learned. Sigmoid activation function makes

sure that mask pixels are in \[0, 1\] range. Training The model is trained for 5 epochs. After 5 epochs, calculated accuracy is about 0. Loss function for the training is basically just a binary crossentropy. 0 Also, this code should be compatible with Python versions 2. py You will see the predicted results of test image in data/membrane/test Or follow notebook trainUnet Results Use the trained model to do segmentation on test images, the result is statisfactory

. About Keras Keras is a minimalist, highly modular neural networks library, written in Python and capable of running on top of either TensorFlow or Theano. It was developed with a focus on enabling fast experimentation. Being able to go from idea to result with the least possible delay is key to doing good research. Use Keras if you need a deep learning library that: allows for easy and fast prototyping (through total modularity, minimalism, and extensibility). supports both convolutional networks

and recurrent networks, as well as combinations of the two. supports arbitrary connectivity schemes (including multi-input and multi-output training).

Frequently asked questions

How many stars and forks are recorded?

zhixuhao/unet has 4,938 stars and 1,998 forks.

What is the repository rank?

zhixuhao/unet is ranked 7,485.

What language and category are recorded?

zhixuhao/unet has 4,938 stars, uses Jupyter Notebook and belongs to Model Development.

Which repository is closest in rank?

zhixuhao/unet is compared with qubvel/segmentation_models, ranked 7,487 with 4,923 stars.

README

Implementation of deep learning framework -- Unet, using Keras

The architecture was inspired by U-Net: Convolutional Networks for Biomedical Image Segmentation.


Overview

Data

The original dataset is from isbi challenge, and I've downloaded it and done the pre-processing.

You can find it in folder data/membrane.

Data augmentation

The data for training contains 30 512*512 images, which are far not enough to feed a deep learning neural network. I use a module called ImageDataGenerator in keras.preprocessing.image to do data augmentation.

See dataPrepare.ipynb and data.py for detail.

Model

This deep neural network is implemented with Keras functional API, which makes it extremely easy to experiment with different interesting architectures.

Output from the network is a 512*512 which represents mask that should be learned. Sigmoid activation function makes sure that mask pixels are in [0, 1] range.

Training

The model is trained for 5 epochs.

After 5 epochs, calculated accuracy is about 0.97.

Loss function for the training is basically just a binary crossentropy.


How to use

Dependencies

This tutorial depends on the following libraries:

  • Tensorflow
  • Keras >= 1.0

Also, this code should be compatible with Python versions 2.7-3.5.

Run main.py

You will see the predicted results of test image in data/membrane/test

Or follow notebook trainUnet

Results

Use the trained model to do segmentation on test images, the result is statisfactory.

About Keras

Keras is a minimalist, highly modular neural networks library, written in Python and capable of running on top of either TensorFlow or Theano. It was developed with a focus on enabling fast experimentation. Being able to go from idea to result with the least possible delay is key to doing good research.

Use Keras if you need a deep learning library that:

allows for easy and fast prototyping (through total modularity, minimalism, and extensibility). supports both convolutional networks and recurrent networks, as well as combinations of the two. supports arbitrary connectivity schemes (including multi-input and multi-output training). runs seamlessly on CPU and GPU. Read the documentation Keras.io

Keras is compatible with: Python 2.7-3.5.

Nearby in the ranking
Similar items