Giter VIP home page Giter VIP logo

sar-atr-hdanet's Introduction

Hierarchical Disentanglement-Alignment Network for Robust SAR Vehicle Recognition

This paper proposes a novel domain alignment framework, Hierarchical Disentanglement-Alignment Network (HDANet), to enhance features' causality and robustness.

Data

The folder includes MSTAR images under SOC and EOCs and detailed information can be found in our paper. (JPEG-E)

HDANet

Requirements

  • Python
  • PyTorch
  • Numpy
  • Captum (We used captum to generate pseudo-labels.)

A simple demo.

from HDANet.utils.DataLoad import load_data, load_test
from HDANet.utils.TrainTest import model_train, model_test
from HDANet.Model.HDANet import HDANet

train_all, label_name = load_data(arg.data_path + 'TRAIN', id=arg.GPU_ids)
test_set, _ = load_test(arg.data_path + 'TEST')
train_loader = torch.utils.data.DataLoader(train_all, batch_size=arg.batch_size, shuffle=True)
test_loader = torch.utils.data.DataLoader(test_set, batch_size=arg.batch_size, shuffle=False)

model = HDANet(num_classes=len(label_name))
opt = torch.optim.NAdam(model.parameters(), lr=arg.lr, weight_decay=5e-4)
scheduler = torch.optim.lr_scheduler.ExponentialLR(opt, gamma=0.98)
best_test_accuracy = 0

for epoch in range(1, arg.epochs + 1):
    # print("##### " + str(k + 1) + " EPOCH " + str(epoch) + "#####")
    model_train(model=model, data_loader=train_loader, opt=opt)
    scheduler.step()

acc = model_test(model, test_loader)

Contact us

If you have any questions, please contact us at [email protected]

@ARTICLE{10283916,
  author={Li, Weijie and Yang, Wei and Zhang, Wenpeng and Liu, Tianpeng and Liu, Yongxiang and Liu, Li},
  journal={IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing}, 
  title={Hierarchical Disentanglement-Alignment Network for Robust SAR Vehicle Recognition}, 
  year={2023},
  volume={16},
  number={},
  pages={9661-9679},
  doi={10.1109/JSTARS.2023.3324182}}

sar-atr-hdanet's People

Contributors

waterdisappear 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.