Coder Social home page Coder Social logo

dadiff's Introduction

DaDiff: Domain-aware Diffusion Model for Nighttime UAV Tracking

Haobo Zuo, Changhong Fu, Guangze Zheng, Liangliang Yao, Kunhan Lu, and Jia Pan. DaDiff: Domain-aware Diffusion Model for Nighttime UAV Tracking.

featured

Overview

DaDiff is a Diffusion model-based domain adaptation framework for visual object tracking. This repo contains its Python implementation.

Environment

This code has been tested on Ubuntu 18.04, Python 3.8.3, Pytorch 0.7.0/1.6.0, CUDA 10.2. Please install related libraries before running this code:

pip install -r requirements.txt

Testing DaDiff

1. Preprocessing

Before training, we need to preprocess the training data to generate training pairs. Besides, the proposed NUT-LR can be obtained from the following link to test the performance of DaDiff.

  1. Download the nighttime train dataset NAT2021-train set.

  2. Follow the preprocessing of UDAT to prepare the nighttime train dataset.

  3. Download the proposed NUT-LR for low-resolution object nighttime UAV tracking.

2. Train

Take DaDiff-GAT for instance.

  1. Apart from the above target domain dataset NAT2021, you need to download and prepare source domain datasets VID and GOT-10K.

  2. Download the pre-trained daytime model (SiamGAT/SiamBAN) and place it at DaDiff/SiamGAT/snapshot.

  3. Start training

    cd DaDiff/SiamGAT
    export PYTHONPATH=$PWD
    python tools/train.py

3. Test

Take DaDiff-GAT for instance.

  1. For quick test, you can download our trained model for DaDiff-GAT (or DaDiff-BAN) and place it at DaDiff/SiamGAT/snapshot.

  2. Download testing datasets and put them into your own directory. If you want to test DaDiff on a new dataset, please refer to the toolkit to set the test dataset.

  3. Start testing

    python tools/test.py --dataset NUT-L

Demo

Demo Video

Acknowledgments

We sincerely thank the contribution of the following repos: DDIM, SiamGAT, SiamBAN, and UDAT.

Contact

The official code of DaDiff will continue to be regularly refined and improved to ensure its quality and functionality. If you have any questions, please contact Haobo Zuo at [email protected] or Changhong Fu at [email protected].

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.