PØDA: Prompt-driven Zero-shot Domain Adaptation

Mohammad Fahes, Tuan-Hung Vu, Andrei Bursuc, Patrick Pérez, Raoul de Charette
12/6/2022
cs.CVcs.LG

Official code: astra-vision/PODA (125 stars, Python, Apache-2.0, PyTorch, last commit 2025-03-15).

Abstract

Domain adaptation has been vastly investigated in computer vision but still requires access to target images at train time, which might be intractable in some uncommon conditions. In this paper, we propose the task of `Prompt-driven Zero-shot Domain Adaptation', where we adapt a model trained on a source domain using only a general description in natural language of the target domain, i.e., a prompt.

Show full abstract

First, we leverage a pretrained contrastive vision-language model (CLIP) to optimize affine transformations of source features, steering them towards the target text embedding while preserving their content and semantics. To achieve this, we propose Prompt-driven Instance Normalization (PIN). Second, we show that these prompt-driven augmentations can be used to perform zero-shot domain adaptation for semantic segmentation. Experiments demonstrate that our method significantly outperforms CLIP-based style transfer baselines on several datasets for the downstream task at hand, even surpassing one-shot unsupervised domain adaptation. A similar boost is observed on object detection and image classification. The code is available at https://github.com/astra-vision/PODA .

View on arXivView PDF

Code Implementations(1)

astra-vision/PODAOfficial100%
PyTorchApache-2.0

[ICCV 2023] New framework: Domain adaptation using a single prompt. Main contribution: Prompt-driven Instance Normalization (PIN)

12514PythonNov 25, 20221 years agoApache-2.0
clipcomputer-visiondeep-learningdomain-adaptationfeature-augmentation+6 more

Similar Papers

Cite this paper

@article{fahes2022pda,
  title  = {PØDA: Prompt-driven Zero-shot Domain Adaptation},
  author = {Mohammad Fahes and Tuan-Hung Vu and Andrei Bursuc and Patrick Pérez and Raoul de Charette},
  year   = {2022},
  eprint = {2212.03241},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.03241}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.03241.svg)](https://codeofpaper.com/paper/2212.03241)

Discussion