Giter Site home page Giter Site logo

zeroicewang / ldf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from weijun88/ldf

0.0 0.0 0.0 5.24 MB

Codes for the CVPR2020 paper "Label Decoupling Framework for Salient Object Detection"

Home Page: https://arxiv.org/pdf/2008.11048.pdf

Python 74.16% MATLAB 25.84%

ldf's Introduction

by Jun Wei, Shuhui Wang, Zhe Wu, Chi Su, Qingming Huang, Qi Tian

Introduction

framework To get more accurate saliency maps, recent methods mainly focus on aggregating multi-level features from fully convolutional network (FCN) and introducing edge information as auxiliary supervision. Though remarkable progress has been achieved, we observe that the closer the pixel is to the edge, the more difficult it is to be predicted, because edge pixels have a very imbalance distribution. To address this problem, we propose a label decoupling framework (LDF) which consists of a label decoupling (LD) procedure and a feature interaction network (FIN). LD explicitly decomposes the original saliency map into body map and detail map, where body map concentrates on center areas of objects and detail map focuses on regions around edges. Detail map works better because it involves much more pixels than traditional edge supervision. Different from saliency map, body map discards edge pixels and only pays attention to center areas. This successfully avoids the distraction from edge pixels during training. Therefore, we employ two branches in FIN to deal with body map and detail map respectively. Feature interaction (FI) is designed to fuse the two complementary branches to predict the saliency map, which is then used to refine the two branches again. This iterative refinement is helpful for learning better representations and more precise saliency maps. Comprehensive experiments on six benchmark datasets demonstrate that LDF outperforms state-of-the-art approaches on different evaluation metrics.

Prerequisites

Clone repository

git clone https://github.com/weijun88/LDF.git
cd LDF/

Download dataset

Download the following datasets and unzip them into data folder

Training & Evaluation

  • If you want to train the model by yourself, please download the pretrained model into res folder
  • Split the ground truth into body map and detail map, which will be saved into data/DUTS/body-origin and data/DUTS/detail-origin
    python3 utils.py
  • Train the model and get the predicted body and detail maps, which will be saved into data/DUTS/body and data/DUTS/detail
    cd train-coarse/
    python3 train.py
    python3 test.py
  • Use above predicted maps to train the model again and predict final saliency maps, which will be saved into eval/maps/LDF folder.
    cd /train-fine/
    python3 train.py
    python3 test.py
  • Evaluate the predicted results.
    cd eval
    matlab
    main
  • Training twice is to get smoother body and detail maps, as shown in following figure visualize

Testing & Evaluate

  • If you just want to evaluate the performance of LDF without training, please download our trained model into train-fine/out folder
  • Predict the saliency maps
    cd train-fine
    python3 test.py
  • Evaluate the predicted results
    cd eval
    matlab
    main

Saliency maps & Trained model

Citation

  • If you find this work is helpful, please cite our paper
@InProceedings{CVPR2020_LDF,
    author    = {Wei, Jun and Wang, Shuhui and Wu, Zhe and Su, Chi and Huang, Qingming and Tian, Qi},
    title     = {Label Decoupling Framework for Salient Object Detection},
    booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2020}
}

ldf's People

Contributors

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