Giter Site home page Giter Site logo

rcf-keras's Introduction

RCF-keras

A keras implementation of RCF(Richer Convolutional Features for Edge Detection) for image edge detection.

Created by Yuxin Mao, if you have any problem in using it, please contact: [email protected]

The backbones of this task now is VGG16, ResNet and ResNeXt. Maybe I will give a DenseNet and MobileNet implementation. And I implement the network structure in paper "Learning to Predict Crisp Boundaries"

To do list

  • VGG16 backbone
  • ResNet backbone
  • ResNeXt backbone
  • DenseNet backbone
  • MobileNet backbone
  • implementation of paper Learning to Predict Crisp Boundaries
  • Evaluation function of ODS F-score

A new implementation of paper [Learning to Predict Crisp Boundaries]!!

I implemented the edge detection model structure in the paper "Learning to Predict Crisp Boundaries"(For the convenience of description, I named it "PCB"). The main idea of the structure in the paper is to add a refinement module based on ResNeXt block, and the backbone of this paper is also VGG16. However, I have not implemented the loss function in this paper for the time being. The implementation and optimization of the loss function will be completed in the follow-up work.

What's more, I got a new idea from the "PCB" structure. Maybe I can fuse the idea of RCF and "PCB", which means combine the features of each layer of convolution in the PCB and fuse them. This experiment will also be completed in the follow-up work.

Train

For BSDS500 dataset, you can run the file 'data_generate_forBSD.py' for generate '.npy' files for train and validation. What you need to pay attention to is to modify the path of your data set.

Then you can run 'train.py' for train RCF series models, if you want to train "PCB" model, you can run 'train_PCB.py'. The reason for the difference between the two files is that RCF combines the features of multiple convolutional layers, but the PCB uses only one.

Model

Limited by my pool GPU memory(I just have singel Nvidia 940 GPU), I don't have enough computing power to train this model completely. So the following pre-train models maybe not get a good performance while testing and visualizing.

Download the pre-trained vgg-RCF model in BaiduNetDisk

Download the pre-trained "PCB" model in BaiduNetDiskpassword:e6l1 vgg model struct

Related Projects

RCF-pytorch

Keras-HED

rcf-keras's People

Contributors

fupiao1998 avatar

Watchers

James Cloos 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.