Giter VIP home page Giter VIP logo

meco's Introduction

MECo

Code for "Multiple Embeddings Contrastive Pre-Training for Remote Sensing Image Classification"

Abstract

This letter focuses on remote sensing image interpretation and aims to promote the use of contrastive selfsupervised learning in varied applications of remote sensing image classification. The proposed method is a contrastive selfsupervised pre-training framework that encourages the network to learn image representations by comparing image embeddings extracted by different encoders and predictors. Experiments were carried out on a variety of remote sensing image datasets to determine the efficacy of the proposed method for classification tasks. Results show that the proposed framework exploits the capabilities of encoders and outperforms the supervised learning method in terms of classification accuracy. Besides, it takes a few pre-training epochs to find a suboptimal initialization of network weights, and the pre-trained encoders use a little training data to get outstanding classification results, which shows the time and data efficiency of the proposed framework.

Code

Our code is based on the core of MMDetection. We use config files to manage the experimental settings (cls/configs).

work_dirs stores the pretrained models.

Pre-Train

To pre-train an encoder with the proposed MultiEmbedding framework on the OpenSARShip dataset using GPU 0, run the command under cls folder:

./scripts/pretrain_single.sh multiembedding opensarship 0

Evaluate

To evaluate an pre-trained encoder in fine-tuning mode on the RSSCN7 dataset using GPU 1, run the command under cls folder:

./scripts/test.sh rsscn single ft 1

To evaluate an pre-trained encoder in linear probing mode on the RSSCN7 dataset using GPU 2, run the command under cls folder:

./scripts/test.sh rsscn single lin 2

meco's People

Contributors

yinxu98 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.