SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.16914 · 2023

Brain-ID: Learning Contrast-agnostic Anatomical Representations for Brain Imaging

arXiv · PDF · Open in the Atlas

Code that ran

12 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 9 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/2311.16914.json · badge: /api/ran/2311.16914.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
peirong26/Brain-ID canonical (classifier label)
classifier basis: census
12 ran · 3 no recorded run
FunctionStatusWhere it lives
align_shape Ran
ran, violated the contract we drafted
peirong26/Brain-ID/BrainID/models/evaluator.py
code served (permissive licence) · get_code("5c9440fb374410ce")
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 4, 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 torch
import numpy as np

torch.manual_seed(0)

# Create two 3D arrays with different shapes
# The function accesses .shape and indexes with [:s, :r, :c]
nda1 = np.random.randn(5, 6, 7)
nda2 = np.random.randn(3, 4, 8)

ARGS = {
    'nda1': nda1,
    'nda2': nda2
}
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 4, 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
convert_basic_c2_names Ran
ran; our contract draft was wrong, not the code
peirong26/Brain-ID/utils/checkpoint.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
even_sample Ran
ran, honoured the contract we drafted
peirong26/Brain-ID/BrainID/visualizer.py
code served (permissive licence) · get_code("aef4107b9a82b29c")
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 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
from math import ceil

# The function even_sample takes:
# - orig_len: an integer representing the original length
# - num: an integer representing the number of samples to generate

ARGS = {
    "orig_len": 100,
    "num": 10
}
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 list, ndim 1, dtype family int — 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
gaussian_loss Ran
ran; our contract draft was wrong, not the code
peirong26/Brain-ID/BrainID/models/losses.py
code served (permissive licence) · get_code("6bd5446ea46e3dd1")
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 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for the function parameters
batch_size = 2
dim = 4

# outputs_mu: mean predictions from model
outputs_mu = torch.randn(batch_size, dim)

# outputs_sigma: log-variance predictions from model
outputs_sigma = torch.randn(batch_size, dim)

# targets: ground truth values
targets = torch.randn(batch_size, dim)

# weights: scalar or tensor weights for each sample
weights = 1.0

