Giter Site home page Giter Site logo

dlpnet's Introduction

DLPNet

Dynamic Focal Loss with Reinforcement Learning for Aerial Imagery Detection

Introduction

Object Detection on aerial imagery is a challenging task due to the following unique characteristics of the aerial imagery data: the large image size and the huge volume of data. Since the original image size from remote sensing sources is generally more colossal than the typical natural images, splitting an image into smaller image patches is a commonly used pre-processing method, where publicly available datasets are often distributed in smaller patches. However, this process can result in a poor detection performance due to certain objects being located at the edge of image patches. Therefore, generally performance can be degraded, if one merely focuses on the small patch itself, instead of the original larger image.
In addition, high computing resources are required to process the large amount of the original aerial images, where large image patches would need large data batch sizes. This can cause a significant bottleneck for the many practical real-world applications. Therefore, in this work, we propose a novel method to enable a robust and stable training with a small batch size as well. Our model composes of an oriented object detection model and a reinforcement learning agent. Our reinforcement learning agent extracts features from training batch data and determines optimal parameters to the focal loss function of the object detection model. This dynamic focal loss function with adaptive parameters can achieve a more robust and stable learning process than other advanced baseline model. We demonstrate the effectiveness of our approach with a well-known dataset, DOTA-v2.0.

Train Model

!python main.py \
--num_epoch 50 \
--batch_size 8 \
--num_worker 8 \
--init_lr 5e-5 \
--input_h 600 \
--input_w 600 \
--K 1000 \
--conf_thresh 0.1 \
--ngpus 1 \
--dataset 'dota' \
--data_dir 'data_folder_path' \
--phase 'train' \
--seed 12345 \
--save_dir 'save_folder_path'

This implementation is extended from official BBAVectors code follow: Code

[Paper] Oriented Object Detection in Aerial Images with Box Boundary-Aware Vectors (arXiv)

@inproceedings{yi2021oriented,
title={Oriented object detection in aerial images with box boundary-aware vectors},
author={Yi, Jingru and Wu, Pengxiang and Liu, Bo and Huang, Qiaoying and Qu, Hui and Metaxas, Dimitris},
booktitle={Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision},
pages={2150--2159},
year={2021}
}

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.