Giter Site home page Giter Site logo

boundary-guided-context-aggregation's Introduction

Boundary-Guided-Context-Aggregation

pipeline

Boundary Guided Context Aggregation for Semantic Segmentation

Haoxiang Ma, Hongyu Yang, Di Huang
In BMVC'2021

Introduction

This repository is official PyTorch implementation for our BMVC2021 paper. The code is based on semseg

Environments

  • Anaconda3
  • Python == 3.7.9
  • PyTorch == 1.7.1
  • CUDA ==11.0

Getting Started

Installation

git clone https://github.com/mahaoxiang822/Boundary-Guided-Context-Aggregation.git
cd Boundary-Guided-Context-Aggregation
conda create -n bcanet python=3.7
conda activate bcanet
conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=11.0 -c pytorch
pip install -r requirements.txt

Prepare Datasets

For Cityscapes, you can download from Cityscapes

For ADE20K, you can download from ADE20K

You should modify your dataset paths specified in folder config

Train

  • Download ImageNet pre-trained from GoogleDrive and put them under folder initmodel for weight initialization.
  • Specify the gpu used in config then do training:

Cityscapes

sh tool/train.sh cityscapes [bcanet50/bcanet101]

ADE20K

  • To accelerate the training speed on ADE20K, please pre-generate the ground truth of boundary. You can download the pre-generate boundary gt from GoogleDrive
sh tool/trainade.sh ade20k [bcanet50/bcanet101]

Evaluation

  • Specify the gpu used in config and the checkpoint then do training:
  • You can download the pre-trained model on cityscapes from GoogleDrive

Validation on Cityscapes

sh tool/test.sh cityscapes [bcanet50/bcanet101]

Test on Cityscapes

sh tool/test.sh cityscapes [bcanet50/bcanet101]

Validation on ADE20K

sh tool/testade.sh ade20k [bcanet50/bcanet101]

Citation

If any part of our paper and repository is helpful to your work, please generously cite with:

@InProceedings{Ma_2021_BMVC,
    author    = {Haoxiang, Ma and Hongyu, Yang and Huang, Di},
    title     = {Boundary Guided Context Aggregation for Semantic Segmentation},
    booktitle = {The British Machine Vision Conference (BMVC)},
    month     = {November},
    year      = {2021}

boundary-guided-context-aggregation's People

Contributors

mahaoxiang822 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

boundary-guided-context-aggregation's Issues

F1 boundary score code

Hi! Could you tell me how to evaluate the edge which is reported in your paper. I want to evaluate it locally.

how to plot your figure

Hi, Thank you for your work and for providing the code. How can we visualize the attention feature map and feature similarity? 
FBCF150A848B231756935E9E91BED42E

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.