GithubHelp home page GithubHelp logo

gf-transformer's Introduction

GF-Former

Cross-Scale Guided Fusion Transformer for Disaster Assessment Using Satellite Imagery
https://ieeexplore.ieee.org/document/10197573

Requirements

Install the necessary package with:

-python 3
-pytorch 1.9.0 and torchvision 0.10.0
-apex https://github.com/NVIDA/apex
-opencv-python
-imgaug
-timm

Dataset

Dataset: https://www.xview2.org

Train

Model:we use the segformer as the backbone(mit_b3.pth).
Pretrained model: https://drive.google.com/drive/folders/1GAku0G0iR9DsBxCbfENWMJ27c5lYUeQA

The first stage: CUDA_VISIBLE_DEVICES=0 python train_segformer_loc.py

The second stage: CUDA_VISIBLE_DEVICES=0 python train_segformer_cls.py

Data Processing Techniques

Models trained on different crops sizes from (448, 448) for heavy encoder to (736, 736) for light encoder. Augmentations used for training:

  • Flip (often)
  • Rotation (often)
  • Scale (often)
  • Color shifts (rare)
  • Clahe / Blur / Noise (rare)
  • Saturation / Brightness / Contrast (rare)
  • ElasticTransformation (rare)

Inference goes on full image size (1024, 1024) with 4 simple test-time augmentations (original, filp left-right, flip up-down, rotation to 180).

Architecture

GitHub Logo

Contact the author e-mail:[email protected] or [email protected]

gf-transformer's People

Contributors

successhaha avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

aihengdu

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.