资源算法FCN-resnet101

FCN-resnet101

2020-02-21 | |  36 |   0 |   0

FCN-resnet101

This project uses resnet101 to extract features and do semantic segmentation. Program used tensorflow.

TODO

  •  Use resnet101 pretrained model

  •  Input can be in any size(just in the test and eval task)

  •  Data augmentation(only horizontal flip)

  •  Train on the PASCAL VOC2012 train data

  •  Evaluate in the PASCAL VOC2012 validate data

REQUIREMENTS

  • Tensorflow 1.1

  • Python 2.7.13 (I use anaconda2-4.3.1)

  • Pascal VOC2012 dataset

Train

  1. Put the tfrecord file into the ./data/ you can download from https://www.dropbox.com/s/rm46xxxswho9i8z/pascal_voc_segmentation.tfrecords?dl=0 (converted from the PASCAL VOC2012 train set)

  2. Put resnet101 pretrained model into ./data/pretrained_model/ you can download from https://www.dropbox.com/s/ehkniglsvbkotc9/resnet_v1_101.ckpt?dl=0

  3. Run train.py

  4. During the training, some test pictures will be generated in ./data/demo

Test

  1. You need to train the model first.

  2. Put your test pictures in the ./test/demo/ with the format ".jpg" or ".png"

  3. Run test.py

Eval

The eval pictures use PASCAL VOC2012 validation dataset ,so you can download them from the official website. (but you need to convert the segmentation pictures into the indexed pictures.) or you can just download from https://www.dropbox.com/s/7n0sr0m3b9u1ua5/VOC2012_val.zip?dl=0

  1. Put the JPEGImage folder into ./eval/VOC2012_val

  2. Put the Segmentation folder into ./eval/VOC2012_val

  3. Put the text.txt into ./eval/VOC2012_val

  4. Run eval.py

Results

On the Pascal Voc Evaluation Server2012

ClassesIoU Accuracy(%)
aeroplane39.89
bicycle12.33
bird17.44
boat20.65
bottle31.75
bus53.09
car42.74
cat39.52
chair4.50
cow10.25
diningtable13.39
dog30.72
horse21.71
motorbike44.96
person48.20
potted-plant16.15
sheep27.89
sofa19.56
train36.80
tv/monitor30.94
mean accuracy30.84


上一篇: tf_resnet_cifar

下一篇:resnet.torch

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

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

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

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