SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1803.11365 · 2018

Cross-Domain Weakly-Supervised Object Detection through Progressive Domain Adaptation

arXiv · PDF · Open in the Atlas

Code that ran

8 of 11 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 6 have no contract verdict; 2 failures of our instrument; 3 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/1803.11365.json · badge: /api/ran/1803.11365.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
barisbatuhan/dass_det_inference community (classifier label)
classifier basis not recorded on the link
6 ran · 3 no recorded run
barisbatuhan/dass_detector community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
FunctionStatusWhere it lives
check_center_boxa_in_boxb Ran
ran on a synthesized input
barisbatuhan/dass_det_inference/dass_det/utils/boxes.py
code served (permissive licence) · get_code("fa151da186910445")
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 (2, 3) 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

torch.manual_seed(0)

# box_a: tensor of shape (A, 4) representing boxes
# box_b: tensor of shape (B, 4) representing boxes
# Format can be either [x1, y1, x2, y2] or [cx, cy, w, h]

box_a = torch.tensor([
    [10.0, 10.0, 20.0, 20.0],
    [30.0, 30.0, 40.0, 40.0]
], dtype=torch.float32)

box_b = torch.tensor([
    [5.0, 5.0, 25.0, 25.0],
    [35.0, 35.0, 45.0, 45.0],
    [50.0, 50.0, 60.0, 60.0]
], dtype=torch.float32)

ARGS = {
    "box_a": box_a,
    "box_b": box_b,
    "cxcy_format": False
}
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 (2, 3) — shape (2, 3) 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
filter_box Ran
ran on a synthesized input
barisbatuhan/dass_det_inference/dass_det/utils/boxes.py
code served (permissive licence) · get_code("4a3604aadeec303e")
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 (2, 8) 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)

# Create a sample output tensor with shape (N, 5+class)
# N=2 samples, 5 coordinates (x1, y1, x2, y2, confidence) + 3 classes = 8 columns
output = torch.tensor([
    [10.0, 20.0, 50.0, 80.0, 0.9, 0.1, 0.2, 0.7],  # width=40, height=60, area=2400
    [100.0, 150.0, 110.0, 160.0, 0.8, 0.3, 0.4, 0.3]  # width=10, height=10, area=100
], dtype=torch.float32)

# Define scale_range as (min_scale, max_scale)
# Objects with area in range [min_scale^2, max_scale^2] are kept
scale_range = (5.0, 60.0)  # min_scale=5, max_scale=60, so area range [25, 3600]

ARGS = {
    "output": output,
    "scale_range": scale_range
}
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 Tensor, ndim 2, dtype family float, shape (2, 8) — shape (2, 8) 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
fuse_conv_and_bn Ran
ran on a synthesized input
barisbatuhan/dass_det_inference/dass_det/utils/model_utils.py
code served (permissive licence) · get_code("d3111a0ae5602114")
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 Conv2d. 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 Conv2d layer
conv = nn.Conv2d(
    in_channels=3,
    out_channels=4,
    kernel_size=3,
    stride=1,
    padding=1,
    groups=1,
    bias=True
)

# Create a BatchNorm2d layer with same output channels as conv
bn = nn.BatchNorm2d(num_features=4)

# Initialize BatchNorm parameters to have valid values
bn.weight.data = torch.ones(4)
bn.bias.data = torch.zeros(4)
bn.running_mean.data = torch.zeros(4)
bn.running_var.data = torch.ones(4)
bn.eps = 1e-5

ARGS = {
    "conv": conv,
    "bn": bn
}
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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
get_activation Ran
ran; our contract draft was wrong, not the code
barisbatuhan/dass_det_inference/dass_det/models/network_blocks.py
code served (permissive licence) · get_code("6e3d5f4c3ce305d7")
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 SiLU. 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)

ARGS = {
    'name': 'silu',
    'inplace': True,
}
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 SiLU — a SiLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SiLU 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
get_faces_and_bodies_in_frame Ran
ran on a synthesized input
barisbatuhan/dass_detector/datasets/dcm_panels_creator.py
code served (permissive licence) · get_code("4ee3fb89cd920516")
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. 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)

# frame: tuple of (x1, y1, x2, y2, class_id)
frame = (10, 20, 100, 150, 0)

# faces: list of detections, each [x1, y1, x2, y2, class_id]
faces = [
    [30, 40, 80, 120, 1],
    [50, 60, 90, 110, 1],
]

# bodies: list of detections, each [x1, y1, x2, y2, class_id]
bodies = [
    [20, 50, 95, 145, 2],
    [5, 100, 15, 140, 2],
]

# margin: intersection threshold
margin = 0.5

ARGS = {
    "frame": frame,
    "faces": faces,
    "bodies": bodies,
    "margin": margin,
}
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 — a tuple output has no array shape of its own; none is 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
intersect Ran
ran; our contract draft was wrong, not the code
barisbatuhan/dass_det_inference/dass_det/utils/boxes.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from NVlabs/AL-MDN, is pointer only (licence: NOASSERTION) · get_code("f01c5f73515770a5")
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 NVlabs/AL-MDN, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

