Git Product home page Git Product logo

centroid-unet's Introduction

Centroid UNet - Locating Object Centroids in Aerial/Serial Images

Paper (Proccedings of the 42nd Asian Conference on Remote Sensing, 2021, Can Tho city, Vietnam) - https://arxiv.org/abs/2112.06530

Introduction

Centroid-UNet is deep neural network model to detect centroids from Aerial/Satellite images. We have tested this model with two case studies (building centroid detection and coconut tree centroid detection). This network is based on classic U-Net sematic segmentation architecture. In case of aerial/satellite image analysis (remote sensing), generation of exact shapes of objects is cumbersome task. And, most of application such as counting requires estimation of only locations of objects. Hence, locating objects centroids from aerial/satellite image is an easy solution for tasks where object exact shape is not necessary. Sample input and prediction from the model is shown in below figure.

Sample Input Sample Prediction

sample_input

sample_pred

sample_input

sample_pred

How to Use

Input data are RGB satellite images. Target data can be given as JSON files with list of centroids points in each aerial/satellite image tiles. First Gaussians are generated around lists of centroids points, then images are generated as targets for the model during preprocessing steps (/code/DataUtils.py). If we use centroids as it is without Gaussians, training process will be challenging. Using Gaussians instead of just centroids make training process more stable. Radius of the Gaussian (in pixels) can be modified depending on the application to minimize overlapping. Few sample data is also given with this repository (/code/data/MassachBuilding/ and /code/data/AgriPlot/) to understand data format required to run.

Our model is U-Net architecture which was written in Keras with Tensorflow backend (/code/Model.py). You can modify the model according to your requirement as well. Two Jupyter notebooks (/code/Centroid-UNet_MassachBuilding.ipynb and /code/Centroid-UNet_TongoCoconutTree.ipynb) were used to run two case studies (building centroid detection and coconut tree centroid detection). If you are using this repository, you can start with one of these notebooks and adapt to your datasets.

Libraries used

  • numpy
  • matplotlib
  • imageio
  • keras (tensorflow)

References

centroid-unet's People

Contributors

lakmalnd 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

Watchers

 avatar  avatar

centroid-unet's Issues

Generate Centroid Json Annotations

Hello, I do have a question about the data formatting. I downloaded the
data from Kaggle since it was easier accessible. The dataformat was 1500x1500 but thats just a matter of resizing. But still the centroid annotation is missing.

You somehow created from the train_labels *.tiff's the *.json center annotation.
I havent found this script in the provided code.

Could you share this with us?

Thanks

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.