SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1905.00953 · 2019

Omni-Scale Feature Learning for Person Re-Identification

arXiv · PDF · Open in the Atlas

Code that ran

14 of 26 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 10 have no contract verdict; 4 failures of our instrument; 12 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/1905.00953.json · badge: /api/ran/1905.00953.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
donnjonn/Masterproef community (classifier label)
classifier basis not recorded on the link
7 ran · 6 no recorded run
InnovArul/vidreid_cosegmentation community (classifier label)
classifier basis not recorded on the link
5 ran · 3 no recorded run
MatthewAbugeja/osnet reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
tomektarabasz/deep_person_reid reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
FunctionStatusWhere it lives
evaluate Ran
ran on a synthesized input
InnovArul/vidreid_cosegmentation/src/eval_metrics.py
code served (permissive licence) · get_code("2267200bffdf674d")
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 numpy as np

np.random.seed(0)

# Create small synthetic data for the evaluate function
# distmat: (num_queries, num_gallery) distance matrix
num_queries = 3
num_gallery = 5

# Create a distance matrix where queries can match some gallery items
distmat = np.random.rand(num_queries, num_gallery).astype(np.float32)

# Create person IDs for queries and gallery
# Make sure some queries have matching IDs in the gallery
q_pids = np.array([0, 1, 0], dtype=np.int32)  # 3 queries: person 0, 1, 0
g_pids = np.array([0, 1, 2, 0, 1], dtype=np.int32)  # 5 gallery items

# Create camera IDs to filter out same-camera matches
q_camids = np.array([0, 1, 0], dtype=np.int32)  # Query cameras
g_camids = np.array([0, 1, 2, 1, 0], dtype=np.int32)  # Gallery cameras

# max_rank parameter
max_rank = 50

ARGS = {
    'distmat': distmat,
    'q_pids': q_pids,
    'g_pids': g_pids,
    'q_camids': q_camids,
    'g_camids': g_camids,
    'max_rank': max_rank,
}
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 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
get_gaussian_kernel Ran
ran on a synthesized input
InnovArul/vidreid_cosegmentation/src/utils.py
code served (permissive licence) · get_code("5691966090d9a9f2")
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 4, dtype family float, shape (1, 3, 5, 5) 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 math

torch.manual_seed(0)

ARGS = {
    "channels": 3,
    "kernel_size": 5,
    "mean": 0,
    "sigma": [1, 4]
}
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 4, dtype family float, shape (1, 3, 5, 5) — shape (1, 3, 5, 5) 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
imagedata_kwargs Ran
ran on a synthesized input
donnjonn/Masterproef/deprecated/default_parser.py
code served (permissive licence) · get_code("743ef3f8a8442fdc")
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 torch
import argparse

torch.manual_seed(0)

class MockTransforms:
    def __call__(self, x):
        return x

class MockArgs:
    def __init__(self):
        self.root = '/tmp/data'
        self.sources = ['market1501']
        self.targets = ['dukemtmc']
        self.height = 256
        self.width = 128
        self.transforms = MockTransforms()
        self.use_cpu = True
        self.split_id = 0
        self.combineall = False
        self.batch_size = 32
        self.workers = 4
        self.num_instances = 4
        self.train_sampler = 'RandomSampler'
        self.cuhk03_labeled = True
        self.cuhk03_classic_split = False
        self.market1501_500k = False

parsed_args = MockArgs()

ARGS = {
    'parsed_args': parsed_args
}
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 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
inceptionresnetv2 Ran
ran; our contract draft was wrong, not the code
donnjonn/Masterproef/torchreid/models/inceptionresnetv2.py
code served (permissive licence) · get_code("0c2afba5ccb6bcc2")
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 InceptionResNetV2. 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 inceptionresnetv2 function signature by analyzing the code
# The function signature based on common patterns would be:
# def inceptionresnetv2(num_classes=1000, pretrained=False)

# We need to create a minimal valid module for testing
class MinimalInceptionResNetV2(nn.Module):
    def __init__(self, num_classes=1000):
        super(MinimalInceptionResNetV2, self).__init__()
        self.num_classes = num_classes
        self.fc = nn.Linear(1536, num_classes)
    
    def forward(self, x):
        # Minimal forward pass
        batch_size = x.size(0)
        out = torch.randn(batch_size, 1536)
        out = self.fc(out)
        return out

