SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.05297 · 2024

PEEB: Part-based Image Classifiers with an Explainable and Editable Language Bottleneck

arXiv · PDF · Open in the Atlas

Code that ran

14 of 21 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 0 have no contract verdict; 14 failures of our instrument; 7 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/2403.05297.json · badge: /api/ran/2403.05297.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
anguyen8/peeb canonical (classifier label)
classifier basis: census
14 ran · 7 no recorded run
FunctionStatusWhere it lives
bound_boxes Ran
ran; our contract draft was wrong, not the code
anguyen8/peeb/src/precompute_boxes.py
code served (permissive licence) · get_code("a1dd2113af7b709d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family int, shape (2, 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 torch

torch.manual_seed(0)

# boxes: shape (batch_size, 4) - bounding box coordinates [x1, y1, x2, y2]
boxes = torch.tensor([
    [10.5, 20.3, 100.2, 150.8],
    [5.1, 15.6, 80.9, 120.4]
], dtype=torch.float32)

# img_sizes: shape (batch_size, 2) - image dimensions [width, height]
img_sizes = torch.tensor([
    [640, 480],
    [800, 600]
], dtype=torch.float32)

ARGS = {
    "boxes": boxes,
    "img_sizes": img_sizes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family int, shape (2, 4) — shape (2, 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
check_exist Ran
ran; our contract draft was wrong, not the code
anguyen8/peeb/src/precompute_boxes.py
code served (permissive licence) · get_code("2ff51a5d9e6dcdf3")
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 os
import tempfile

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Create some test files
os.makedirs(os.path.join(temp_dir, "boxes"), exist_ok=True)
open(os.path.join(temp_dir, "boxes", "img_001.pth"), 'w').close()
open(os.path.join(temp_dir, "boxes", "img_002.pth"), 'w').close()

# Define test arguments
ARGS = {
    "image_ids": ["img_001", "img_002", "img_003"],
    "box_dir": os.path.join(temp_dir, "boxes"),
    "ext": ".pth"
}
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 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
dice_loss Ran
ran; our contract draft was wrong, not the code
anguyen8/peeb/src/owlvit_cls.py
code served (permissive licence) · get_code("ca18559102973d9c")
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 input tensor: batch_size=2, spatial dims flattened to 4
inputs = torch.randn(2, 4, requires_grad=True)

# Create target tensor: same shape as inputs, with binary values
targets = torch.randint(0, 2, (2, 4), dtype=torch.float32)

# Number of boxes
num_boxes = 2

ARGS = {
    "inputs": inputs,
    "targets": targets,
    "num_boxes": num_boxes,
}
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
generate_prompt_sachit Ran
ran; our contract draft was wrong, not the code
anguyen8/peeb/src/chatgpt.py
code served (permissive licence) · get_code("8fa582c5f6fddaa6")
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 str. 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)

# The function generate_prompt_sachit takes a single parameter: category_name
# which is a string. It uses this string in an f-string to construct a prompt.
# No complex objects are needed - just a simple string.

ARGS = {
    "category_name": "dog"
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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_data_split Ran
ran; our contract draft was wrong, not the code
anguyen8/peeb/src/train_owlvit.py
code served (permissive licence) · get_code("0988460641132af1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from torch.utils.data import Dataset, Subset
from sklearn.model_selection import train_test_split

torch.manual_seed(0)

class SimpleDataset(Dataset):
    def __init__(self, num_samples=10, num_features=4):
        self.num_samples = num_samples
        self.num_features = num_features
        self.data = torch.randn(num_samples, num_features)
        self.labels = [i % 2 for i in range(num_samples)]
    
    def __len__(self):
        return self.num_samples
    
    def __getitem__(self, idx):
        return self.data[idx], self.labels[idx]

dataset = SimpleDataset(num_samples=10, num_features=4)

ARGS = {
    'dataset': dataset,
    'labels': None,
    'eval_size': 0.2,
    'random_state': 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_prompt_list Ran
ran; our contract draft was wrong, not the code
anguyen8/peeb/src/prompt_engineering.py
code served (permissive licence) · get_code("61d607c1eb3ac510")
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 2, 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 json
import tempfile
import os

# Create a temporary JSON file with valid prompt list structure
temp_dir = tempfile.mkdtemp()
file_path = os.path.join(temp_dir, "prompts.json")

# Write a valid prompt list to the file
prompt_data = [
    ["What is your name?", "Hello there"],
    ["How are you?", "I am doing well"],
    ["Tell me a story", "Once upon a time..."]
]

with open(file_path, 'w') as f:
    json.dump(prompt_data, f)

ARGS = {
    "file_path": file_path
}
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 2, 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
img_transform Ran
ran; our contract draft was wrong, not the code
anguyen8/peeb/src/utils.py
code served (permissive licence) · get_code("924c3ad69ec6a8fa")
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 Compose. 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 numpy as np
from PIL import Image
import torchvision.transforms as transforms

torch.manual_seed(0)

# The function img_transform takes one parameter: n_px (number of pixels)
# n_px is used as the size argument for Resize and CenterCrop
# It should be an integer representing the target image size

ARGS = {
    'n_px': 224
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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_descriptions Ran
ran; our contract draft was wrong, not the code
anguyen8/peeb/src/utils.py
code served (permissive licence) · get_code("154c00edfc8d8524")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
import os

# Set up a temporary directory for the descriptor file
temp_dir = tempfile.mkdtemp()
PROJECT_ROOT = temp_dir

# Create a mock descriptor file
descriptor_data = {
    "class_a": ["red colored", "has wings", "a bird"],
    "class_b": ["blue pattern", "often seen flying", "used for decoration"],
    "class_c": []
}

descriptor_path = os.path.join(temp_dir, "descriptors_imagenet.json")
with open(descriptor_path, 'w') as f:
    json.dump(descriptor_data, f)

# Mock indices_in_1k for imagenet-a case
indices_in_1k = [0, 1]

ARGS = {
    "dataset_name": "imagenet",
    "classes_to_load": ["class_a", "class_b"],
    "prompt_type": 1,
    "desc_type": "sachit",
    "part_based": False,
    "target_classes": ["class_a", "class_b"],
    "descriptor_path": descriptor_path,
    "unmute": False
}
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 tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
nested_tensor_from_tensor_list Ran
ran; our contract draft was wrong, not the code
anguyen8/peeb/src/owlvit_cls.py
code served (permissive licence) · get_code("d3faa0ed46f2e436")
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 NestedTensor. 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
from torch import Tensor
from typing import List

# Set seed for reproducibility
torch.manual_seed(0)

# Create a list of 3D tensors with distinct sizes
# Each tensor has shape [num_channels, height, width]
tensor1 = torch.randn(3, 4, 5)  # 3 channels, 4 height, 5 width
tensor2 = torch.randn(3, 6, 7)  # 3 channels, 6 height, 7 width

tensor_list = [tensor1, tensor2]

ARGS = {
    "tensor_list": tensor_list
}
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 NestedTensor — a NestedTensor output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NestedTensor 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
nested_tensor_from_tensor_list Ran
ran; our contract draft was wrong, not the code
anguyen8/peeb/src/owlvit_inference.py
code served (permissive licence) · get_code("e54dd17857816dda")
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 NestedTensor. 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
from typing import List, Optional, Tuple
from torch import Tensor, nn

torch.manual_seed(0)

# Create a list of 3D tensors with different sizes
# Each tensor is (num_channels, height, width)
tensor1 = torch.randn(3, 4, 5)  # 3 channels, 4 height, 5 width
tensor2 = torch.randn(3, 6, 7)  # 3 channels, 6 height, 7 width

tensor_list = [tensor1, tensor2]

ARGS = {
    "tensor_list": tensor_list
}
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 NestedTensor — a NestedTensor output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NestedTensor 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
rgb_to_hex Ran
ran; our contract draft was wrong, not the code
anguyen8/peeb/src/misc/peeb_plots.py
code served (permissive licence) · get_code("334d1b6d7376281e")
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 str. 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 numpy as np

def rgb_to_hex(rgb):
    return f"#{''.join((f'{x:02x}' for x in rgb))}"

# The function expects rgb to be an iterable of integers (0-255)
# that can be formatted as hex values
rgb_input = (255, 128, 64)

ARGS = {
    "rgb": rgb_input
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
sigmoid_focal_loss Ran
ran; our contract draft was wrong, not the code
anguyen8/peeb/src/owlvit_cls.py
code served (permissive licence) · get_code("695ff74df95375df")
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
import torch.nn as nn

torch.manual_seed(0)

# Create small tensors for inputs and targets
# inputs: predictions (logits) - shape (2, 4) for batch_size=2, num_predictions=4
inputs = torch.randn(2, 4, dtype=torch.float32)

# targets: binary labels matching inputs shape
targets = torch.randint(0, 2, (2, 4), dtype=torch.float32)

# num_boxes: normalization factor (integer)
num_boxes = 2

# alpha: weighting factor for positive/negative balance
alpha = 0.25

# gamma: exponent for modulating factor
gamma = 2.0

ARGS = {
    "inputs": inputs,
    "targets": targets,
    "num_boxes": num_boxes,
    "alpha": alpha,
    "gamma": gamma,
}
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
wordify Ran
ran; our contract draft was wrong, not the code
anguyen8/peeb/src/utils.py
code served (permissive licence) · get_code("1812ba359126089a")
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 str. 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

def wordify(string):
    word = string.replace('_', ' ')
    return word

ARGS = {
    'string': 'hello_world_test'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
xy_in_box Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anguyen8/peeb/src/precompute_boxes.py
code served (permissive licence) · get_code("dd6b921da641c598")
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 bool, 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)

# box is a list of 4 integers representing [x1, y1, x2, y2]
box = [10, 20, 30, 40]

# x is an integer coordinate
x = 15

# y is an integer coordinate
y = 25

ARGS = {
    "box": box,
    "x": x,
    "y": y
}
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 bool, 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
add_extra_negatives Not yet run
unverified (harvested, no recorded run)
anguyen8/peeb/src/train_owlvit.py
code served (permissive licence) · get_code("21070f8951fe8f1f")
How it ran

no invocation recorded.

fig_to_pil Not yet run
unverified (harvested, no recorded run)
anguyen8/peeb/src/misc/peeb_plots.py
code served (permissive licence) · get_code("5088107d67670278")
How it ran

no invocation recorded.

get_exp Not yet run
unverified (harvested, no recorded run)
anguyen8/peeb/src/misc/peeb_plots.py
code served (permissive licence) · get_code("363a6138162c638c")
How it ran

no invocation recorded.

get_hierarchy_class_name Not yet run
unverified (harvested, no recorded run)
anguyen8/peeb/src/prompt_engineering.py
code served (permissive licence) · get_code("d5fd0ce64f775b84")
How it ran

no invocation recorded.

get_parent_nodes Not yet run
unverified (harvested, no recorded run)
anguyen8/peeb/src/prompt_engineering.py
code served (permissive licence) · get_code("364cc7215ea1dc81")
How it ran

no invocation recorded.

num_tokens_from_messages Not yet run
unverified (harvested, no recorded run)
anguyen8/peeb/src/chatgpt.py
code served (permissive licence) · get_code("6d1cc911c7acc3cc")
How it ran

no invocation recorded.

test_chatgpt Not yet run
unverified (harvested, no recorded run)
anguyen8/peeb/src/chatgpt.py
code served (permissive licence) · get_code("b10b022a231102b0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 3 later) and 17 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
dice_loss 40 other papers
29 dated earlier, 1 the same month, 10 later · 1 only as an assembly brick
2005.12872 (2020-05)
End-to-End Object Detection with Transformers
2010.04159 (2020-10)
Deformable DETR: Deformable Transformers for End-to-End Object Detection
2103.12115 (2021-03)
End-to-End Trainable Multi-Instance Pose Estimation with Transformers
and 37 more not named here
wordify 4 other papers
1 dated earlier, 3 later · 1 only as an assembly brick
2109.01134 (2021-09)
Learning to Prompt for Vision-Language Models
2406.02915 (2024-06)
Visual-Text Cross Alignment: Refining the Similarity Score in Vision-Language Models
2407.14412 (2024-07)
DEAL: Disentangle and Localize Concept-level Explanations for VLMs
and 1 more not named here
sigmoid_focal_loss 2 other papers
2 later
2404.02072 (2024-04)
EGTR: Extracting Graph from Transformer for Scene Graph Generation
2507.19993 (2025-07)
FROSS: Faster-than-Real-Time Online 3D Semantic Scene Graph Generation from RGB-D Images

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

CLIP-based classifiers rely on the prompt containing a {class name} that is known to the text encoder. Therefore, they perform poorly on new classes or the classes whose names rarely appear on the Internet (e.g., scientific names of birds). For fine-grained classification, we propose PEEB - an explainable and editable classifier to (1) express the class name into a set of text descriptors that describe the visual parts of that class; and (2) match the embeddings of the detected parts to their textual descriptors in each class to compute a logit score for classification. In a zero-shot setting where the class names are unknown, PEEB outperforms CLIP by a huge margin (~10x in top-1 accuracy). Compared to part-based classifiers, PEEB is not only the state-of-the-art (SOTA) on the supervised-learning setting (88.80% and 92.20% accuracy on CUB-200 and Dogs-120, respectively) but also the first to enable users to edit the text descriptors to form a new classifier without any re-training. Compared to concept bottleneck models, PEEB is also the SOTA in both zero-shot and supervised-learning settings.

For agents

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

get_harvested_code_for_paper("2403.05297")
get_code_for_paper("2403.05297")
have("2403.05297")

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

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

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

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

Connect an agent — have() is free.