SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.07305 · 2019

Automatic adaptation of object detectors to new domains using self-training

arXiv · PDF · Open in the Atlas

Code that ran

8 of 18 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 5 have no contract verdict; 3 failures of our instrument; 10 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/1904.07305.json · badge: /api/ran/1904.07305.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
Gabriel-Macias/robust_frcnn community (classifier label)
classifier basis not recorded on the link
8 ran · 10 no recorded run
FunctionStatusWhere it lives
correct_pad Ran
ran; our contract draft was wrong, not the code
Gabriel-Macias/robust_frcnn/keras_frcnn/mobilenetv2.py
code served (permissive licence) · get_code("372c139f6aad1ede")
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 2, dtype family int; 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 torch
import numpy as np

# Create a minimal backend class that mimics Keras backend behavior
class MockBackend:
    def __init__(self, data_format='channels_last'):
        self._data_format = data_format
    
    def image_data_format(self):
        return self._data_format
    
    def int_shape(self, inputs):
        # Return the shape of the input tensor
        if isinstance(inputs, torch.Tensor):
            return tuple(inputs.shape)
        return inputs.shape

# Create a mock backend instance
backend = MockBackend(data_format='channels_last')

# Create a small input tensor with shape (batch, height, width, channels)
# Using channels_last format: batch=2, height=4, width=3, channels=5
torch.manual_seed(0)
inputs = torch.randn(2, 4, 3, 5)

# kernel_size can be an integer or tuple
kernel_size = 3

ARGS = {
    'backend': backend,
    'inputs': inputs,
    'kernel_size': kernel_size
}
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 tuple, ndim 2, dtype family int — 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
dense_block Ran
ran on a synthesized input
Gabriel-Macias/robust_frcnn/keras_frcnn/densenet.py
code served (permissive licence) · get_code("081f0e59aebb52e3")
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 EagerTensor, ndim 4, dtype family float, shape (2, 4, 4, 67) 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 tensorflow as tf
from keras import backend as K
from keras import layers
import numpy as np

# Set up Keras to use channels_last format
K.set_image_data_format('channels_last')

# Create a small input tensor with shape (batch, height, width, channels)
# batch=2, height=4, width=4, channels=3
x = tf.random.normal((2, 4, 4, 3))

# Define the parameters
blocks = 2
name = 'dense_block_1'

ARGS = {
    'x': x,
    'blocks': blocks,
    'name': name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 4, 4, 67) — shape (2, 4, 4, 67) 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
get_img_output_length Ran
ran on a synthesized input
Gabriel-Macias/robust_frcnn/keras_frcnn/densenet.py
code served (permissive licence) · get_code("b5afb710b31b739c")
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 int; 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 torch

torch.manual_seed(0)

ARGS = {
    "width": 256,
    "height": 512
}
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 int — 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
js_distance Ran
ran on a synthesized input
Gabriel-Macias/robust_frcnn/train_phase3_frcnn.py
code served (permissive licence) · get_code("c9b1379de8ad48db")
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 float64, ndim 0, 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 numpy as np

def kl_div(P, Q):
    return np.nansum([p * np.log2(p / (q + 1e-08)) for p, q in zip(P, Q) if p != 0])

def js_distance(P, Q):
    M = 0.5 * (P + Q)
    return np.sqrt(0.5 * kl_div(P, M) + 0.5 * kl_div(Q, M))

# Create two probability distributions as numpy arrays
# They should sum to 1 and have the same length
np.random.seed(0)
P = np.array([0.1, 0.3, 0.4, 0.2])
Q = np.array([0.2, 0.25, 0.35, 0.2])

# Normalize to ensure they're valid probability distributions
P = P / np.sum(P)
Q = Q / np.sum(Q)

