Giter Club home page Giter Club logo

daps's Introduction

Domain Adaptive Person Search

Introduction

This is the official implementation for our paper Domain Adaptive Person Search (DAPS) in ECCV2022. The code is based on the official code of SeqNet and SPCL.

Performance : we tried some hyper-parameters and got better ReID performance reported in our paper.

Source Target mAP Top-1 CKPT log
PRW CUHK-SYSU 78.5 80.7 ckpt train_log
CUHK-SYSU PRW 35.3 80.2 ckpt train_log

framework

Installation

run python setup.py develop to enable SPCL

Install Nvidia Apex

Run pip install -r requirements.txt in the root directory of the project.

Data Preparation

  1. Download CUHK-SYSU and PRW datasets, and unzip them.
  2. Modify configs/prw_da.yaml and configs/cuhk_sysu_da.yaml to change the dataset store place (Line 1,5,6) to your own path.

Testing

  1. Following the link in the above table, download our pretrained model to anywhere you like

  2. Evaluate its performance by specifing the paths of checkpoint and corresponding configuration file.

PRW as the target domain:

python train_da_dy_cluster.py --cfg configs/cuhk_sysu_da.yaml --eval --ckpt $MODEL_PATH

CUHK-SYSU as the target domain:

python train_da_dy_cluster.py --cfg configs/prw_da.yaml --eval --ckpt $MODEL_PATH

Training

PRW as the target domain:

python train_da_dy_cluster.py --cfg configs/cuhk_sysu_da.yaml

CUHK-SYSU as the target domain:

python train_da_dy_cluster.py --cfg configs/prw_da.yaml

Note: At present, our script only supports single GPU training, but distributed training will be also supported in future. By default, the batch size is set to 4, which requires about 27GB of GPU memory. If your GPU cannot provide the required memory, try smaller batch size and learning rate (performance may degrade).

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.