ARGS = {
    "outputs_mu": outputs_mu,
    "outputs_sigma": outputs_sigma,
    "targets": targets,
    "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 Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_head Ran
ran; our contract draft was wrong, not the code
peirong26/Brain-ID/BrainID/models/head.py
code served (permissive licence) · get_code("5b564986ff77b9e5")
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 IndepHead. 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 SimpleArgs:
    def __init__(self):
        self.task = 'feat'
        self.losses = SimpleNamespace()
        self.losses.uncertainty = None

class SimpleNamespace:
    pass

# Create args object
args = SimpleArgs()

# Define f_maps_list: list of channel dimensions for progressive layers
# Using distinct sizes: 4, 8, 16
f_maps_list = [4, 8, 16]

# Define out_channels: dict mapping output names to number of output channels
out_channels = {
    'output1': 1,
    'output2': 2
}

# Define is_3d
is_3d = True

# Define out_feat_level (index into feature list)
out_feat_level = -1

# Construct ARGS dictionary with all parameters for get_head
ARGS = {
    'args': args,
    'f_maps_list': f_maps_list,
    'out_channels': out_channels,
    'is_3d': is_3d,
    'out_feat_level': out_feat_level
}
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 IndepHead — a IndepHead output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a IndepHead 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_joiner Ran
ran; our contract draft was wrong, not the code
peirong26/Brain-ID/BrainID/models/joiner.py
code served (permissive licence) · get_code("ffed10acc6f568b4")
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 MultiInputDepJoiner. 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 backbone that implements get_feature method
class MinimalBackbone(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc = nn.Linear(4, 8)
    
    def get_feature(self, x):
        return self.fc(x)

# Create a minimal head that can work independently or with input
class MinimalHead(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc = nn.Linear(8, 3)
    
    def forward(self, feat, input_tensor=None):
        return {'output': self.fc(feat)}

# Build instances
backbone = MinimalBackbone()
head = MinimalHead()

# Create sample input_list with the expected structure
# Each item should be a dict with 'input' key containing a tensor
input_list = [
    {'input': torch.randn(2, 4)},
    {'input': torch.randn(2, 4)}
]

ARGS = {
    'task': 'sr',  # 'sr' triggers MultiInputDepJoiner
    'backbone': backbone,
    'head': head
}
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 MultiInputDepJoiner — a MultiInputDepJoiner output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MultiInputDepJoiner 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_onehot Ran
ran; our contract draft was wrong, not the code
peirong26/Brain-ID/BrainID/models/evaluator.py
code served (permissive licence) · get_code("5bbdc15bd4bc1394")
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 (33, 2, 3, 4) 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 numpy as np
import torch

torch.manual_seed(0)

# The function expects:
# - label: a numpy array that will be squeezed and converted to tensor
# - device: a torch device

# Looking at the function body:
# - label is squeezed, converted to tensor, and indexed into lut
# - The result is indexed into onehotmatrix which has shape (n_labels, n_labels)
# - The final permute is [3, 0, 1, 2], suggesting the onehot tensor has 4 dimensions
# - Working backwards: onehotmatrix[lut[label]] produces shape (batch, height, width, n_labels)
# - So label should be a 3D array (batch, height, width) or similar

# Create a small label array with values matching the label_list_segmentation
# We'll use a small spatial grid (2x3x4) to keep it tiny
label_data = np.array([
    [[0, 14, 15, 16],
     [24, 77, 85, 2],
     [3, 4, 7, 8]],
    [[10, 11, 12, 13],
     [17, 18, 26, 28],
     [41, 42, 43, 46]]
], dtype=np.int64)

device = torch.device('cpu')

ARGS = {
    'label': label_data,
    'device': device
}
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 4, dtype family float, shape (33, 2, 3, 4) — shape (33, 2, 3, 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
get_processors Ran
ran; our contract draft was wrong, not the code
peirong26/Brain-ID/BrainID/models/joiner.py
code served (permissive licence) · get_code("06bb22e0b46f52a7")
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 torch
import torch.nn as nn

torch.manual_seed(0)

class ArgsConfig:
    def __init__(self):
        self.losses = LossesConfig()
        self.output_names = ['pred1', 'pred2']

class LossesConfig:
    def __init__(self):
        self.uncertainty = None

ARGS = {
    'args': ArgsConfig(),
    'task': 'seg_contrastive',
    '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 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
l1_loss Ran
ran; our contract draft was wrong, not the code
peirong26/Brain-ID/BrainID/models/losses.py
code served (permissive licence) · get_code("1112222d38da99ce")
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 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for outputs and targets
outputs = torch.randn(2, 4)
targets = torch.randn(2, 4)

# Create weights tensor with same shape as outputs/targets
weights = torch.ones(2, 4)

ARGS = {
    "outputs": outputs,
    "targets": targets,
    "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 Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
l2_loss Ran
ran; our contract draft was wrong, not the code
peirong26/Brain-ID/BrainID/models/losses.py
code served (permissive licence) · get_code("21d2dd0d7c3c815e")
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 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for outputs and targets
outputs = torch.randn(2, 4)  # batch_size=2, dim=4
targets = torch.randn(2, 4)  # batch_size=2, dim=4

# Create weights tensor (can be scalar or same shape as outputs/targets)
weights = torch.ones(2, 4)

ARGS = {
    "outputs": outputs,
    "targets": targets,
    "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 Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pad_shape Ran
ran, honoured the contract we drafted
peirong26/Brain-ID/BrainID/visualizer.py
code served (permissive licence) · get_code("66a524eaae73c605")
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 3, 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

# Create a list of numpy arrays with different shapes to be padded
# The function will pad them all to the same maximum shape

# 2D arrays with different sizes
array1_2d = np.array([[1.0, 2.0, 3.0],
                       [4.0, 5.0, 6.0]])  # shape (2, 3)

array2_2d = np.array([[7.0, 8.0],
                       [9.0, 10.0],
                       [11.0, 12.0],
                       [13.0, 14.0]])  # shape (4, 2)

array_list_2d = [array1_2d, array2_2d]

# 3D arrays with different sizes
array1_3d = np.random.randn(2, 3, 4)  # shape (2, 3, 4)
array2_3d = np.random.randn(3, 2, 5)  # shape (3, 2, 5)

array_list_3d = [array1_3d, array2_3d]

# 4D arrays with different sizes
array1_4d = np.random.randn(2, 3, 4, 5)  # shape (2, 3, 4, 5)
array2_4d = np.random.randn(3, 2, 3, 4)  # shape (3, 2, 3, 4)

array_list_4d = [array1_4d, array2_4d]

# Test with 2D arrays
ARGS = {
    "array_list": array_list_2d
}
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 list, ndim 3, 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
recursive_update Ran
ran; our contract draft was wrong, not the code
peirong26/Brain-ID/utils/config.py
code served (permissive licence) · get_code("7999fe0312243534")
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 AttrDict. 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 collections

class AttrDict(dict):
    """Dict as attribute trick."""

    def __init__(self, *args, **kwargs):
        super(AttrDict, self).__init__(*args, **kwargs)
        self.__dict__ = self
        for key, value in self.__dict__.items():
            if isinstance(value, dict):
                self.__dict__[key] = AttrDict(value)
            elif isinstance(value, (list, tuple)):
                if isinstance(value[0], dict):
                    self.__dict__[key] = [AttrDict(item) for item in value]
                else:
                    self.__dict__[key] = value

    def yaml(self):
        """Convert object to yaml dict and return."""
        yaml_dict = {}
        for key, value in self.__dict__.items():
            if isinstance(value, AttrDict):
                yaml_dict[key] = value.yaml()
            elif isinstance(value, list):
                if isinstance(value[0], AttrDict):
                    new_l = []
                    for item in value:
                        new_l.append(item.yaml())
                    yaml_dict[key] = new_l
                else:
                    yaml_dict[key] = value
            else:
                yaml_dict[key] = value
        return yaml_dict

    def __repr__(self):
        """Print all variables."""
        ret_str = []
        for key, value in self.__dict__.items():
            if isinstance(value, AttrDict):
                ret_str.append('{}:'.format(key))
                child_ret_str = value.__repr__().split('\n')
                for item in child_ret_str:
                    ret_str.append('    ' + item)
            elif isinstance(value, list):
                if isinstance(value[0], AttrDict):
                    ret_str.append('{}:'.format(key))
                    for item in value:
                        child_ret_str = item.__repr__().split('\n')
                        for item in child_ret_str:
                            ret_str.append('    ' + item)
                else:
                    ret_str.append('{}: {}'.format(key, value))
            else:
                ret_str.append('{}: {}'.format(key, value))
        return '\n'.join(ret_str)

def recursive_update(d, u):
    """Recursively update AttrDict d with AttrDict u"""
    if u is not None:
        for key, value in u.items():
            if isinstance(value, collections.abc.Mapping):
                d.__dict__[key] = recursive_update(d.get(key, AttrDict({})), value)
            elif isinstance(value, (list, tuple)):
                if len(value) > 0 and isinstance(value[0], dict):
                    d.__dict__[key] = [AttrDict(item) for item in value]
                else:
                    d.__dict__[key] = value
            else:
                d.__dict__[key] = value
    return d


# Setup code to construct valid arguments
d = AttrDict({
    'learning_rate': 0.001,
    'batch_size': 32,
    'nested': {
        'value1': 10,
        'value2': 'test'
    },
    'list_of_dicts': [
        {'item1': 1, 'item2': 2},
        {'item3': 3, 'item4': 4}
    ],
    'simple_list': [1, 2, 3]
})

u = AttrDict({
    'learning_rate': 0.002,
    'new_key': 'new_value',
    'nested': {
        'value1': 20,
        'value3': 'added'
    },
    'list_of_dicts': [
        {'item1': 100, 'item2': 200}
    ]
})

ARGS = {
    'd': d,
    'u': u
}
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 AttrDict — a AttrDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a AttrDict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
match_shape Not yet run
unverified (harvested, no recorded run)
peirong26/Brain-ID/BrainID/visualizer.py
code served (permissive licence) · get_code("24494a5b455a5ef5")
How it ran

no invocation recorded.

rgetattr Not yet run
unverified (harvested, no recorded run)
peirong26/Brain-ID/utils/config.py
code served (permissive licence) · get_code("f6c7280f75271482")
How it ran

no invocation recorded.

rsetattr Not yet run
unverified (harvested, no recorded run)
peirong26/Brain-ID/utils/config.py
code served (permissive licence) · get_code("31aa2f35339fe269")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 12 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 2 the same month, 12 later) and 3 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
35 dated earlier, 8 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
rgetattr 13 other papers
6 dated earlier, 1 the same month, 5 later, 1 same year, order not determinable · 1 only as an assembly brick
2203.04036 (2022-03)
StyleHEAT: One-Shot High-Resolution Editable Talking Face Generation via Pre-trained StyleGAN
2209.02952 (2022-09)
BiFuse++: Self-supervised and Efficient Bi-projection Fusion for 360 Depth Estimation
2211.05778 (2022-11)
InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutions
and 10 more not named here
rsetattr 8 other papers
3 dated earlier, 1 the same month, 4 later
2203.04036 (2022-03)
StyleHEAT: One-Shot High-Resolution Editable Talking Face Generation via Pre-trained StyleGAN
2212.04501 (2022-12)
Learning Video Representations from Large Language Models
2305.13417 (2023-05)
VISIT: Visualizing and Interpreting the Semantic Information Flow of Transformers
and 5 more not named here
align_shape 1 other paper
1 later
2403.06227 (2024-03)
PEPSI: Pathology-Enhanced Pulse-Sequence-Invariant Representations for Brain MRI
even_sample 1 other paper
1 later
2403.06227 (2024-03)
PEPSI: Pathology-Enhanced Pulse-Sequence-Invariant Representations for Brain MRI
gaussian_loss 1 other paper
1 later
2403.06227 (2024-03)
PEPSI: Pathology-Enhanced Pulse-Sequence-Invariant Representations for Brain MRI
get_head 1 other paper
1 later
2403.06227 (2024-03)
PEPSI: Pathology-Enhanced Pulse-Sequence-Invariant Representations for Brain MRI
get_onehot 1 other paper
1 later
2403.06227 (2024-03)
PEPSI: Pathology-Enhanced Pulse-Sequence-Invariant Representations for Brain MRI
l1_loss 1 other paper
1 later
2403.06227 (2024-03)
PEPSI: Pathology-Enhanced Pulse-Sequence-Invariant Representations for Brain MRI
l2_loss 1 other paper
1 later
2403.06227 (2024-03)
PEPSI: Pathology-Enhanced Pulse-Sequence-Invariant Representations for Brain MRI
match_shape 1 other paper
1 later
2403.06227 (2024-03)
PEPSI: Pathology-Enhanced Pulse-Sequence-Invariant Representations for Brain MRI
pad_shape 1 other paper
1 later
2403.06227 (2024-03)
PEPSI: Pathology-Enhanced Pulse-Sequence-Invariant Representations for Brain MRI

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

Recent learning-based approaches have made astonishing advances in calibrated medical imaging like computerized tomography (CT), yet they struggle to generalize in uncalibrated modalities -- notably magnetic resonance (MR) imaging, where performance is highly sensitive to the differences in MR contrast, resolution, and orientation. This prevents broad applicability to diverse real-world clinical protocols. We introduce Brain-ID, an anatomical representation learning model for brain imaging. With the proposed "mild-to-severe" intra-subject generation, Brain-ID is robust to the subject-specific brain anatomy regardless of the appearance of acquired images (e.g., contrast, deformation, resolution, artifacts). Trained entirely on synthetic data, Brain-ID readily adapts to various downstream tasks through only one layer. We present new metrics to validate the intra- and inter-subject robustness of Brain-ID features, and evaluate their performance on four downstream applications, covering contrast-independent (anatomy reconstruction/contrast synthesis, brain segmentation), and contrast-dependent (super-resolution, bias field estimation) tasks. Extensive experiments on six public datasets demonstrate that Brain-ID achieves state-of-the-art performance in all tasks on different MRI modalities and CT, and more importantly, preserves its performance on low-resolution and small datasets. Code is available at https://github.com/peirong26/Brain-ID.

For agents

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

get_harvested_code_for_paper("2311.16914")
get_code_for_paper("2311.16914")
have("2311.16914")

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

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

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

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

Connect an agent — have() is free.