Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/voinic/u2net-keras

Minimal scripts for testing U-2-Net models in Keras
https://github.com/voinic/u2net-keras

image-segmentation keras python-image-processing tensorflow u-2-net u2net

Last synced: 2 months ago
JSON representation

Minimal scripts for testing U-2-Net models in Keras

Awesome Lists containing this project

README

        

# u2net-keras
Simple scripts for testing U-2-Net models in Keras.

Based on https://github.com/NathanUA/U-2-Net and https://github.com/shreyas-bk/U-2-Net-Keras

Keras u2net, u2netp and u2net_portrait models were converted from the original pytorch models.

# Quick start
1. Clone this repo to local
```
git clone https://github.com/Voinic/u2net-keras.git
```
2. Get models from [**here**](https://drive.google.com/drive/folders/1oLFscPEoqxHIcRvNT80ps4XAH9ab5LH2)

3. Test u2net/u2netp (background substraction) models
```
python u2net-keras.py images/input.jpg images/output.png
```

4. Test u2net_portrait model
```
python u2net_portrait-keras.py images/input_portrait.jpg images/output_portrait.png
```

# Results
Background substraction model

![input](images/input.jpg)

![output](images/output.png)

Portrait creation model

![input_portrait](images/input_portrait.jpg)

![output_portrait](images/output_portrait.png)

# Known issues
- Dont work with tensorflow without CUDA support.