The tensorflow.keras implementations of U-net, U-net++, R2U-net, Attention U-net, ResUnet-a ,and U^2-Net.
Project description
keras-unet-collection
This repository contains tensorflow.keras implementations of U-net, U-net++, R2U-net, Attention U-net, ResUnet-a, U^2-Net:
keras_unet_collection.models |
Name | Reference |
|---|---|---|
unet_2d |
U-net/Unet | Ronneberger et al. (2015) |
unet_plus_2d |
U-net++/Unet++ | Zhou et al. (2018) |
r2_unet_2d |
R2U-Net | Alom et al. (2018) |
att_unet_2d |
Attention U-net | Oktay et al. (2018) |
resunet_a_2d |
ResUnet-a | Diakogiannis et al. (2020) |
u2net_2d |
U^-Net | Qin et al. (2020) |
These models are implemented with user-friendly hyper-parameter options and keywords, including network depth, hidden layer activations and batch normalization. User guide provided several examples.
Additional activation layers and loss functions are also provided:
keras_unet_collection.activations |
Name | Reference |
|---|---|---|
GELU |
Gaussian Error Linear Units (GELU) | Hendrycks et al. (2016) |
Snake |
Snake activation | Liu et al. (2020) |
keras_unet_collection.losses |
Name | Reference |
|---|---|---|
tversky |
Tversky loss | Hashemi et al. (2018) |
focal_tversky |
Focal Tversky loss | Abraham et al. (2019) |
crps2d_tf |
CRPS loss (experimental) |
Dependencies
-
TensorFlow 2.3.0
-
Keras 2.4.0
-
Numpy 1.18.2
Installation and usage
pip install keras-unet-collection
from keras_unet_collection import models
# e.g. models.unet_2d(...)
- Jupyter notebooks are provided as user guides.
Note: Because of the flexible hyper-parameter options, neural networks produced by this package may not be compatible with other pre-trained models of the same name/kind. Training from scratch is recommended.
Overview
U-net is a convolutional neural network with encoder-decoder architecture and skip-connections, loosely defined under the concept of "fully convolutional networks." U-net was originally proposed for the semantic segmentation of medical images and is modified for solving a wider range of gridded learning problems.
U-net and many of its variants take three or four-dimensional tensors as inputs and produce outputs of the same shape. One technical highlight of these models is the skip-connections from downsampling to upsampling layers, which benefit the reconstruction of high-resolution, gridded outputs.
Contact
Yingkai (Kyle) Sha yingkai@eoas.ubc.ca
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file keras-unet-collection-0.0.5.tar.gz.
File metadata
- Download URL: keras-unet-collection-0.0.5.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56e805f27357e17b765d49833dd66db297419bc80f6806ef3f03e19a7a152095
|
|
| MD5 |
333ebcd71821dc8347e9b408334828f7
|
|
| BLAKE2b-256 |
c016c4dafa508e1b57eaaca48d6175ec136a437ec37a941edd97f0282c8e2d19
|
File details
Details for the file keras_unet_collection-0.0.5-py3-none-any.whl.
File metadata
- Download URL: keras_unet_collection-0.0.5-py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6670c1c4102f6c69d89a29700490193abd248ba9ecdaba5060f8d7753f7169c
|
|
| MD5 |
52bff443f4b6a11423e346a78a8d1589
|
|
| BLAKE2b-256 |
ab8328475049ccaf082c8276a809ee2656b11346ff2c084db17dd1b1cbdd6b80
|