load_annotations Ran
ran on a synthesized input
barisbatuhan/dass_detector/datasets/dcm_panels_creator.py
code served (permissive licence) · get_code("7b6ebc447d32adc5")
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 os
import tempfile
import shutil

# Create a temporary directory structure to simulate the dcm-dataset
temp_dir = tempfile.mkdtemp()
dcm_path = temp_dir

# Create the required subdirectories
images_dir = os.path.join(dcm_path, 'images')
groundtruth_dir = os.path.join(dcm_path, 'groundtruth')
os.makedirs(images_dir, exist_ok=True)
os.makedirs(groundtruth_dir, exist_ok=True)

# Create sample annotation files
sample_files = ['image1', 'image2']
for file_name in sample_files:
    annot_file = os.path.join(groundtruth_dir, file_name + '.txt')
    with open(annot_file, 'w') as f:
        f.write('1 10 20 100 150\n')
        f.write('7 50 60 120 180\n')
        f.write('5 5 5 95 95\n')

# Create the group list with file names
group = ['image1\n', 'image2\n']

ARGS = {
    'dcm_path': dcm_path,
    'group': group
}
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
load_ckpt Ran
ran on a synthesized input
barisbatuhan/dass_det_inference/dass_det/utils/checkpoint.py
code served (permissive licence) · get_code("8851ffb179a522ed")
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)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

# Create a model instance
model = SimpleModel()

# Create a checkpoint dictionary with some matching and some non-matching keys
ckpt = {
    'linear1.weight': torch.randn(3, 4),
    'linear1.bias': torch.randn(3),
    'linear2.weight': torch.randn(2, 3),
    # 'linear2.bias' is intentionally missing
    'extra_key': torch.randn(5),  # This key doesn't exist in model
}

ARGS = {
    'model': model,
    'ckpt': ckpt,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
loguru, 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
fuse_model Not yet run
unverified (harvested, no recorded run)
barisbatuhan/dass_det_inference/dass_det/utils/model_utils.py
code served (permissive licence) · get_code("bce7fbf2f1717430")
How it ran

no invocation recorded.

get_total_and_free_memory_in_Mb Not yet run
unverified (harvested, no recorded run)
barisbatuhan/dass_det_inference/dass_det/utils/metric.py
code served (permissive licence) · get_code("8211e0d6dc4df44f")
How it ran

no invocation recorded.

is_parallel Not yet run
unverified (harvested, no recorded run)
barisbatuhan/dass_det_inference/dass_det/utils/ema.py
code served (permissive licence) · get_code("bbbb5d6a28074b9d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 5 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 5 later) and 6 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
intersect 14 other papers
4 dated earlier, 10 later
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1512.02325 (2015-12)
SSD: Single Shot MultiBox Detector
and 11 more not named here
get_activation 10 other papers
10 later
2107.08430 (2021-07)
YOLOX: Exceeding YOLO Series in 2021
2108.04230 (2021-08)
Workshop on Autonomous Driving at CVPR 2021: Technical Report for Streaming Perception Challenge
2110.06864 (2021-10)
ByteTrack: Multi-Object Tracking by Associating Every Detection Box
and 7 more not named here
is_parallel 8 other papers
8 later
2207.02541 (2022-07)
Dense Teacher: Dense Pseudo-Labels for Semi-supervised Object Detection
2209.10248 (2022-09)
BEVStereo: Enhancing Depth Estimation in Multi-view 3D Object Detection with Dynamic Temporal Stereo
2211.09445 (2022-11)
aiMotive Dataset: A Multimodal Dataset for Robust Autonomous Driving with Long-Range Perception
and 5 more not named here
fuse_conv_and_bn 1 other paper
1 later
2107.08430 (2021-07)
YOLOX: Exceeding YOLO Series in 2021
fuse_model 1 other paper
1 later
2107.08430 (2021-07)
YOLOX: Exceeding YOLO Series in 2021

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

Can we detect common objects in a variety of image domains without instance-level annotations? In this paper, we present a framework for a novel task, cross-domain weakly supervised object detection, which addresses this question. For this paper, we have access to images with instance-level annotations in a source domain (e.g., natural image) and images with image-level annotations in a target domain (e.g., watercolor). In addition, the classes to be detected in the target domain are all or a subset of those in the source domain. Starting from a fully supervised object detector, which is pre-trained on the source domain, we propose a two-step progressive domain adaptation technique by fine-tuning the detector on two types of artificially and automatically generated samples. We test our methods on our newly collected datasets containing three image domains, and achieve an improvement of approximately 5 to 20 percentage points in terms of mean average precision (mAP) compared to the best-performing baselines.

For agents

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

get_harvested_code_for_paper("1803.11365")
get_code_for_paper("1803.11365")
have("1803.11365")

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

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

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

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

Connect an agent — have() is free.