SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.17614 · CVPR · 2024

Adapt Before Comparison: A New Perspective on Cross-Domain Few-Shot Segmentation

Jonas Herzog

arXiv · PDF · Open in the Atlas

Code that ran

17 of 23 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; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 13 failures of our instrument; 6 no recorded run), measured 2026-11-22; 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/2402.17614.json · badge: /api/ran/2402.17614.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
vision-kek/abcdfss canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
Vision-Kek/ABCDFSS community
Papers with Code archive
9 ran · 5 no recorded run
FunctionStatusWhere it lives
buildDenseAffinityMat Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Vision-Kek/ABCDFSS/core/contrastivehead.py
pointer only (licence: NONE) · get_code("c2fb89e36a52d3fc")
How it ran

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

buildHyperCol Ran
ran, honoured the contract we drafted
vision-kek/abcdfss/core/denseaffinity.py
pointer only (licence: NONE) · get_code("247da38da9e3d69a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, vision-kek/abcdfss 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_q_pred_coarse_nodetach Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Vision-Kek/ABCDFSS/core/contrastivehead.py
pointer only (licence: NONE) · get_code("5cfd57e7b81664c4")
How it ran

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

ctrstive_prototype_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Vision-Kek/ABCDFSS/core/contrastivehead.py
pointer only (licence: NONE) · get_code("fb5084bdcc8fef8d")
How it ran

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

fg_bg_proto Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Vision-Kek/ABCDFSS/core/contrastivehead.py
pointer only (licence: NONE) · get_code("1741736a8a12800e")
How it ran

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

filterDenseAffinityMap Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Vision-Kek/ABCDFSS/core/contrastivehead.py
pointer only (licence: NONE) · get_code("c5166df90ef9cdfd")
How it ran

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

fwd_pass_support_imgs Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
vision-kek/abcdfss/utils/crfhelper.py
pointer only (licence: NONE) · get_code("a813ee834ec01f6f")
How it ran

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

iou Ran
ran; our contract draft was wrong, not the code
vision-kek/abcdfss/utils/segutils.py
pointer only (licence: NONE) · get_code("0f163b1b99bd0b94")
How it ran

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

keep_var_loss Ran
ran, honoured the contract we drafted
Vision-Kek/ABCDFSS/core/contrastivehead.py
pointer only (licence: NONE) · get_code("4a96ac238387e631")
How it ran

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

mean Ran
ran, violated the contract we drafted
vision-kek/abcdfss/utils/commonutils.py
pointer only (licence: NONE) · get_code("2fbd545597570f15")
How it ran

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

otsus Ran
ran; our contract draft was wrong, not the code
vision-kek/abcdfss/utils/segutils.py
pointer only (licence: NONE) · get_code("e70e62a8a6c5e6bc")
How it ran

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

paste_supports_together Ran
ran; our contract draft was wrong, not the code
vision-kek/abcdfss/core/denseaffinity.py
pointer only (licence: NONE) · get_code("0f6e6c300830147d")
How it ran

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

self_attention_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Vision-Kek/ABCDFSS/core/contrastivehead.py
pointer only (licence: NONE) · get_code("4fb5d5624f290f81")
How it ran

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

ssim Ran
ran, honoured the contract we drafted
Vision-Kek/ABCDFSS/core/contrastivehead.py
pointer only (licence: NONE) · get_code("7fa435cfd75709ec")
How it ran

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

tensor_table Ran
ran; our contract draft was wrong, not the code
Vision-Kek/ABCDFSS/core/contrastivehead.py
pointer only (licence: NONE) · get_code("48c15e26ae8b5ded")
How it ran

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

to_cpu Ran
ran; our contract draft was wrong, not the code
vision-kek/abcdfss/utils/commonutils.py
pointer only (licence: NONE) · get_code("a3d18d17a48bf937")
How it ran

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

to_cuda Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
vision-kek/abcdfss/utils/commonutils.py
pointer only (licence: NONE) · get_code("8c6947459806ae3b")
How it ran

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

ContrastiveFeatureTransformer Not yet run
unverified (harvested, no recorded run)
Vision-Kek/ABCDFSS/core/contrastivehead.py
pointer only (licence: NONE) · get_code("702cac538a6b1126")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Vision-Kek/ABCDFSS 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. No invocation recorded.

augwise_proto Not yet run
unverified (harvested, no recorded run)
Vision-Kek/ABCDFSS/core/contrastivehead.py
pointer only (licence: NONE) · get_code("473b271bb4fd5296")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Vision-Kek/ABCDFSS 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. No invocation recorded.

dense_info_nce_loss Not yet run
unverified (harvested, no recorded run)
Vision-Kek/ABCDFSS/core/contrastivehead.py
pointer only (licence: NONE) · get_code("bece7c16c70daa1d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Vision-Kek/ABCDFSS 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. No invocation recorded.

get_augmentations_and_features Not yet run
unverified (harvested, no recorded run)
vision-kek/abcdfss/utils/crfhelper.py
pointer only (licence: NONE) · get_code("216eb9d7ff602b2d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, vision-kek/abcdfss 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. No invocation recorded.

opposite_proto_sim_in_aug Not yet run
unverified (harvested, no recorded run)
Vision-Kek/ABCDFSS/core/contrastivehead.py
pointer only (licence: NONE) · get_code("2f9961a082f7c62b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Vision-Kek/ABCDFSS 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. No invocation recorded.

proto_align_val_measure Not yet run
unverified (harvested, no recorded run)
Vision-Kek/ABCDFSS/core/contrastivehead.py
pointer only (licence: NONE) · get_code("d8b49e0930bd1b01")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Vision-Kek/ABCDFSS 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. No invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 3 the same month, 3 later) and 20 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
mean 7 other papers
3 dated earlier, 1 the same month, 3 later
2007.10587 (2020-07)
Learning to Compose Hypercolumns for Visual Correspondence
2308.13469 (2023-08)
RestNet: Boosting Cross-Domain Few-Shot Segmentation with Residual Transformation Network
2312.15731 (2023-12)
Adaptive FSS: A Novel Few-Shot Segmentation Framework via Prototype Enhancement
and 4 more not named here
to_cpu 6 other papers
2 dated earlier, 1 the same month, 3 later
2308.13469 (2023-08)
RestNet: Boosting Cross-Domain Few-Shot Segmentation with Residual Transformation Network
2312.15731 (2023-12)
Adaptive FSS: A Novel Few-Shot Segmentation Framework via Prototype Enhancement
2402.17726 (2024-02)
VRP-SAM: SAM with Visual Reference Prompt
and 3 more not named here
to_cuda 5 other papers
2 dated earlier, 1 the same month, 2 later
2308.13469 (2023-08)
RestNet: Boosting Cross-Domain Few-Shot Segmentation with Residual Transformation Network
2312.15731 (2023-12)
Adaptive FSS: A Novel Few-Shot Segmentation Framework via Prototype Enhancement
2402.17726 (2024-02)
VRP-SAM: SAM with Visual Reference Prompt
and 2 more not named here

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

Repositories linked to this paper

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

Abstract

Few-shot segmentation performance declines substantially when facing images from a domain different than the training domain, effectively limiting real-world use cases. To alleviate this, recently cross-domain few-shot segmentation (CD-FSS) has emerged. Works that address this task mainly attempted to learn segmentation on a source domain in a manner that generalizes across domains. Surprisingly, we can outperform these approaches while eliminating the training stage and removing their main segmentation network. We show test-time task-adaption is the key for successful CD-FSS instead. Task-adaption is achieved by appending small networks to the feature pyramid of a conventionally classification-pretrained backbone. To avoid overfitting to the few labeled samples in supervised fine-tuning, consistency across augmented views of input images serves as guidance while learning the parameters of the attached layers. Despite our self-restriction not to use any images other than the few labeled samples at test time, we achieve new state-of-the-art performance in CD-FSS, evidencing the need to rethink approaches for the task. Code is available at https://github.com/Vision-Kek/ABCDFSS.

For agents

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

get_harvested_code_for_paper("2402.17614")
get_code_for_paper("2402.17614")
have("2402.17614")

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

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

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

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

Connect an agent — have() is free.