SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.03003 · 2023

Cal-SFDA: Source-Free Domain-adaptive Semantic Segmentation with Differentiable Expected Calibration Error

arXiv · PDF · Open in the Atlas

Code that ran

11 of 19 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; 9 failures of our instrument; 8 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/2308.03003.json · badge: /api/ran/2308.03003.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
jo-wang/cal-sfda canonical (classifier label)
classifier basis: census
11 ran · 8 no recorded run
FunctionStatusWhere it lives
conv3x3 Ran
ran; our contract draft was wrong, not the code
jo-wang/cal-sfda/model/DeeplabV2.py
pointer only (licence: MIT); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from lixiaotong97/DSU, 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.

convert_model Ran
ran; our contract draft was wrong, not the code
jo-wang/cal-sfda/model/sync_batchnorm/batchnorm.py
code served (permissive licence) · get_code("660b29e7beb7f344")
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, through the batch API) and returned SimpleModel. The image it ran in was not recorded. If your copy returns the same type 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
import torch.nn as nn

torch.manual_seed(0)

# Build a minimal model that convert_model can work with
class SimpleModel(nn.Module):
    def __init__(self):
        super(SimpleModel, self).__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create a simple module to pass
module = SimpleModel()

ARGS = {
    'module': module
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SimpleModel — a SimpleModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModel output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
easy_dic Ran
ran; our contract draft was wrong, not the code
jo-wang/cal-sfda/init_config.py
code served (permissive licence) · get_code("adc5e415cd269dea")
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, through the batch API) and returned EasyDict. The image it ran in was not recorded. If your copy returns the same type 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.

from easydict import EasyDict as edict

