SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Fahes_PODA_Prompt-driven_Zero-shot_Domain_Adaptation_ICCV_2023_paper · ICCV · 2023

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

Valeo Ai, Patrick Pérez, Mohammad Fahes, Andrei Bursuc, Raoul De Charette, Tuan-Hung Vu

Open in the Atlas

Code that ran

6 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 3 failures of our instrument; 3 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/Fahes_PODA_Prompt-driven_Zero-shot_Domain_Adaptation_ICCV_2023_paper.json · badge: /api/ran/Fahes_PODA_Prompt-driven_Zero-shot_Domain_Adaptation_ICCV_2023_paper.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
astra-vision/PODA canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
check_integrity Ran
ran, violated the contract we drafted
astra-vision/PODA/datasets/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from xingyu-zheng/bidm, is pointer only (licence: NONE) · get_code("7345763c9b9300fb")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from xingyu-zheng/bidm, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compose_text_with_templates Ran
ran; our contract draft was wrong, not the code
astra-vision/PODA/PIN_aug.py
code served (permissive licence) · get_code("18de7f6ffdf6a1e7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

text = "Hello World"
templates = [
    "Template 1: {}",
    "Template 2: {} is great",
    "Template 3: I love {}"
]

ARGS = {
    "text": text,
    "templates": templates
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
encode_target Ran
ran, violated the contract we drafted
astra-vision/PODA/predict.py
code served (permissive licence) · get_code("21629d2de0ad0dd9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned ndarray, ndim 1, dtype family int, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from collections import namedtuple

CityscapesClass = namedtuple('CityscapesClass', ['name', 'id', 'train_id', 'category', 'category_id', 'has_instances', 'ignore_in_eval', 'color'])

classes = [CityscapesClass('unlabeled', 0, 255, 'void', 0, False, True, (0, 0, 0)), CityscapesClass('ego vehicle', 1, 255, 'void', 0, False, True, (0, 0, 0)), CityscapesClass('rectification border', 2, 255, 'void', 0, False, True, (0, 0, 0)), CityscapesClass('out of roi', 3, 255, 'void', 0, False, True, (0, 0, 0)), CityscapesClass('static', 4, 255, 'void', 0, False, True, (0, 0, 0)), CityscapesClass('dynamic', 5, 255, 'void', 0, False, True, (111, 74, 0)), CityscapesClass('ground', 6, 255, 'void', 0, False, True, (81, 0, 81)), CityscapesClass('road', 7, 0, 'flat', 1, False, False, (128, 64, 128)), CityscapesClass('sidewalk', 8, 1, 'flat', 1, False, False, (244, 35, 232)), CityscapesClass('parking', 9, 255, 'flat', 1, False, True, (250, 170, 160)), CityscapesClass('rail track', 10, 255, 'flat', 1, False, True, (230, 150, 140)), CityscapesClass('building', 11, 2, 'construction', 2, False, False, (70, 70, 70)), CityscapesClass('wall', 12, 3, 'construction', 2, False, False, (102, 102, 156)), CityscapesClass('fence', 13, 4, 'construction', 2, False, False, (190, 153, 153)), CityscapesClass('guard rail', 14, 255, 'construction', 2, False, True, (180, 165, 180)), CityscapesClass('bridge', 15, 255, 'construction', 2, False, True, (150, 100, 100)), CityscapesClass('tunnel', 16, 255, 'construction', 2, False, True, (150, 120, 90)), CityscapesClass('pole', 17, 5, 'object', 3, False, False, (153, 153, 153)), CityscapesClass('polegroup', 18, 255, 'object', 3, False, True, (153, 153, 153)), CityscapesClass('traffic light', 19, 6, 'object', 3, False, False, (250, 170, 30)), CityscapesClass('traffic sign', 20, 7, 'object', 3, False, False, (220, 220, 0)), CityscapesClass('vegetation', 21, 8, 'nature', 4, False, False, (107, 142, 35)), CityscapesClass('terrain', 22, 9, 'nature', 4, False, False, (152, 251, 152)), CityscapesClass('sky', 23, 10, 'sky', 5, False, False, (70, 130, 180)), CityscapesClass('person', 24, 11, 'human', 6, True, False, (220, 20, 60)), CityscapesClass('rider', 25, 12, 'human', 6, True, False, (255, 0, 0)), CityscapesClass('car', 26, 13, 'vehicle', 7, True, False, (0, 0, 142)), CityscapesClass('truck', 27, 14, 'vehicle', 7, True, False, (0, 0, 70)), CityscapesClass('bus', 28, 15, 'vehicle', 7, True, False, (0, 60, 100)), CityscapesClass('caravan', 29, 255, 'vehicle', 7, True, True, (0, 0, 90)), CityscapesClass('trailer', 30, 255, 'vehicle', 7, True, True, (0, 0, 110)), CityscapesClass('train', 31, 16, 'vehicle', 7, True, False, (0, 80, 100)), CityscapesClass('motorcycle', 32, 17, 'vehicle', 7, True, False, (0, 0, 230)), CityscapesClass('bicycle', 33, 18, 'vehicle', 7, True, False, (119, 11, 32)), CityscapesClass('license plate', -1, 255, 'vehicle', 7, False, True, (0, 0, 142))]

id_to_train_id = np.array([c.train_id for c in classes])

target = np.array([7, 8, 11, 24])

ARGS = {
    'target': target
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gen_bar_updater Ran
ran; our contract draft was wrong, not the code
astra-vision/PODA/datasets/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from weizeming/SAM_AT, is pointer only (licence: NONE) · get_code("4b9b1e0236811496")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from weizeming/SAM_AT, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

list_dir Ran
ran; our contract draft was wrong, not the code
astra-vision/PODA/datasets/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ermongroup/fairgen, is pointer only (licence: NONE) · get_code("0d8aca7e68b6e3c8")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ermongroup/fairgen, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mask_transform Ran
ran, honoured the contract we drafted
astra-vision/PODA/predict.py
code served (permissive licence) · get_code("4d28daa7b8daac8c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family int, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch

torch.manual_seed(0)

# The function takes a mask parameter and converts it to a torch tensor
# The mask can be a list, numpy array, or similar array-like object
# It should contain integer values, with 255 being replaced by -1

# Create a small mask array with some values including 255
mask_data = [
    [0, 1, 2, 255],
    [3, 255, 4, 5]
]

ARGS = {
    "mask": mask_data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family int, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_model Not yet run
unverified (harvested, no recorded run)
astra-vision/PODA/network/backbone/resnet_clip.py
code served (permissive licence) · get_code("c4910d8950bc6f41")
How it ran

no invocation recorded.

convert_to_separable_conv Not yet run
unverified (harvested, no recorded run)
astra-vision/PODA/network/_deeplab.py
code served (permissive licence) · get_code("ce942a958c0ae909")
How it ran

no invocation recorded.

deeplabv3plus_resnet_clip Not yet run
unverified (harvested, no recorded run)
astra-vision/PODA/network/modeling.py
code served (permissive licence) · get_code("c9e88ab41138dea3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 8 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 5 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
list_dir 19 other papers
7 dated earlier, 4 later, 8 same year, order not determinable
1803.02999 (2018-03)
On First-Order Meta-Learning Algorithms
1903.12648 (2019-03)
Overcoming Catastrophic Forgetting with Unlabeled Data in the Wild
1906.00189 (2019-06)
Are Anchor Points Really Indispensable in Label-Noise Learning?
and 16 more not named here
check_integrity 16 other papers
4 dated earlier, 4 later, 8 same year, order not determinable
1908.07724 (2019-08)
Restricted Recurrent Neural Networks
2206.02262 (2022-06)
Diffusion-GAN: Training GANs with Diffusion
2210.11633 (2022-10)
Graphically Structured Diffusion Models
and 13 more not named here
convert_to_separable_conv 10 other papers
8 dated earlier, 1 later, 1 same year, order not determinable
1706.05587 (2017-06)
Rethinking Atrous Convolution for Semantic Image Segmentation
1905.03561 (2019-05)
D2-Net: A Trainable CNN for Joint Detection and Description of Local Features
2007.07984 (2020-07)
Leveraging Category Information for Single-Frame Visual Sound Source Separation
and 7 more not named here
gen_bar_updater 2 other papers
1 later, 1 same year, order not determinable
2310.06368 (2023-10)
CoinSeg: Contrast Inter- and Intra- Class Representations for Incremental Segmentation
2402.15152 (2024-02)
On the Duality Between Sharpness-Aware Minimization and Adversarial Training
compose_text_with_templates 1 other paper
1 dated earlier
2212.03241 (2022-12)
PØDA: Prompt-driven Zero-shot Domain Adaptation
deeplabv3plus_resnet_clip 1 other paper
1 later
2404.07155 (2024-04)
Unified Language-driven Zero-shot Domain Adaptation
encode_target 1 other paper
1 dated earlier
2212.03241 (2022-12)
PØDA: Prompt-driven Zero-shot Domain Adaptation
mask_transform 1 other paper
1 dated earlier
2212.03241 (2022-12)
PØDA: Prompt-driven Zero-shot Domain Adaptation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("Fahes_PODA_Prompt-driven_Zero-shot_Domain_Adaptation_ICCV_2023_paper")
get_code_for_paper("Fahes_PODA_Prompt-driven_Zero-shot_Domain_Adaptation_ICCV_2023_paper")
have("Fahes_PODA_Prompt-driven_Zero-shot_Domain_Adaptation_ICCV_2023_paper")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/Fahes_PODA_Prompt-driven_Zero-shot_Domain_Adaptation_ICCV_2023_paper.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/Fahes_PODA_Prompt-driven_Zero-shot_Domain_Adaptation_ICCV_2023_paper.svg)](https://syntology.ai/paper/Fahes_PODA_Prompt-driven_Zero-shot_Domain_Adaptation_ICCV_2023_paper)

Connect an agent — have() is free.