| box_cxcywh_to_xywh |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/utils/box_ops.py code served (permissive licence) · get_code("a073b7d2a2d6c2d9") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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)
# Create a small tensor with shape (2, 4) representing 2 boxes in cx, cy, w, h format
# Each box has [center_x, center_y, width, height]
boxes = torch.tensor([
[10.0, 20.0, 4.0, 6.0],
[30.0, 40.0, 8.0, 10.0]
], dtype=torch.float32)
ARGS = {
"boxes": 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 2, dtype family float, 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
|
| box_cxcywh_to_xyxy |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/utils/box_ops.py code served (permissive licence) · get_code("08b30db38a23e292") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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)
# Create a small tensor of shape (2, 4) representing 2 boxes in cxcywh format
# (center_x, center_y, width, height)
boxes = torch.tensor([
[0.5, 0.5, 0.2, 0.3],
[0.7, 0.8, 0.4, 0.5]
], dtype=torch.float32)
ARGS = {
"boxes": 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 2, dtype family float, 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
|
| box_xyxy_to_cxcywh |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/utils/box_ops.py code served (permissive licence) · get_code("22fb5f58739f0544") How it ranRan 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 3, dtype family float, shape (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 torch
torch.manual_seed(0)
# Create a small tensor of bounding boxes in xyxy format
# Shape: (batch_size=2, num_boxes=3, coordinates=4)
# Each box is [x1, y1, x2, y2]
boxes = torch.tensor([
[[1.0, 2.0, 5.0, 6.0], [10.0, 20.0, 30.0, 40.0], [0.5, 1.5, 3.5, 4.5]],
[[2.0, 3.0, 8.0, 9.0], [15.0, 25.0, 35.0, 45.0], [1.5, 2.5, 4.5, 5.5]]
])
ARGS = {
"boxes": 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 3, dtype family float, shape (2, 3, 4) — shape (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
|
| build_and_forward_yes_probs |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
ggbondrighthere24/YesTrack/refer_llm/infer_utils.py code served (permissive licence) · get_code("6cf2102c579b2b62") How it ranRan 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
from PIL import Image
from transformers import AutoProcessor
torch.manual_seed(0)
# Create a minimal mock model that returns logits
class MockModel(nn.Module):
def __init__(self, vocab_size=1000):
super().__init__()
self.vocab_size = vocab_size
self.linear = nn.Linear(64, vocab_size)
def forward(self, input_ids, attention_mask, pixel_values=None, image_grid_thw=None):
batch_size = input_ids.shape[0]
# Return a mock output with logits
logits = self.linear(torch.randn(batch_size, 16, 64))
class Output:
pass
output = Output()
output.logits = logits
return output
# Create a minimal mock processor
class MockTokenizer:
def __init__(self):
self.padding_side = 'right'
class MockProcessor:
def __init__(self):
self.tokenizer = MockTokenizer()
def apply_chat_template(self, messages_batch, tokenize=False, add_generation_prompt=False, return_dict=False, return_tensors=None, padding=False):
batch_size = len(messages_batch)
seq_length = 20
vocab_size = 1000
# Return dict with required tensors
result = {
'input_ids': torch.randint(0, vocab_size, (batch_size, seq_length)),
'attention_mask': torch.ones(batch_size, seq_length, dtype=torch.long),
'pixel_values': torch.randn(batch_size, 3, 64, 64),
'image_grid_thw': torch.randint(1, 5, (batch_size, 3))
}
return result
# Create mock images
def create_mock_image():
return Image.new('RGB', (64, 64), color='red')
# Build arguments
model = MockModel(vocab_size=1000)
processor = MockProcessor()
images = [create_mock_image(), create_mock_image()]
prompts = ["Is this a dog?", "Is this a cat?"]
device = torch.device('cpu')
yes_id = 5
no_id = 10
ARGS = {
'model': model,
'processor': processor,
'images': images,
'prompts': prompts,
'device': device,
'yes_id': yes_id,
'no_id': no_id
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, torch, transformers — 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
|
| collect_refer_results |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/eval_refer_kitti_mot.py code served (permissive licence) · get_code("2afaf6b2fb65d3f7") How it ranRan 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
import shutil
# Create temporary directories for testing
temp_root = tempfile.mkdtemp()
refer_root = os.path.join(temp_root, 'refer_root')
out_tracker_data_dir = os.path.join(temp_root, 'out_tracker')
# Set up flat structure with sample data
os.makedirs(refer_root, exist_ok=True)
# Create flat structure: refer_root/seq1/expr1.txt
seq1_dir = os.path.join(refer_root, 'seq1')
os.makedirs(seq1_dir, exist_ok=True)
# Write sample tracking data: frame,id,x,y,w,h,score
with open(os.path.join(seq1_dir, 'expr1.txt'), 'w') as f:
f.write('0,1,10,20,30,40,0.95\n')
f.write('1,1,11,21,30,40,0.92\n')
f.write('2,1,12,22,30,40,0.85\n')
with open(os.path.join(seq1_dir, 'expr2.txt'), 'w') as f:
f.write('0,2,50,60,25,35,0.88\n')
f.write('1,2,51,61,25,35,0.90\n')
# Create another sequence
seq2_dir = os.path.join(refer_root, 'seq2')
os.makedirs(seq2_dir, exist_ok=True)
with open(os.path.join(seq2_dir, 'expr1.txt'), 'w') as f:
f.write('0,1,100,110,50,50,0.91\n')
f.write('1,1,101,111,50,50,0.93\n')
ARGS = {
'refer_root': refer_root,
'out_tracker_data_dir': out_tracker_data_dir,
'frame_offset': 5,
'min_score': 0.8,
'min_area': 500.0,
'structure': 'flat',
'seq_names_to_generate': None,
}
- 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
|
| crop_with_margin |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/refer_llm/crop_utils.py code served (permissive licence) · get_code("6a89dbd0efb1bd9e") How it ranRan 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.
from PIL import Image
# Create a small test image
test_image = Image.new('RGB', (100, 100), color='red')
# Define arguments for crop_with_margin
ARGS = {
'image': test_image,
'bbox_xywh': (20.0, 30.0, 40.0, 50.0),
'margin_ratio': 0.1,
'margin_px': None,
'min_side': 8
}
- 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
|
| gather_results |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/refer_llm/llm_eval.py code served (permissive licence) · get_code("4cfa53ade4f9d2ef") How it ranRan 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
from typing import Any, Dict, List, Optional, Tuple
torch.manual_seed(0)
# For a distributed setting test, we need to mock the distributed environment
# or use world_size=1 to avoid actual distributed setup
# The function gathers data from all processes using dist.all_gather_object
# Test data - can be any Python object
test_data = {
"results": [1, 2, 3],
"tensor": torch.randn(2, 4),
"metadata": {"step": 42, "loss": 0.5}
}
# world_size parameter - using 1 to avoid requiring actual distributed setup
world_size = 1
ARGS = {
"data": test_data,
"world_size": world_size
}
- 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
|
| geometric_mean |
Ran ran, violated the contract we drafted |
ggbondrighthere24/YesTrack/TrackEval/trackeval/plotting.py code served (permissive licence) · get_code("06d2be4ac9d0e95b") How it ranRan 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 ndarray, ndim 1, dtype family float, shape (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
# The function geometric_mean takes two parameters x and y
# and computes their geometric mean using numpy operations
# Both parameters should be numpy arrays or numeric values
x = np.array([1.0, 4.0, 9.0, 16.0])
y = np.array([4.0, 9.0, 16.0, 25.0])
ARGS = {
'x': x,
'y': y
}
- 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 ndarray, ndim 1, dtype family float, shape (4,) — shape (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_yes_no_token_ids |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
ggbondrighthere24/YesTrack/refer_llm/llm_eval.py code served (permissive licence) · get_code("79b5fd49fe521aff") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
from unittest.mock import MagicMock
torch.manual_seed(0)
# Create a minimal mock tokenizer that satisfies the function's usage
class MockTokenizer:
def __init__(self):
self.unk_token_id = 100
# Map for convert_tokens_to_ids
self._token_to_id = {
'Yes': 50257,
'No': 50258,
}
def convert_tokens_to_ids(self, token):
return self._token_to_id.get(token, None)
def encode(self, text, add_special_tokens=False):
if text == 'Yes':
return [50257]
elif text == 'No':
return [50258]
return []
# Create a minimal mock processor that satisfies the function's usage
class MockProcessor:
def __init__(self):
self.tokenizer = MockTokenizer()
ARGS = {
"processor": MockProcessor(),
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| inverse_sigmoid |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/utils/misc.py code served (permissive licence) · get_code("b4c4991a4f855b9d") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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
import torch.nn as nn
torch.manual_seed(0)
# The function takes a tensor x and optional eps parameter
# x needs to be a tensor with values between 0 and 1
# The function clamps, applies log operations on the tensor
x = torch.rand(2, 4) # Small tensor with values in [0, 1]
eps = 1e-05
ARGS = {
"x": x,
"eps": eps,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (2, 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
|
| jaccard |
Ran ran, honoured the contract we drafted |
ggbondrighthere24/YesTrack/TrackEval/trackeval/plotting.py code served (permissive licence) · get_code("00c662d6d9709fe4") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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
import numpy as np
torch.manual_seed(0)
# The function takes two parameters x and y
# Both are used in arithmetic operations (division, multiplication, addition, subtraction)
# They should be numeric types (tensors, arrays, or scalars)
# Create small distinct tensors for x and y
x = torch.tensor([[1.0, 2.0, 3.0, 4.0],
[5.0, 6.0, 7.0, 8.0]])
y = torch.tensor([[10.0, 20.0, 30.0, 40.0],
[50.0, 60.0, 70.0, 80.0]])
ARGS = {
"x": x,
"y": y
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (2, 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
|
| labels_to_one_hot |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/utils/misc.py code served (permissive licence) · get_code("719b009d108eed44") How it ranRan 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 ndarray, ndim 2, dtype family float, 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
import numpy as np
torch.manual_seed(0)
# Create a small tensor of class labels (integers from 0 to class_num-1)
# Using a batch of 2 samples with class indices
labels_tensor = torch.tensor([0, 2], dtype=torch.long)
# Define the number of classes
class_num = 4
ARGS = {
"labels": labels_tensor,
"class_num": class_num,
}
- 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 ndarray, ndim 2, dtype family float, 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
|
| load_multiple_tracker_summaries |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/TrackEval/trackeval/plotting.py code served (permissive licence) · get_code("e9f7b2829ca9731b") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import os
import tempfile
import shutil
# Create a temporary directory structure for tracker summaries
temp_dir = tempfile.mkdtemp()
# Create tracker folders and summary files
trackers = ['tracker1', 'tracker2']
cls_name = 'person'
for tracker in trackers:
tracker_path = os.path.join(temp_dir, tracker)
os.makedirs(tracker_path, exist_ok=True)
# Create a summary file with header and data
summary_file = os.path.join(tracker_path, cls_name + '_summary.txt')
with open(summary_file, 'w') as f:
# Write header
f.write('precision recall f1_score\n')
# Write data row
f.write('0.95 0.87 0.91\n')
# Write extra lines that should be ignored (less values than keys)
f.write('incomplete\n')
f.write('another incomplete line\n')
ARGS = {
'tracker_folder': temp_dir,
'tracker_list': trackers,
'cls': cls_name
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| nested_tensor_from_tensor_list |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/utils/nested_tensor.py code served (permissive licence) · get_code("50736ecf379fe65b") How it ranRan 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
torch.manual_seed(0)
# Create a list of 2 tensors with shape (C, H, W)
# Using distinct sizes: C=4, H1=3, W1=5 for first tensor; H2=2, W2=4 for second tensor
tensor1 = torch.randn(4, 3, 5)
tensor2 = torch.randn(4, 2, 4)
tensor_list = [tensor1, tensor2]
ARGS = {
"tensor_list": tensor_list,
"size_divisibility": 0
}
- 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
- 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_index_select |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/utils/nested_tensor.py code served (permissive licence) · get_code("0fc1d557d788dff2") How it ranRan 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
torch.manual_seed(0)
class NestedTensor(object):
def __init__(self, tensors: torch.Tensor, mask: torch.Tensor):
"""Args:
tensors: Tensor, (B, C, H, W)
mask: Tensor, (B, H, W)
"""
assert tensors.shape[0] == mask.shape[0], f'tensors have batch size {tensors.shape[0]} but get {mask.shape[0]} for mask.'
self.tensors = tensors
self.mask = mask
def decompose(self):
return (self.tensors, self.mask)
def __repr__(self):
return str(self.tensors)
def nested_tensor_index_select(nested_tensor: NestedTensor, dim: int, index: torch.Tensor):
tensor, mask = nested_tensor.decompose()
selected_tensor = torch.index_select(input=tensor, dim=dim, index=index).contiguous()
selected_mask = torch.index_select(input=mask, dim=dim, index=index).contiguous()
return NestedTensor(tensors=selected_tensor, mask=selected_mask)
# Create test tensors
batch_size = 2
channels = 4
height = 3
width = 5
tensors = torch.randn(batch_size, channels, height, width)
mask = torch.randint(0, 2, (batch_size, height, width))
nested_tensor = NestedTensor(tensors=tensors, mask=mask)
dim = 0
index = torch.tensor([0, 1])
ARGS = {
"nested_tensor": nested_tensor,
"dim": dim,
"index": index
}
- 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
- 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_seqmap |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/eval_refer_kitti_mot.py code served (permissive licence) · get_code("5e228854127e22df") How it ranRan 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 csv
import tempfile
import os
# Create a temporary seqmap file with valid content
temp_dir = tempfile.mkdtemp()
seqmap_file = os.path.join(temp_dir, "test_seqmap.csv")
# Write a valid seqmap file
with open(seqmap_file, 'w', newline='') as f:
writer = csv.writer(f)
writer.writerow(['name'])
writer.writerow(['sequence_1'])
writer.writerow(['sequence_2'])
writer.writerow(['sequence_3'])
ARGS = {
'seqmap_file': seqmap_file
}
- 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
|
| read_summary_metrics |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/eval_refer_kitti_mot.py code served (permissive licence) · get_code("809127f63637158b") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import os
import tempfile
# Create a temporary summary file with metric names and values
temp_dir = tempfile.mkdtemp()
summary_file = os.path.join(temp_dir, "summary.txt")
with open(summary_file, 'w') as f:
f.write("accuracy precision recall f1_score\n")
f.write("0.95 0.92 0.89 0.905\n")
ARGS = {
"summary_path": summary_file
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| time |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/TrackEval/trackeval/_timing.py code served (permissive licence) · get_code("df1bd31f4da1bed6") How it ranRan 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 function. 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 inspect
from functools import wraps
from time import perf_counter
# Set up the timing decorator and global state
DO_TIMING = False
DISPLAY_LESS_PROGRESS = False
timer_dict = {}
counter = 0
def time(f):
@wraps(f)
def wrap(*args, **kw):
if DO_TIMING:
ts = perf_counter()
result = f(*args, **kw)
te = perf_counter()
tt = te - ts
arg_names = inspect.getfullargspec(f)[0]
if arg_names[0] == 'self' and DISPLAY_LESS_PROGRESS:
return result
elif arg_names[0] == 'self':
method_name = type(args[0]).__name__ + '.' + f.__name__
else:
method_name = f.__name__
if method_name in timer_dict.keys():
timer_dict[method_name] += tt
else:
timer_dict[method_name] = tt
if method_name == 'Evaluator.evaluate':
print('')
print('Timing analysis:')
for key, value in timer_dict.items():
print('%-70s %2.4f sec' % (key, value))
else:
arg_titles = ['tracker', 'seq', 'cls']
arg_vals = []
for i, a in enumerate(arg_names):
if a in arg_titles:
arg_vals.append(args[i])
arg_text = '(' + ', '.join(arg_vals) + ')'
if arg_names[0] == 'self':
print('%-74s %2.4f sec' % (' ' * 4 + method_name + arg_text, tt))
elif arg_names[0] == 'test':
pass
else:
global counter
counter += 1
print('%i %-70s %2.4f sec' % (counter, method_name + arg_text, tt))
return result
else:
return f(*args, **kw)
return wrap
# Test function that uses the decorator
@time
def sample_function(x, y):
return x + y
@time
def sample_method_function(self, tracker, seq, cls):
return tracker + seq + cls
class DummyClass:
@time
def sample_method(self, tracker, seq, cls):
return tracker + seq + cls
# The `time` function itself takes one parameter: `f` (a function to be decorated)
# So we need to provide a callable function as the argument
def dummy_func(a, b):
"""A simple function to be decorated."""
return a + b
ARGS = {
'f': dummy_func
}
- 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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
|
| xywh_to_xyxy_with_margin |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/refer_llm/crop_utils.py code served (permissive licence) · get_code("dd925c0cd213ab92") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
from typing import Optional, Tuple
# Construct arguments for xywh_to_xyxy_with_margin
bbox_xywh = (50.0, 60.0, 100.0, 80.0) # x, y, width, height
image_size = (640, 480) # image width, height
margin_ratio = 0.1
margin_px = None
min_side = 8
ARGS = {
"bbox_xywh": bbox_xywh,
"image_size": image_size,
"margin_ratio": margin_ratio,
"margin_px": margin_px,
"min_side": min_side,
}
- 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 1, dtype family int — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| yaml_to_dict |
Ran ran; our contract draft was wrong, not the code |
ggbondrighthere24/YesTrack/utils/misc.py code served (permissive licence) · get_code("409166545e2474cf") How it ranRan 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 yaml
import tempfile
import os
# Create a temporary YAML file for testing
temp_dir = tempfile.mkdtemp()
yaml_file_path = os.path.join(temp_dir, "test_config.yaml")
# Write a valid YAML file
yaml_content = """
model:
name: test_model
layers: 3
hidden_dim: 128
training:
epochs: 10
batch_size: 32
learning_rate: 0.001
"""
with open(yaml_file_path, 'w') as f:
f.write(yaml_content)
ARGS = {
"path": yaml_file_path
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- yaml — 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
|
| build_model_and_processor_for_eval |
Not yet run unverified (harvested, no recorded run) |
ggbondrighthere24/YesTrack/refer_llm/llm_eval.py code served (permissive licence) · get_code("d893ceff75502135") How it ran |
| parse_args |
Not yet run unverified (harvested, no recorded run) |
ggbondrighthere24/YesTrack/refer_llm/llm_train.py code served (permissive licence) · get_code("5428601869acbac9") How it ran |