DePro:基于深度学习的跨域检索研究项目

[SIGIR 2025] Official PyTorch Code for "DePro: Domain Ensemble using Decoupled Prompts for Universal Cross-Domain Retrieval"

Branch1Tags0
FilesLast commitLast update
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago

DePro:Domain Ensemble using Decoupled Prompts for Universal Cross-Domain Retrieval [SIGIR 2025]

Official github repository for DePro:Domain Ensemble using Decoupled Prompts for Universal Cross-Domain Retrieval.

Requirements

  • Ubuntu 22.04.4
  • RTX4090D-24GB or better
  • CUDA 12.4
  • python 3.10.4
  • torch 1.12.1 py3.10_cuda11.3_cudnn8.3.2_0
  • torchvision 0.13.1 py310_cu113

Setups

  1. Clone this repository:
git clone https://github.com/pSGAme/DePro.git

or download the zip file.

  1. Install dependencies:
cd ./DePro
conda env create -f DePro.yaml
conda activate DePro

Data Preparation

  1. Download DomainNet using scripts in ./DePro/src/data/downloads.

    cd ./src/data/downloads
    bash download_domainnet.sh
    
  2. For Sketchy and TU-berlin, please refer to this issue.

  3. The directory is expected to be in the structure below:

    ├── DomainNet
    │   ├── clipart # images from clipart domain
    │   ├── clipart_test.txt # class names for testing
    │   ├── clipart_train.txt # class names for training
    │   ├── down.sh
    │   ├── infograph
    │   ├── infograph_test.txt
    │   ├── infograph_train.txt
    │   ├── painting
    │   ├── painting_test.txt
    │   ├── painting_train.txt
    │   ├── quickdraw
    │   ├── quickdraw_test.txt
    │   ├── quickdraw_train.txt
    │   ├── real
    │   ├── real_test.txt
    │   ├── real_train.txt
    │   ├── sketch
    │   ├── sketch_test.txt
    │   └── sketch_train.txt
    ├── Sketchy
    │   ├── extended_photo
    │   ├── photo
    │   ├── sketch
    │   └── zeroshot1
    └── TUBerlin
        ├── images
        └── sketches
    

Experiments

baseline:

cd ./src/algos/depro

sh baseline.sh

baseline+CPs:

cd ./src/algos/depro

sh baseline_CPs.sh

depro_basic:

cd ./src/algos/depro
sh depro.sh

depro_ln:

cd ./src/algos/depro
sh depro_ln.sh

depro_ln_triplet_loss (all):

cd ./src/algos/depro
sh depro_ln_tri.sh

Acknowledgements

Our code implementation is based on CoOp and ProS. We thank all the authors for releasing their code.

Introduction

[SIGIR 2025] Official PyTorch Code for "DePro: Domain Ensemble using Decoupled Prompts for Universal Cross-Domain Retrieval"

Customize your domain