SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2302.10396 · 2023

Assessing Domain Gap for Continual Domain Adaptation in Object Detection

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 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; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 2 failures of our instrument; 2 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/2302.10396.json · badge: /api/ran/2302.10396.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
dadung/dge-cda canonical (classifier label)
classifier basis not recorded on the link
5 ran · 2 no recorded run
FunctionStatusWhere it lives
convert_basic_c2_names Ran
ran; our contract draft was wrong, not the code
dadung/dge-cda/detectron2/checkpoint/c2_model_loading.py
code served (permissive licence) · get_code("e8526a516b4f9206")
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 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 copy
import re

# Analyze the function: it takes a list of strings (original_keys) and applies
# various string transformations to them. It doesn't use any complex objects,
# just list operations and string manipulations.

ARGS = {
    'original_keys': [
        'pred_b',
        'pred_w',
        'conv_b',
        'conv_w',
        'bn_s',
        'bn_bias',
        'bn_rm',
        'bn_riv',
        'bn_gamma',
        'bn_beta',
        'gn_s',
        'gn_bias',
        'res_conv1_norm_weight',
        'conv1_weight',
        'layer_branch1_weight',
        'layer_branch2a_bias',
        'layer_branch2b_weight',
        'layer_branch2c_bias',
        'body_conv_fcn_weight',
        'AnnIndex_lowres',
        'Index_UV_lowres',
        'U_lowres',
        'V_lowres',
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
convert_c2_detectron_names Ran
ran; our contract draft was wrong, not the code
dadung/dge-cda/detectron2/checkpoint/c2_model_loading.py
code served (permissive licence) · get_code("e36f87059208bb7e")
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 tuple, 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 copy
import logging
import re
import torch

torch.manual_seed(0)

# Create a small dictionary of weights simulating Caffe2 model weights
weights = {
    'conv1_w': torch.randn(3, 3, 3, 3),
    'conv1_b': torch.randn(3),
    'res_conv1_norm_s': torch.randn(3),
    'res_conv1_norm_bias': torch.randn(3),
    'res2_0_branch1_w': torch.randn(4, 3, 1, 1),
    'res2_0_branch1_b': torch.randn(4),
    'res2_0_branch2a_w': torch.randn(4, 3, 3, 3),
    'res2_0_branch2a_b': torch.randn(4),
    'res2_0_branch2b_w': torch.randn(4, 4, 3, 3),
    'res2_0_branch2b_b': torch.randn(4),
    'res2_0_branch2c_w': torch.randn(8, 4, 1, 1),
    'res2_0_branch2c_b': torch.randn(8),
    'bn_s': torch.randn(3),
    'bn_bias': torch.randn(3),
    'bn_rm': torch.randn(3),
    'bn_riv': torch.randn(3),
    'pred_w': torch.randn(10, 8),
    'pred_b': torch.randn(10),
    'fpn_inner_res2_2_sum_lateral_w': torch.randn(4, 8, 1, 1),
    'fpn_inner_res2_2_sum_lateral_b': torch.randn(4),
    'fpn_res2_2_sum_w': torch.randn(4, 4, 3, 3),
    'fpn_res2_2_sum_b': torch.randn(4),
    'rpn_cls_logits_w': torch.randn(3, 4, 3, 3),
    'rpn_cls_logits_b': torch.randn(3),
    'rpn_bbox_pred_w': torch.randn(12, 4, 3, 3),
    'rpn_bbox_pred_b': torch.randn(12),
    'fc6_w': torch.randn(16, 8),
    'fc6_b': torch.randn(16),
    'fc7_w': torch.randn(16, 16),
    'fc7_b': torch.randn(16),
}

ARGS = {
    'weights': weights,
}
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 tuple, ndim 1, dtype family float — a tuple 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
load_projections Ran
ran on a synthesized input
dadung/dge-cda/cda/domain_gap.py
code served (permissive licence) · get_code("6df9bac363fa8d83")
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 dict. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 pickle
import tempfile
import os
import numpy as np

torch.manual_seed(0)

# Create a temporary directory to hold mock projection files
temp_dir = tempfile.mkdtemp()

# Create mock projection data and save as pickle files
proj_files = {
    'res3': 'projections_n10_d16711680',
    'res4': 'projections_n10_d8355840',
    'res5': 'projections_n10_d4177920'
}

for res, filename in proj_files.items():
    # Create small mock numpy arrays instead of huge ones
    mock_proj = np.random.randn(10, 100).astype(np.float32)
    filepath = os.path.join(temp_dir, filename)
    with open(filepath, 'wb') as f:
        pickle.dump(mock_proj, f)

ARGS = {
    'projections_dir': temp_dir,
    'device': 'cpu',
    'proj_files': proj_files
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, ot, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
load_variable Ran
ran on a synthesized input
dadung/dge-cda/cda/utils.py
code served (permissive licence) · get_code("42fb9cc947bedb22")
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 dict. 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 pickle
import tempfile
import os

# Create a temporary file and save some test data
temp_dir = tempfile.mkdtemp()
test_file = os.path.join(temp_dir, "test_data.pkl")

# Create sample data to pickle
sample_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "dict"}
}

# Write the pickle file
with open(test_file, 'wb') as f:
    pickle.dump(sample_data, f)

# Define arguments for load_variable
ARGS = {
    "file_name": test_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
rand_projections Ran
ran on a synthesized input
dadung/dge-cda/cda/generate_random_projections.py
code served (permissive licence) · get_code("fd25cfe6373ff50e")
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 Tensor, ndim 2, dtype family float, shape (1000, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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

torch.manual_seed(0)

ARGS = {
    'dim': 4,
    'num_projections': 1000,
    'device': 'cpu'
}
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 Tensor, ndim 2, dtype family float, shape (1000, 4) — shape (1000, 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
align_and_update_state_dicts Not yet run
unverified (harvested, no recorded run)
dadung/dge-cda/detectron2/checkpoint/c2_model_loading.py
code served (permissive licence) · get_code("ac2638463572c152")
How it ran

no invocation recorded.

do_projection Not yet run
unverified (harvested, no recorded run)
dadung/dge-cda/cda/domain_gap.py
code served (permissive licence) · get_code("c9ddc99e47f68ac9")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 4 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
convert_basic_c2_names 45 other papers
26 dated earlier, 17 later, 2 same year, order not determinable
1703.06870 (2017-03)
Mask R-CNN
1804.08864 (2018-04)
Learning to See the Invisible: End-to-End Trainable Amodal Instance Segmentation
1901.08164 (2019-01)
Decoupled Greedy Learning of CNNs
and 42 more not named here
align_and_update_state_dicts 13 other papers
3 dated earlier, 9 later, 1 same year, order not determinable
1912.08193 (2019-12)
PointRend: Image Segmentation as Rendering
2211.09808 (2022-11)
Uni-Perceiver v2: A Generalist Model for Large-Scale Vision and Vision-Language Tasks
and 10 more not named here
convert_c2_detectron_names 13 other papers
3 dated earlier, 9 later, 1 same year, order not determinable
1912.08193 (2019-12)
PointRend: Image Segmentation as Rendering
2211.09808 (2022-11)
Uni-Perceiver v2: A Generalist Model for Large-Scale Vision and Vision-Language Tasks
and 10 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

To ensure reliable object detection in autonomous systems, the detector must be able to adapt to changes in appearance caused by environmental factors such as time of day, weather, and seasons. Continually adapting the detector to incorporate these changes is a promising solution, but it can be computationally costly. Our proposed approach is to selectively adapt the detector only when necessary, using new data that does not have the same distribution as the current training data. To this end, we investigate three popular metrics for domain gap evaluation and find that there is a correlation between the domain gap and detection accuracy. Therefore, we apply the domain gap as a criterion to decide when to adapt the detector. Our experiments show that our approach has the potential to improve the efficiency of the detector's operation in real-world scenarios, where environmental conditions change in a cyclical manner, without sacrificing the overall performance of the detector. Our code is publicly available at https://github.com/dadung/DGE-CDA.

For agents

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

get_harvested_code_for_paper("2302.10396")
get_code_for_paper("2302.10396")
have("2302.10396")

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

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

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

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

Connect an agent — have() is free.