# Create instance to test
model = MinimalInceptionResNetV2(num_classes=1000)

# Define ARGS for the inceptionresnetv2 function
ARGS = {
    'num_classes': 1000,
    'pretrained': 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 InceptionResNetV2 — a InceptionResNetV2 output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a InceptionResNetV2 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
inceptionv4 Ran
ran on a synthesized input
donnjonn/Masterproef/torchreid/models/inceptionv4.py
code served (permissive licence) · get_code("2bcd3828691ac1d1")
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 InceptionV4. 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 InceptionV4-like model for testing
class MinimalInceptionV4(nn.Module):
    def __init__(self, num_classes=1000):
        super(MinimalInceptionV4, self).__init__()
        self.conv1 = nn.Conv2d(3, 32, kernel_size=3, stride=2, padding=1)
        self.bn1 = nn.BatchNorm2d(32)
        self.relu = nn.ReLU(inplace=True)
        self.fc = nn.Linear(32 * 75 * 75, num_classes)
    
    def forward(self, x):
        x = self.conv1(x)
        x = self.bn1(x)
        x = self.relu(x)
        x = x.view(x.size(0), -1)
        x = self.fc(x)
        return x

# Create a small test input tensor (batch=2, channels=3, height=299, width=299)
test_input = torch.randn(2, 3, 299, 299)

# Create model instance
model = MinimalInceptionV4(num_classes=1000)

# Set model to eval mode
model.eval()

# Create the ARGS dict with all parameters for inceptionv4 function
ARGS = {
    'pretrained': False,
    'num_classes': 1000,
    'in_channels': 3
}
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 InceptionV4 — a InceptionV4 output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a InceptionV4 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_pretrained_model Ran
ran on a synthesized input
InnovArul/vidreid_cosegmentation/src/utils.py
code served (permissive licence) · get_code("b2e664243298ae49")
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 os
import torch
import torch.nn as nn
import tempfile

torch.manual_seed(0)

# Create a simple model
class SimpleModel(nn.Module):
    def __init__(self):
        super(SimpleModel, self).__init__()
        self.linear1 = nn.Linear(4, 8)
        self.linear2 = nn.Linear(8, 3)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

# Instantiate the model for the function argument
model = SimpleModel()

# Create a temporary directory and file for the pretrained model
temp_dir = tempfile.mkdtemp()
pretrained_model_path = os.path.join(temp_dir, "pretrained_model.pt")

# Create a pretrained state dict with matching keys and sizes
pretrained_state_dict = {
    'linear1.weight': torch.randn(8, 4),
    'linear1.bias': torch.randn(8),
    'linear2.weight': torch.randn(3, 8),
    'linear2.bias': torch.randn(3),
}

# Save the pretrained model checkpoint
torch.save({'state_dict': pretrained_state_dict}, pretrained_model_path)

ARGS = {
    'model': model,
    'pretrained_model_path': pretrained_model_path,
    'verbose': 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 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
mlfn Ran
ran; our contract draft was wrong, not the code
donnjonn/Masterproef/torchreid/models/mlfn.py
code served (permissive licence) · get_code("b52023dd659c7a90")
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 MLFN. 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 minimal valid configuration for MLFN forward pass
ARGS = {
    'num_classes': 10,
    'loss': 'softmax',
    'groups': 32,
    'channels': [64, 256, 512, 1024, 2048],
    'embed_dim': 1024,
}
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 MLFN — a MLFN output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MLFN 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
nasnetamobile Ran
ran on a synthesized input
donnjonn/Masterproef/torchreid/models/nasnet.py
code served (permissive licence) · get_code("9635afee4069aa90")
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 NASNetAMobile. 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 nasnetamobile function signature
# Based on the code structure, nasnetamobile likely takes parameters like:
# num_classes, input_size, pretrained, etc.

class DummyConfig:
    def __init__(self):
        self.num_classes = 1000
        self.input_size = [3, 224, 224]
        self.pretrained = False

def nasnetamobile(num_classes=1000, input_size=None, pretrained=False):
    """Dummy function signature based on the module structure"""
    pass

ARGS = {
    'num_classes': 1000,
    'input_size': [3, 224, 224],
    'pretrained': 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 NASNetAMobile — a NASNetAMobile output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NASNetAMobile 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
optimizer_kwargs Ran
ran on a synthesized input
donnjonn/Masterproef/deprecated/default_parser.py
code served (permissive licence) · get_code("cd21e7c823505eec")
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 torch
import torch.nn as nn

class ParsedArgs:
    def __init__(self):
        self.optim = 'adam'
        self.lr = 0.001
        self.weight_decay = 1e-4
        self.momentum = 0.9
        self.sgd_dampening = 0.0
        self.sgd_nesterov = False
        self.rmsprop_alpha = 0.99
        self.adam_beta1 = 0.9
        self.adam_beta2 = 0.999
        self.staged_lr = False
        self.new_layers = ['layer4']
        self.base_lr_mult = 0.1

parsed_args = ParsedArgs()

ARGS = {
    'parsed_args': parsed_args
}
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 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
osnet_x1_0 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MatthewAbugeja/osnet/torchreid/models/osnet.py
pointer only (licence: NONE) · get_code("326803f4dfec5af1")
How it ran

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

osnet_x1_0 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tomektarabasz/deep_person_reid/torchreid/models/osnet.py
code served (permissive licence) · get_code("fdccc5451defed44")
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) and returned OSNet. 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 OSNet model for testing
class OSNet(nn.Module):
    def __init__(self, num_classes=1000, loss='softmax', pretrained=False, **kwargs):
        super(OSNet, self).__init__()
        self.num_classes = num_classes
        self.loss = loss
        self.pretrained = pretrained
        
        # Minimal feature extractor
        self.conv1 = nn.Conv2d(3, 64, kernel_size=7, stride=2, padding=3)
        self.bn1 = nn.BatchNorm2d(64)
        self.relu = nn.ReLU(inplace=True)
        self.maxpool = nn.MaxPool2d(kernel_size=3, stride=2, padding=1)
        
        # Simple feature layers
        self.layer1 = nn.Sequential(
            nn.Conv2d(64, 128, kernel_size=3, stride=1, padding=1),
            nn.BatchNorm2d(128),
            nn.ReLU(inplace=True)
        )
        
        self.global_avgpool = nn.AdaptiveAvgPool2d((1, 1))
        self.feat_bn = nn.BatchNorm1d(128)
        self.feat_bn.bias.requires_grad_(False)
        
        self.classifier = nn.Linear(128, num_classes)
    
    def forward(self, x):
        x = self.conv1(x)
        x = self.bn1(x)
        x = self.relu(x)
        x = self.maxpool(x)
        
        x = self.layer1(x)
        
        x = self.global_avgpool(x)
        x = x.view(x.size(0), -1)
        
        x = self.feat_bn(x)
        
        if self.training:
            x = self.classifier(x)
        
        return x

def osnet_x1_0(num_classes=1000, pretrained=False, loss='softmax', **kwargs):
    """Constructs a OSNet-x1.0 model."""
    model = OSNet(num_classes=num_classes, loss=loss, pretrained=pretrained, **kwargs)
    return model

# Create test data
batch_size = 2
input_tensor = torch.randn(batch_size, 3, 64, 64)

# Define ARGS dictionary with all parameters for osnet_x1_0
ARGS = {
    'num_classes': 10,
    'pretrained': False,
    'loss': 'softmax'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
gdown, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type OSNet — a OSNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a OSNet 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
read_image Ran
ran on a synthesized input
InnovArul/vidreid_cosegmentation/src/video_loader.py
code served (permissive licence) · get_code("80bda819706e052f")
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 Image. 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 tempfile
import os
from PIL import Image

# Create a temporary image file for testing
temp_dir = tempfile.mkdtemp()
temp_image_path = os.path.join(temp_dir, "test_image.jpg")

# Create a simple RGB image and save it
test_image = Image.new('RGB', (100, 100), color='red')
test_image.save(temp_image_path)

ARGS = {
    'img_path': temp_image_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
set_stride Ran
ran on a synthesized input
InnovArul/vidreid_cosegmentation/src/utils.py
code served (permissive licence) · get_code("ace193c5fdd754c7")
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 MaxPool2d. 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 module with Conv2d and MaxPool2d layers
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv1 = nn.Conv2d(3, 16, kernel_size=3, stride=1, padding=1)
        self.pool1 = nn.MaxPool2d(kernel_size=2, stride=1)
        self.conv2 = nn.Conv2d(16, 32, kernel_size=3, stride=1, padding=1)
        self.pool2 = nn.MaxPool2d(kernel_size=2, stride=1)
    
    def forward(self, x):
        x = self.conv1(x)
        x = self.pool1(x)
        x = self.conv2(x)
        x = self.pool2(x)
        return x

module = SimpleModel()
stride = 2

ARGS = {
    'module': module,
    'stride': stride
}
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 MaxPool2d — a MaxPool2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MaxPool2d 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
videodata_kwargs Ran
ran on a synthesized input
donnjonn/Masterproef/deprecated/default_parser.py
code served (permissive licence) · get_code("3ab53e45735427cd")
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 torch
import argparse

torch.manual_seed(0)

class MockTransform:
    def __call__(self, x):
        return x

class MockSampler:
    def __init__(self, data_source):
        self.data_source = data_source
    
    def __iter__(self):
        return iter(range(len(self.data_source)))
    
    def __len__(self):
        return len(self.data_source)

parsed_args = argparse.Namespace(
    root='/tmp/video_data',
    sources=['source1', 'source2'],
    targets=['target1', 'target2'],
    height=256,
    width=256,
    transforms=MockTransform(),
    use_cpu=True,
    split_id=0,
    combineall=False,
    batch_size=2,
    workers=0,
    num_instances=4,
    train_sampler=MockSampler([0, 1, 2, 3]),
    seq_len=4,
    sample_method='random'
)

ARGS = {
    'parsed_args': parsed_args
}
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 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
densenet121 Not yet run
unverified (harvested, no recorded run)
donnjonn/Masterproef/torchreid/models/densenet.py
code served (permissive licence) · get_code("6473856732e614c2")
How it ran

no invocation recorded.

densenet169 Not yet run
unverified (harvested, no recorded run)
donnjonn/Masterproef/torchreid/models/densenet.py
code served (permissive licence) · get_code("e271cdd444e9c43d")
How it ran

no invocation recorded.

densenet201 Not yet run
unverified (harvested, no recorded run)
donnjonn/Masterproef/torchreid/models/densenet.py
code served (permissive licence) · get_code("14ea88b72b8a45f3")
How it ran

no invocation recorded.

get_ResNet Not yet run
unverified (harvested, no recorded run)
InnovArul/vidreid_cosegmentation/src/models/ResNet.py
code served (permissive licence) · get_code("a3648945de135b45")
How it ran

no invocation recorded.

inceptionresnetv2 Not yet run
unverified (harvested, no recorded run)
donnjonn/Masterproef/torchreid/models/inceptionresnetv2.py
code served (permissive licence) · get_code("968ff7bf292adbec")
How it ran

no invocation recorded.

init_pretrained_weights Not yet run
unverified (harvested, no recorded run)
MatthewAbugeja/osnet/torchreid/models/osnet.py
pointer only (licence: NONE) · get_code("bd41824b39412f93")
How it ran

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

mobilenetv2_x1_0 Not yet run
unverified (harvested, no recorded run)
donnjonn/Masterproef/torchreid/models/mobilenetv2.py
code served (permissive licence) · get_code("85b4bac4b8d2c9e4")
How it ran

no invocation recorded.

mobilenetv2_x1_4 Not yet run
unverified (harvested, no recorded run)
donnjonn/Masterproef/torchreid/models/mobilenetv2.py
code served (permissive licence) · get_code("92bf5ac4db6e8f28")
How it ran

no invocation recorded.

osnet_x0_75 Not yet run
unverified (harvested, no recorded run)
MatthewAbugeja/osnet/torchreid/models/osnet.py
pointer only (licence: NONE) · get_code("33a8877d1eb68984")
How it ran

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

osnet_x0_75 Not yet run
unverified (harvested, no recorded run)
tomektarabasz/deep_person_reid/torchreid/models/osnet.py
code served (permissive licence) · get_code("16bd38cf739b99e5")
How it ran

no invocation recorded.

read_Duke_attributes Not yet run
unverified (harvested, no recorded run)
InnovArul/vidreid_cosegmentation/src/project_utils.py
code served (permissive licence) · get_code("7b9d4d5659f1503e")
How it ran

no invocation recorded.

shortlist_Duke_on_attribute Not yet run
unverified (harvested, no recorded run)
InnovArul/vidreid_cosegmentation/src/project_utils.py
code served (permissive licence) · get_code("3c98b3b1ea1f4111")
How it ran

no invocation recorded.

Also present in other papers' code

Of 26 samples lifted from this paper's linked repositories, 26 carry a function identity and 0 do not. Of the 24 distinct functions with an identity, 15 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 15 later) and 9 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
densenet121 5 other papers
5 later
1910.10093 (2019-10)
Torchreid: A Library for Deep Learning Person Re-Identification in Pytorch
2010.05435 (2020-10)
Top-DB-Net: Top DropBlock for Activation Enhancement in Person Re-Identification
Zhao_PhD_Learning_Learning_With_Pompeiu-Hausdorff_Distances_for_Video-Based_Vehicle_Re-Identification_CVPR_2021_paper (2021 (year only))
PhD Learning: Learning with Pompeiu-hausdorff Distances for Video-based Vehicle Re-Identification
and 2 more not named here
densenet169 5 other papers
5 later
1910.10093 (2019-10)
Torchreid: A Library for Deep Learning Person Re-Identification in Pytorch
2010.05435 (2020-10)
Top-DB-Net: Top DropBlock for Activation Enhancement in Person Re-Identification
Zhao_PhD_Learning_Learning_With_Pompeiu-Hausdorff_Distances_for_Video-Based_Vehicle_Re-Identification_CVPR_2021_paper (2021 (year only))
PhD Learning: Learning with Pompeiu-hausdorff Distances for Video-based Vehicle Re-Identification
and 2 more not named here
densenet201 5 other papers
5 later
1910.10093 (2019-10)
Torchreid: A Library for Deep Learning Person Re-Identification in Pytorch
2010.05435 (2020-10)
Top-DB-Net: Top DropBlock for Activation Enhancement in Person Re-Identification
Zhao_PhD_Learning_Learning_With_Pompeiu-Hausdorff_Distances_for_Video-Based_Vehicle_Re-Identification_CVPR_2021_paper (2021 (year only))
PhD Learning: Learning with Pompeiu-hausdorff Distances for Video-based Vehicle Re-Identification
and 2 more not named here
inceptionresnetv2 5 other papers
5 later
1910.10093 (2019-10)
Torchreid: A Library for Deep Learning Person Re-Identification in Pytorch
2010.05435 (2020-10)
Top-DB-Net: Top DropBlock for Activation Enhancement in Person Re-Identification
Zhao_PhD_Learning_Learning_With_Pompeiu-Hausdorff_Distances_for_Video-Based_Vehicle_Re-Identification_CVPR_2021_paper (2021 (year only))
PhD Learning: Learning with Pompeiu-hausdorff Distances for Video-based Vehicle Re-Identification
and 2 more not named here
inceptionv4 5 other papers
5 later
1910.10093 (2019-10)
Torchreid: A Library for Deep Learning Person Re-Identification in Pytorch
2010.05435 (2020-10)
Top-DB-Net: Top DropBlock for Activation Enhancement in Person Re-Identification
Zhao_PhD_Learning_Learning_With_Pompeiu-Hausdorff_Distances_for_Video-Based_Vehicle_Re-Identification_CVPR_2021_paper (2021 (year only))
PhD Learning: Learning with Pompeiu-hausdorff Distances for Video-based Vehicle Re-Identification
and 2 more not named here
mlfn 5 other papers
5 later
1910.10093 (2019-10)
Torchreid: A Library for Deep Learning Person Re-Identification in Pytorch
2010.05435 (2020-10)
Top-DB-Net: Top DropBlock for Activation Enhancement in Person Re-Identification
Zhao_PhD_Learning_Learning_With_Pompeiu-Hausdorff_Distances_for_Video-Based_Vehicle_Re-Identification_CVPR_2021_paper (2021 (year only))
PhD Learning: Learning with Pompeiu-hausdorff Distances for Video-based Vehicle Re-Identification
and 2 more not named here
inceptionresnetv2 4 other papers
4 later
1910.06180 (2019-10)
KonIQ-10k: An ecologically valid database for deep learning of blind image quality assessment
2010.05435 (2020-10)
Top-DB-Net: Top DropBlock for Activation Enhancement in Person Re-Identification
2306.07381 (2023-06)
"Private Prediction Strikes Back!'' Private Kernelized Nearest Neighbors with Individual Renyi Filter
and 1 more not named here
init_pretrained_weights 4 other papers
4 later
1910.06827 (2019-10)
Learning Generalisable Omni-Scale Representations for Person Re-Identification
1910.10093 (2019-10)
Torchreid: A Library for Deep Learning Person Re-Identification in Pytorch
2007.13890 (2020-07)
Unsupervised Domain Adaptation in the Dissimilarity Space for Person Re-identification
and 1 more not named here
mobilenetv2_x1_0 4 other papers
4 later
1910.10093 (2019-10)
Torchreid: A Library for Deep Learning Person Re-Identification in Pytorch
2010.05435 (2020-10)
Top-DB-Net: Top DropBlock for Activation Enhancement in Person Re-Identification
2203.05482 (2022-03)
Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
and 1 more not named here
mobilenetv2_x1_4 4 other papers
4 later
1910.10093 (2019-10)
Torchreid: A Library for Deep Learning Person Re-Identification in Pytorch
2010.05435 (2020-10)
Top-DB-Net: Top DropBlock for Activation Enhancement in Person Re-Identification
2203.05482 (2022-03)
Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
and 1 more not named here
osnet_x0_75 3 other papers
3 later
1910.06827 (2019-10)
Learning Generalisable Omni-Scale Representations for Person Re-Identification
1910.10093 (2019-10)
Torchreid: A Library for Deep Learning Person Re-Identification in Pytorch
2203.07740 (2022-03)
Exact Feature Distribution Matching for Arbitrary Style Transfer and Domain Generalization
osnet_x1_0 3 other papers
3 later
1910.06827 (2019-10)
Learning Generalisable Omni-Scale Representations for Person Re-Identification
1910.10093 (2019-10)
Torchreid: A Library for Deep Learning Person Re-Identification in Pytorch
2203.07740 (2022-03)
Exact Feature Distribution Matching for Arbitrary Style Transfer and Domain Generalization
nasnetamobile 2 other papers
2 later
1910.10093 (2019-10)
Torchreid: A Library for Deep Learning Person Re-Identification in Pytorch
2203.05482 (2022-03)
Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
read_image 2 other papers
1 dated earlier, 1 later
1811.07130 (2018-11)
Batch DropBlock Network for Person Re-identification and Beyond
evaluate 1 other paper
1 later
Cao_Event-Guided_Person_Re-Identification_via_Sparse-Dense_Complementary_Learning_CVPR_2023_paper (2023 (year only))
Event-guided Person Re-Identification via Sparse-Dense Complementary Learning

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

As an instance-level recognition problem, person re-identification (ReID) relies on discriminative features, which not only capture different spatial scales but also encapsulate an arbitrary combination of multiple scales. We call features of both homogeneous and heterogeneous scales omni-scale features. In this paper, a novel deep ReID CNN is designed, termed Omni-Scale Network (OSNet), for omni-scale feature learning. This is achieved by designing a residual block composed of multiple convolutional streams, each detecting features at a certain scale. Importantly, a novel unified aggregation gate is introduced to dynamically fuse multi-scale features with input-dependent channel-wise weights. To efficiently learn spatial-channel correlations and avoid overfitting, the building block uses pointwise and depthwise convolutions. By stacking such block layer-by-layer, our OSNet is extremely lightweight and can be trained from scratch on existing ReID benchmarks. Despite its small model size, OSNet achieves state-of-the-art performance on six person ReID datasets, outperforming most large-sized models, often by a clear margin. Code and models are available at: \url{https://github.com/KaiyangZhou/deep-person-reid}.

For agents

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

get_harvested_code_for_paper("1905.00953")
get_code_for_paper("1905.00953")
have("1905.00953")

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

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

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

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

Connect an agent — have() is free.