Code Monkey home page Code Monkey logo

unet-tensorflow's Introduction

Unet

Install Required Packages

First ensure that you have installed the following required packages:

Datasets

  • In this implementation of the Unet, we use Carvana Image Masking Challenge data.[download] We download train.zip and train_masks.zip. You can put all the datasets in datasets folder.
  • Run scripts/transform_images.py to transform all the image to gray JPEG image.
  • Run scripts/build_tfrecords.py to generate training data, data format is tfrecords.

Training and Testing Model

  • Run the following script to train the model, in the process of training, will save the training images every 500 steps. See the model/unet.py for details.
sh train.sh

You can change the arguments in train.sh depend on your machine config.

  • Run the following script to test the trained model. The test.sh will transform the datasets.
sh test.sh

The script will load the trained StarGAN model to generate the transformed images. You could change the arguments in test.sh depend on your machine config.

Downloading data/trained model

  • Pretrained model: [download]. The model-8500 is better.

unet-tensorflow's People

Contributors

lyatdawn avatar

Stargazers

wangjj 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.