ARGS = {
    "dic": {
        "key1": "value1",
        "key2": 42,
        "nested_dict": {
            "inner_key1": "inner_value1",
            "inner_key2": 3.14
        },
        "another_nested": {
            "deep_key": "deep_value"
        }
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
easydict — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EasyDict — a EasyDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a EasyDict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
match_decoder Ran
ran; our contract draft was wrong, not the code
jo-wang/cal-sfda/model/model_builder.py
code served (permissive licence) · get_code("dbd857469a2a2157")
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, through the batch API) and returned OrderedDict. The image it ran in was not recorded. If your copy returns the same type 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
from collections import OrderedDict

torch.manual_seed(0)

# The function match_decoder takes new_params as input
# It iterates through key-value pairs and filters based on keys containing 'layer5' or 'layer6'
# new_params should be a dict-like object with string keys and tensor values

new_params = OrderedDict([
    ('layer1.weight', torch.randn(4, 3)),
    ('layer2.bias', torch.randn(2)),
    ('layer5.weight', torch.randn(5, 4)),
    ('layer5.bias', torch.randn(5)),
    ('layer6.weight', torch.randn(6, 5)),
    ('layer6.bias', torch.randn(6)),
    ('layer7.weight', torch.randn(3, 6)),
])

ARGS = {
    'new_params': new_params
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type OrderedDict — a OrderedDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a OrderedDict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
match_encoder Ran
ran; our contract draft was wrong, not the code
jo-wang/cal-sfda/model/model_builder.py
code served (permissive licence) · get_code("553ee7cf40b15657")
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, through the batch API) and returned OrderedDict. The image it ran in was not recorded. If your copy returns the same type 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
from collections import OrderedDict

torch.manual_seed(0)

# Construct new_params as an OrderedDict with various parameter names
# Some should contain 'layer5' or 'layer6' (to be filtered out)
# Others should be kept
new_params = OrderedDict()
new_params['layer1.weight'] = torch.randn(4, 3)
new_params['layer2.bias'] = torch.randn(4)
new_params['layer3.weight'] = torch.randn(5, 4)
new_params['layer5.weight'] = torch.randn(4, 4)  # Should be filtered
new_params['layer4.weight'] = torch.randn(3, 5)
new_params['layer6.bias'] = torch.randn(2)  # Should be filtered
new_params['layer5.bias'] = torch.randn(4)  # Should be filtered
new_params['final.weight'] = torch.randn(2, 3)

ARGS = {
    'new_params': new_params
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type OrderedDict — a OrderedDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a OrderedDict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
model_all Ran
ran; our contract draft was wrong, not the code
jo-wang/cal-sfda/rl/model.py
code served (permissive licence) · get_code("820856f2c847b605")
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, through the batch API) and returned AC_model. The image it ran in was not recorded. If your copy returns the same type 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
import torch.nn as nn

torch.manual_seed(0)

# Encoder: takes input x and outputs intermediate representation
class Encoder(nn.Module):
    def __init__(self):
        super(Encoder, self).__init__()
        self.conv = nn.Conv2d(3, 16, kernel_size=3, padding=1)
    
    def forward(self, x):
        # x shape: (N, C, H, W)
        return self.conv(x)

# Decoder: takes intermediate representation and spatial dims, outputs classification
class Decoder(nn.Module):
    def __init__(self):
        super(Decoder, self).__init__()
        self.fc = nn.Linear(16, 10)
    
    def forward(self, x_inter, H, W, reverse=False):
        # x_inter shape: (N, 16, H, W)
        N = x_inter.shape[0]
        x_flat = x_inter.view(N, -1)
        return self.fc(x_flat)

# Value network (AC - Actor-Critic): takes intermediate representation and outputs value
class ValueNet(nn.Module):
    def __init__(self):
        super(ValueNet, self).__init__()
        self.fc = nn.Linear(16 * 4 * 4, 1)
    
    def forward(self, x_inter):
        # x_inter shape: (N, 16, H, W)
        N = x_inter.shape[0]
        x_flat = x_inter.view(N, -1)
        return self.fc(x_flat)

encoder = Encoder()
decoder = Decoder()
ac = ValueNet()

ARGS = {
    "encoder": encoder,
    "decoder": decoder,
    "ac": ac
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type AC_model — a AC_model output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a AC_model output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
model_cla Ran
ran; our contract draft was wrong, not the code
jo-wang/cal-sfda/rl/model.py
code served (permissive licence) · get_code("ea9d77c576d902c2")
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, through the batch API) and returned Cla_model. The image it ran in was not recorded. If your copy returns the same type 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
import torch.nn as nn

torch.manual_seed(0)

class SimpleDecoder(nn.Module):
    def __init__(self):
        super(SimpleDecoder, self).__init__()
        self.linear = nn.Linear(4, 8)
    
    def forward(self, x_inter, H, W):
        batch_size = x_inter.shape[0]
        output = self.linear(x_inter)
        return output

decoder = SimpleDecoder()

ARGS = {
    "decoder": decoder
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Cla_model — a Cla_model output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Cla_model output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
model_fea Ran
ran; our contract draft was wrong, not the code
jo-wang/cal-sfda/rl/model.py
code served (permissive licence) · get_code("e65df5dbb694bf60")
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, through the batch API) and returned Fea_model. The image it ran in was not recorded. If your copy returns the same type 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
import torch.nn as nn

torch.manual_seed(0)

# Create a simple encoder that processes input tensors
class SimpleEncoder(nn.Module):
    def __init__(self):
        super(SimpleEncoder, self).__init__()
        self.conv1 = nn.Conv2d(3, 16, kernel_size=3, padding=1)
        self.relu = nn.ReLU()
    
    def forward(self, x):
        # x shape: (N, C, H, W)
        x = self.conv1(x)
        x = self.relu(x)
        return x

encoder = SimpleEncoder()

ARGS = {
    "encoder": encoder
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Fea_model — a Fea_model output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Fea_model output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
outS Ran
ran, honoured the contract we drafted
jo-wang/cal-sfda/model/DeeplabV2.py
pointer only (licence: MIT); the stored copy get_code serves, from stu92054/Domain-adaptation-on-segmentation, is pointer only (licence: NONE) · get_code("27504cbeb5811ea6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from stu92054/Domain-adaptation-on-segmentation, 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.

show_config Ran
ran; our contract draft was wrong, not the code
jo-wang/cal-sfda/init_config.py
code served (permissive licence) · get_code("da448e86441b1d0f")
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, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type 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)

# The function iterates over config.items() and checks if values are dicts
# It formats non-dict values into a message string
# So we need a dict with various key-value pairs, some being dicts (skipped) and some being other types

config = {
    'learning_rate': 0.001,
    'batch_size': 32,
    'epochs': 100,
    'model_name': 'bert-base',
    'dropout': 0.1,
    'nested_config': {'a': 1, 'b': 2},  # This should be skipped
    'seed': 42,
    'hidden_dim': 768,
    'another_nested': {'x': 10},  # This should also be skipped
}

sub = False

ARGS = {
    'config': config,
    'sub': sub,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
type_align Ran
ran, honoured the contract we drafted
jo-wang/cal-sfda/init_config.py
code served (permissive licence) · get_code("3ecaaabd66c84b40")
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, through the batch API) and returned int, ndim 0, dtype family int, shape () 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 torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - type_align takes two parameters: source and target
# - It checks the type of source and converts/returns target based on source's type
# - It handles int, float, str, bool types
# - For unsupported types, it prints a message

# The function uses isinstance checks on source and processes target
# We need to provide valid source and target values

# Test with an int source - target should be converted to int
source = 5
target = 3.14

ARGS = {
    "source": source,
    "target": target
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () 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
Res_Deeplab Not yet run
unverified (harvested, no recorded run)
jo-wang/cal-sfda/model/DeeplabV2.py
code served (permissive licence) · get_code("5820fad2bdccbd42")
How it ran

no invocation recorded.

adjust_brightness Not yet run
unverified (harvested, no recorded run)
jo-wang/cal-sfda/dataset/transforms.py
code served (permissive licence) · get_code("00ca137305a82c79")
How it ran

no invocation recorded.

adjust_contrast Not yet run
unverified (harvested, no recorded run)
jo-wang/cal-sfda/dataset/transforms.py
code served (permissive licence) · get_code("6d77c5d0ac004f32")
How it ran

no invocation recorded.

adjust_saturation Not yet run
unverified (harvested, no recorded run)
jo-wang/cal-sfda/dataset/transforms.py
code served (permissive licence) · get_code("d15084eefd04a282")
How it ran

no invocation recorded.

init_model Not yet run
unverified (harvested, no recorded run)
jo-wang/cal-sfda/model/model_builder.py
code served (permissive licence) · get_code("81030351171d2c98")
How it ran

no invocation recorded.

init_source_dataset Not yet run
unverified (harvested, no recorded run)
jo-wang/cal-sfda/dataset/dataset.py
code served (permissive licence) · get_code("11ad33d0bb84b1ed")
How it ran

no invocation recorded.

init_target_dataset Not yet run
unverified (harvested, no recorded run)
jo-wang/cal-sfda/dataset/dataset.py
code served (permissive licence) · get_code("6d4f75928375cf4a")
How it ran

no invocation recorded.

init_test_dataset Not yet run
unverified (harvested, no recorded run)
jo-wang/cal-sfda/dataset/dataset.py
code served (permissive licence) · get_code("5579322fe3a7d79a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 4 the same month, 1 later) and 10 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
conv3x3 686 other papers
498 dated earlier, 12 the same month, 169 later, 7 same year, order not determinable · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
outS 11 other papers
11 dated earlier
1612.02646 (2016-12)
Learning Video Object Segmentation from Static Images
1802.10349 (2018-02)
Learning to Adapt Structured Output Space for Semantic Segmentation
1809.09478 (2018-09)
Taking A Closer Look at Domain Shift: Category-level Adversaries for Semantics Consistent Domain Adaptation
and 8 more not named here
convert_model 4 other papers
4 dated earlier
1711.07240 (2017-11)
MegDet: A Large Mini-Batch Object Detector
2108.13559 (2021-08)
Music Demixing Challenge 2021
2112.09343 (2021-12)
Domain Adaptation on Point Clouds via Geometry-Aware Implicits
and 1 more not named here
adjust_brightness 3 other papers
2 dated earlier, 1 the same month
1903.03273 (2019-03)
FastDepth: Fast Monocular Depth Estimation on Embedded Systems
2209.13106 (2022-09)
Simultaneous Acquisition of High Quality RGB Image and Polarization Information using a Sparse Polarization Sensor
2308.06072 (2023-08)
Out-of-Distribution Detection for Monocular Depth Estimation
adjust_contrast 3 other papers
2 dated earlier, 1 the same month
1903.03273 (2019-03)
FastDepth: Fast Monocular Depth Estimation on Embedded Systems
2209.13106 (2022-09)
Simultaneous Acquisition of High Quality RGB Image and Polarization Information using a Sparse Polarization Sensor
2308.06072 (2023-08)
Out-of-Distribution Detection for Monocular Depth Estimation
adjust_saturation 3 other papers
2 dated earlier, 1 the same month
1903.03273 (2019-03)
FastDepth: Fast Monocular Depth Estimation on Embedded Systems
2209.13106 (2022-09)
Simultaneous Acquisition of High Quality RGB Image and Polarization Information using a Sparse Polarization Sensor
2308.06072 (2023-08)
Out-of-Distribution Detection for Monocular Depth Estimation
Res_Deeplab 2 other papers
2 dated earlier
1802.10349 (2018-02)
Learning to Adapt Structured Output Space for Semantic Segmentation
1809.09478 (2018-09)
Taking A Closer Look at Domain Shift: Category-level Adversaries for Semantics Consistent Domain Adaptation
easy_dic 1 other paper
1 dated earlier
2206.07551 (2022-06)
Unknown-Aware Domain Adversarial Learning for Open-Set Domain Adaptation
type_align 1 other paper
1 dated earlier
2206.07551 (2022-06)
Unknown-Aware Domain Adversarial Learning for Open-Set 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-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

The prevalence of domain adaptive semantic segmentation has prompted concerns regarding source domain data leakage, where private information from the source domain could inadvertently be exposed in the target domain. To circumvent the requirement for source data, source-free domain adaptation has emerged as a viable solution that leverages self-training methods to pseudo-label high-confidence regions and adapt the model to the target data. However, the confidence scores obtained are often highly biased due to over-confidence and class-imbalance issues, which render both model selection and optimization problematic. In this paper, we propose a novel calibration-guided source-free domain adaptive semantic segmentation (Cal-SFDA) framework. The core idea is to estimate the expected calibration error (ECE) from the segmentation predictions, serving as a strong indicator of the model's generalization capability to the unlabeled target domain. The estimated ECE scores, in turn, assist the model training and fair selection in both source training and target adaptation stages. During model pre-training on the source domain, we ensure the differentiability of the ECE objective by leveraging the LogSumExp trick and using ECE scores to select the best source checkpoints for adaptation. To enable ECE estimation on the target domain without requiring labels, we train a value net for ECE estimation and apply statistic warm-up on its BatchNorm layers for stability. The estimated ECE scores assist in determining the reliability of prediction and enable class-balanced pseudo-labeling by positively guiding the adaptation progress and inhibiting potential error accumulation. Extensive experiments on two widely-used synthetic-to-real transfer tasks show that the proposed approach surpasses previous state-of-the-art by up to 5.25% of mIoU with fair model selection criteria.

For agents

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

get_harvested_code_for_paper("2308.03003")
get_code_for_paper("2308.03003")
have("2308.03003")

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

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

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

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

Connect an agent — have() is free.