SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2111.14887 · 2021

DAFormer: Improving Network Architectures and Training Strategies for Domain-Adaptive Semantic Segmentation

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2111.14887.json · badge: /api/ran/2111.14887.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
kw01sg/crda extension (classifier label)
classifier basis: classifier_2025
5 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
calc_consistency_loss Ran
ran, honoured the contract we drafted
kw01sg/crda/mmseg/models/uda/dacs.py
pointer only (licence: NONE) · get_code("308b4bd2e8245ded")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kw01sg/crda 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.

calc_grad_magnitude Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from usr922/fst
pointer only · get_code("be78c4e9ca31118d")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

cosine_pairwise Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
kw01sg/crda/mmseg/models/uda/dacs.py
pointer only (licence: NONE) · get_code("9df38eda1ae4112c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kw01sg/crda 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.

get_backbone_cfg Ran
ran; our contract draft was wrong, not the code
kw01sg/crda/experiments.py
pointer only (licence: NONE) · get_code("903b0922a749302e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kw01sg/crda 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.

get_model_base Ran
ran; our contract draft was wrong, not the code
kw01sg/crda/experiments.py
pointer only (licence: NONE) · get_code("3578196ac2abaecf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kw01sg/crda 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.

get_pretraining_file Ran
ran; our contract draft was wrong, not the code
kw01sg/crda/experiments.py
pointer only (licence: NONE) · get_code("7063030b369b4ce1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kw01sg/crda 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.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 4 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 4 later) and 2 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
get_backbone_cfg 9 other papers
9 later
2304.14291 (2023-04)
EDAPS: Enhanced Domain-Adaptive Panoptic Segmentation
2307.15942 (2023-07)
CMDA: Cross-Modality Domain Adaptation for Nighttime Semantic Segmentation
2311.13254 (2023-11)
Unified Domain Adaptive Semantic Segmentation
and 6 more not named here
get_pretraining_file 9 other papers
9 later
2304.14291 (2023-04)
EDAPS: Enhanced Domain-Adaptive Panoptic Segmentation
2307.15942 (2023-07)
CMDA: Cross-Modality Domain Adaptation for Nighttime Semantic Segmentation
2311.13254 (2023-11)
Unified Domain Adaptive Semantic Segmentation
and 6 more not named here
get_model_base 4 other papers
4 later
2307.15942 (2023-07)
CMDA: Cross-Modality Domain Adaptation for Nighttime Semantic Segmentation
2412.10339 (2024-12)
Towards Unsupervised Domain Bridging via Image Degradation in Semantic Segmentation
2512.06870 (2025-12)
Towards Robust Pseudo-Label Learning in Semantic Segmentation: An Encoding Perspective
and 1 more not named here
calc_grad_magnitude 3 other papers
1 dated earlier, 2 later
2106.11653 (2021-06)
A Curriculum-style Self-training Approach for Source-Free Semantic Segmentation
2204.08808 (2022-04)
SePiCo: Semantic-Guided Pixel Contrast for Domain Adaptive Semantic Segmentation
2209.06993 (2022-09)
Learning from Future: A Novel Self-Training Framework for Semantic Segmentation

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

Repositories linked to this paper

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

Abstract

As acquiring pixel-wise annotations of real-world images for semantic segmentation is a costly process, a model can instead be trained with more accessible synthetic data and adapted to real images without requiring their annotations. This process is studied in unsupervised domain adaptation (UDA). Even though a large number of methods propose new adaptation strategies, they are mostly based on outdated network architectures. As the influence of recent network architectures has not been systematically studied, we first benchmark different network architectures for UDA and newly reveal the potential of Transformers for UDA semantic segmentation. Based on the findings, we propose a novel UDA method, DAFormer. The network architecture of DAFormer consists of a Transformer encoder and a multi-level context-aware feature fusion decoder. It is enabled by three simple but crucial training strategies to stabilize the training and to avoid overfitting to the source domain: While (1) Rare Class Sampling on the source domain improves the quality of the pseudo-labels by mitigating the confirmation bias of self-training toward common classes, (2) a Thing-Class ImageNet Feature Distance and (3) a learning rate warmup promote feature transfer from ImageNet pretraining. DAFormer represents a major advance in UDA. It improves the state of the art by 10.8 mIoU for GTA-to-Cityscapes and 5.4 mIoU for Synthia-to-Cityscapes and enables learning even difficult classes such as train, bus, and truck well. The implementation is available at https://github.com/lhoyer/DAFormer.

For agents

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

get_harvested_code_for_paper("2111.14887")
get_code_for_paper("2111.14887")
have("2111.14887")

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

curl https://syntology.ai/api/ran/2111.14887.json

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

[![Syntology run record](https://syntology.ai/api/ran/2111.14887.svg)](https://syntology.ai/paper/2111.14887)

Connect an agent — have() is free.