Code Monkey home page Code Monkey logo

unet-rgb's Introduction

unet-rgb

Keras(TF backend) implementation of unet for RGB pictures.


Overview

Requirement

  • OpenCV
  • Python 2.7
  • Tensorflow-gpu
  • Keras

Data

You can download all data here:https://pan.baidu.com/s/1WqmR-9jodyyUnLRCK6pcVw password: 533h

CamVid Data:https://github.com/preddy5/segnet/tree/master/CamVid

Howtouse

  • extract downloaded data to corresponding directories
  • run python data.py to generate 3 .npy files or you can download them to npydata
  • run python unet.py to train, you can change hyperparameters on your own situation
  • run python test2mask2pic.py to get test results(pictures)

Results

After training about 30 epochs, loss goes to about 0.005.The results seems OK! But the edges look a bit rough. I think that is Unet's own limitation.

img/0test.jpg

img/0label.jpg

Camvid

  • run python data_camvid.py
  • run python unet_camvid.py
  • run python predict_camvid.py

After 50 epochs training, loss goes to about 4e-04 and acc is 0.9644.

img/1test.png img/1label.png

About

Unet is mostly used in medical areas. I used this model for semantic segmentation of satellite remote sensing images in real work and the result is not bad. I think one of the reason is that it's a coarse-grained task like medical image analysis. Of course, enough labeled images are necessary.

Reference

https://github.com/zhixuhao/unet

unet-rgb's People

Contributors

shawda avatar

Watchers

Zhifei Xu avatar

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.