ARGS = {
    "P": P,
    "Q": Q
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
kl_div Ran
ran on a synthesized input
Gabriel-Macias/robust_frcnn/train_phase3_frcnn.py
code served (permissive licence) · get_code("3f4bd2f243aba23a")
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 float64, ndim 0, 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 numpy as np

# The function kl_div takes two iterables P and Q
# It computes KL divergence by iterating through pairs
# It requires that elements are numeric and support:
# - Equality comparison (p != 0)
# - Division and logarithm operations
# - Iteration via zip

# Create two simple probability distributions as lists/arrays
P = np.array([0.1, 0.3, 0.4, 0.2])
Q = np.array([0.15, 0.25, 0.35, 0.25])

ARGS = {
    "P": P,
    "Q": Q
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
rpn Ran
ran; our contract draft was wrong, not the code
Gabriel-Macias/robust_frcnn/keras_frcnn/mobilenetv1.py
code served (permissive licence) · get_code("be60a1ca927bfdb5")
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. 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 tensorflow as tf
from keras.layers import Flatten, Dense, Input, Conv2D, MaxPooling2D, Dropout, BatchNormalization, Add, ReLU

# Create input tensor with shape (batch, height, width, channels)
# Using distinct dimensions: batch=2, height=4, width=3, channels=5
input_tensor = Input(shape=(4, 3, 5))

# Create base_layers output by passing through a simple Conv2D to get proper shape
base_layers = Conv2D(64, (3, 3), padding='same', activation='relu')(input_tensor)

# num_anchors is an integer representing the number of anchor boxes
num_anchors = 9

ARGS = {
    'base_layers': base_layers,
    'num_anchors': num_anchors
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
rpn Ran
ran; our contract draft was wrong, not the code
Gabriel-Macias/robust_frcnn/keras_frcnn/mobilenetv1_05.py
code served (permissive licence) · get_code("dd3825b8d1875b76")
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. 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
from keras.layers import Flatten, Dense, Input, Conv2D, MaxPooling2D, Dropout, BatchNormalization, Add, ReLU
from keras.models import Model

# Create a minimal base_layers that is a Keras tensor/layer output
# We need to construct a small CNN model that outputs a layer we can pass to rpn()
inputs = Input(shape=(32, 32, 3))
x = Conv2D(64, (3, 3), padding='same', activation='relu')(inputs)
x = MaxPooling2D((2, 2))(x)
x = Conv2D(128, (3, 3), padding='same', activation='relu')(x)

# x is now a Keras tensor that can be fed into rpn()
base_layers = x

num_anchors = 9

ARGS = {
    "base_layers": base_layers,
    "num_anchors": num_anchors
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
rpn Ran
ran on a synthesized input
Gabriel-Macias/robust_frcnn/keras_frcnn/mobilenetv1_25.py
code served (permissive licence) · get_code("e8d8c25f96ea6956")
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. 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 tensorflow as tf
from tensorflow import keras
from tensorflow.keras.layers import Flatten, Dense, Input, Conv2D, MaxPooling2D, Dropout, BatchNormalization, Add, ReLU

# Create a small input tensor to serve as base_layers
# Shape: (batch_size, height, width, channels)
# Using batch=2, height=4, width=3, channels=8 for distinct dimensions
input_tensor = keras.Input(shape=(4, 3, 8))

# Create a simple model that outputs the input for base_layers
base_model = keras.Model(inputs=input_tensor, outputs=input_tensor)

# Get the actual tensor output from the model
base_layers = base_model.output

# Define num_anchors
num_anchors = 9

ARGS = {
    'base_layers': base_layers,
    'num_anchors': num_anchors
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
class_loss_regr Not yet run
unverified (harvested, no recorded run)
Gabriel-Macias/robust_frcnn/keras_frcnn/losses.py
code served (permissive licence) · get_code("b6396e65cc2d636e")
How it ran

no invocation recorded.

identity_block Not yet run
unverified (harvested, no recorded run)
Gabriel-Macias/robust_frcnn/keras_frcnn/resnet.py
code served (permissive licence) · get_code("d3bdc6b05dbd86b1")
How it ran

no invocation recorded.

identity_block_td Not yet run
unverified (harvested, no recorded run)
Gabriel-Macias/robust_frcnn/keras_frcnn/resnet.py
code served (permissive licence) · get_code("aaf50b014616278e")
How it ran

no invocation recorded.

nn_base Not yet run
unverified (harvested, no recorded run)
Gabriel-Macias/robust_frcnn/keras_frcnn/mobilenetv1.py
code served (permissive licence) · get_code("fa214efc02584165")
How it ran

no invocation recorded.

nn_base Not yet run
unverified (harvested, no recorded run)
Gabriel-Macias/robust_frcnn/keras_frcnn/mobilenetv1_05.py
code served (permissive licence) · get_code("ffce07a1ea81a6dd")
How it ran

no invocation recorded.

nn_base Not yet run
unverified (harvested, no recorded run)
Gabriel-Macias/robust_frcnn/keras_frcnn/mobilenetv1_25.py
code served (permissive licence) · get_code("bf44a7fd1c6968f3")
How it ran

no invocation recorded.

nn_base Not yet run
unverified (harvested, no recorded run)
Gabriel-Macias/robust_frcnn/keras_frcnn/mobilenetv2.py
code served (permissive licence) · get_code("7710b0425c1f28e8")
How it ran

no invocation recorded.

rpn_loss_cls Not yet run
unverified (harvested, no recorded run)
Gabriel-Macias/robust_frcnn/keras_frcnn/losses.py
code served (permissive licence) · get_code("7fa7565671a5e2b3")
How it ran

no invocation recorded.

rpn_loss_regr Not yet run
unverified (harvested, no recorded run)
Gabriel-Macias/robust_frcnn/keras_frcnn/losses.py
code served (permissive licence) · get_code("c0ceb156b9cb836c")
How it ran

no invocation recorded.

transition_block Not yet run
unverified (harvested, no recorded run)
Gabriel-Macias/robust_frcnn/keras_frcnn/densenet.py
code served (permissive licence) · get_code("62b0b82803a67178")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 1 later) and 11 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
correct_pad 3 other papers
3 later
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
1911.08287 (2019-11)
Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
class_loss_regr 1 other paper
1 dated earlier
1802.08122 (2018-02)
Harmonious Attention Network for Person Re-Identification
get_img_output_length 1 other paper
1 dated earlier
1802.08122 (2018-02)
Harmonious Attention Network for Person Re-Identification
rpn 1 other paper
1 dated earlier
1802.08122 (2018-02)
Harmonious Attention Network for Person Re-Identification
rpn 1 other paper
1 dated earlier
1506.01497 (2015-06)
Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks
rpn_loss_cls 1 other paper
1 dated earlier
1802.08122 (2018-02)
Harmonious Attention Network for Person Re-Identification
rpn_loss_regr 1 other paper
1 dated earlier
1802.08122 (2018-02)
Harmonious Attention Network for Person Re-Identification

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

This work addresses the unsupervised adaptation of an existing object detector to a new target domain. We assume that a large number of unlabeled videos from this domain are readily available. We automatically obtain labels on the target data by using high-confidence detections from the existing detector, augmented with hard (misclassified) examples acquired by exploiting temporal cues using a tracker. These automatically-obtained labels are then used for re-training the original model. A modified knowledge distillation loss is proposed, and we investigate several ways of assigning soft-labels to the training examples from the target domain. Our approach is empirically evaluated on challenging face and pedestrian detection tasks: a face detector trained on WIDER-Face, which consists of high-quality images crawled from the web, is adapted to a large-scale surveillance data set; a pedestrian detector trained on clear, daytime images from the BDD-100K driving data set is adapted to all other scenarios such as rainy, foggy, night-time. Our results demonstrate the usefulness of incorporating hard examples obtained from tracking, the advantage of using soft-labels via distillation loss versus hard-labels, and show promising performance as a simple method for unsupervised domain adaptation of object detectors, with minimal dependence on hyper-parameters.

For agents

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

get_harvested_code_for_paper("1904.07305")
get_code_for_paper("1904.07305")
have("1904.07305")

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

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

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

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

Connect an agent — have() is free.