资源算法UNet-in-Tensorflow

UNet-in-Tensorflow

2020-01-14 | |  49 |   0 |   0

U-Net Implementation in TensorFlow

output.gif

Re implementation of U-Net in Tensorflow

  • to check how image segmentations can be used for detection problems

Original Paper

Summary

Vehicle Detection using U-Net

Objective: detect vehicles Find a function f such that y = f(X)

图片.png

Loss function: maximize IOU

    (intersection of prediction & grount truth)
    -------------------------------------------
    (union of prediction & ground truth)

Examples on Test Data: trained for 3 epochs

图片.png

图片.png

Get Started

Download dataset

  • the annotated driving dataset is provided by Udacity

  • In total, 9,423 frames with 65,000 labels at 1920x1200 resolution.

make download

Resize image and generate mask images

make generate

Train Test Split

Make sure masks and bounding boxes

jupyter notebook "Visualization & Train Test Split.ipynb"

Train

# Train for 1 epochpython train.py

or

$ python train.py --help
usage: train.py [-h] [--epochs EPOCHS] [--batch-size BATCH_SIZE]
                [--logdir LOGDIR] [--reg REG] [--ckdir CKDIR]

optional arguments:
  -h, --help            show this help message and exit
  --epochs EPOCHS       Number of epochs (default: 1)
  --batch-size BATCH_SIZE
                        Batch size (default: 4)
  --logdir LOGDIR       Tensorboard log directory (default: logdir)
  --reg REG             L2 Regularizer Term (default: 0.1)
  --ckdir CKDIR         Checkpoint directory (default: models)

Test

  • Open the Jupyter notebook file to run against test data

jupyter notebook "./Test Run After Training.ipynb"


上一篇:u-net-brain-tumor

下一篇:up-for-grabs.net

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...