Skip to content

HKUSTGZ-IADC/AAFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attention Aggregation Framework

Introduction

This is the official PyTorch implementation of We Learn Better Road Pothole Detection: from Attention Aggregation to Adversarial Domain Adaptation, accepted by ECCV Workshops 2020 for publication. This is our project page.

In this repo, we provide the training and testing setup on our Pothole-600 Dataset. We test our code in Python 3.7, CUDA 10.0, cuDNN 7 and PyTorch 1.1. We provide Dockerfile to build the docker image we use.

Setup

Please setup the Pothole-600 Dataset and pretrained weights according to the following folder structure:

AAFramework
 |-- checkpoints
 |-- data
 |-- datasets
 |  |-- pothole600
 |-- models
 ...

The Pothole-600 Dataset pothole600 can be downloaded from here, and the pretrained weights checkpoints for our AA-UNet and AA-RTFNet can be downloaded from here.

Usage

Testing on the Pothole-600 Dataset

For testing, you need to setup the checkpoints and the datasets/pothole600 folder as mentioned above. Then, run the following script:

bash ./scripts/test_aaunet_rgb.sh
bash ./scripts/test_aaunet_tdisp.sh
bash ./scripts/test_aartfnet.sh

for testing AA-UNet with input RGB, AA-UNet with input T-Disp and AA-RTFNet with input RGB and T-Disp, respectively. and you will get the prediction results in testresults.

If everything works fine, you will get an IoU score of 51.4, 70.1 and 73.8 for AA-UNet with input RGB, AA-UNet with input T-Disp and AA-RTFNet with input RGB and T-Disp, respectively, as reported in the paper.

Training on the Pothole-600 Dataset

For training, you need to setup the datasets/pothole600 folder as mentioned above. Then, run the following script:

bash ./scripts/train_aaunet_rgb.sh
bash ./scripts/train_aaunet_tdisp.sh
bash ./scripts/train_aartfnet.sh

for training AA-UNet with input RGB, AA-UNet with input T-Disp and AA-RTFNet with input RGB and T-Disp, respectively. The weights will be saved in checkpoints and the tensorboard record containing the loss curves as well as the performance on the validation set will be saved in runs.

Citation

If you use this code for your research, please cite our paper.

@inproceedings{fan2020we,
  title        = {We learn better road pothole detection: From attention aggregation to adversarial domain adaptation},
  author       = {Fan, Rui and Wang, Hengli and Bocus, Mohammud J and Liu, Ming},
  booktitle    = {European Conference on Computer Vision},
  pages        = {285--300},
  year         = {2020},
  organization = {Springer}
}

Acknowledgement

Our code is inspired by pytorch-CycleGAN-and-pix2pix, pytorch_segmentation and RTFNet.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published