SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1812.04960 · 2018

Object-centric Auto-encoders and Dummy Anomalies for Abnormal Event Detection in Video

arXiv · PDF · Open in the Atlas

Code that ran

16 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; 1 honoured the contract we drafted, 0 violated it and 13 have no contract verdict; 2 failures of our instrument; 5 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/1812.04960.json · badge: /api/ran/1812.04960.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
fjchange/object_centric_VAD community (classifier label)
classifier basis not recorded on the link
16 ran · 5 no recorded run
FunctionStatusWhere it lives
clip_tensor Ran
ran on a synthesized input
fjchange/object_centric_VAD/object_detection/utils/shape_utils.py
code served (permissive licence) · get_code("c2d76e77869359ee")
How it ran

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

import tensorflow as tf
import numpy as np

# Create a simple tensor for clipping
# Using shape [5, 3] - batch size 5, feature dim 3
t = tf.constant(np.random.randn(5, 3).astype(np.float32))

# Test with integer length
length = 2

# Define ARGS dict with all parameters for clip_tensor
ARGS = {
    "t": t,
    "length": length
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
convert_label_map_to_categories Ran
ran; our contract draft was wrong, not the code
fjchange/object_centric_VAD/object_detection/utils/label_map_util.py
code served (permissive licence) · get_code("141d25437ef484aa")
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 logging
from six.moves import range

# Create a minimal stand-in class for a label map proto
class LabelMapItem:
    def __init__(self, id_, name, display_name=None):
        self.id = id_
        self.name = name
        self.display_name = display_name
    
    def HasField(self, field_name):
        if field_name == 'display_name':
            return self.display_name is not None
        return False

class LabelMap:
    def __init__(self, items):
        self.item = items

# Test case 1: with a valid label_map
label_map = LabelMap([
    LabelMapItem(id_=1, name='cat', display_name='Domestic Cat'),
    LabelMapItem(id_=2, name='dog', display_name='Domestic Dog'),
    LabelMapItem(id_=3, name='bird'),
])

ARGS = {
    'label_map': label_map,
    'max_num_classes': 5,
    'use_display_name': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
six — 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
create_category_index Ran
ran; our contract draft was wrong, not the code
fjchange/object_centric_VAD/object_detection/utils/label_map_util.py
code served (permissive licence) · get_code("594701a91bc1f1da")
How it ran

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

import torch
import numpy as np

# Create sample categories following COCO format
categories = [
    {
        'id': 1,
        'name': 'cat'
    },
    {
        'id': 2,
        'name': 'dog'
    },
    {
        'id': 3,
        'name': 'pizza'
    }
]

ARGS = {
    'categories': categories
}
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 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
data_preprocessing Ran
ran on a synthesized input
fjchange/object_centric_VAD/utils/util.py
code served (permissive licence) · get_code("b4a21234a5f5f5c3")
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 ndarray, ndim 3, dtype family int, shape (64, 64, 3) 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 cv2
from PIL import Image
import tempfile
import os

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

# Create a simple RGB image and save it
img_array = np.random.randint(0, 256, (100, 80, 3), dtype=np.uint8)
img = Image.fromarray(img_array, mode='RGB')
img.save(temp_img_path)

ARGS = {
    "img_path": temp_img_path,
    "target_size": 64
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (64, 64, 3) — shape (64, 64, 3) 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
encode_image_array_as_png_str Ran
ran on a synthesized input
fjchange/object_centric_VAD/object_detection/utils/visualization_utils.py
code served (permissive licence) · get_code("f6f9bc8f40259447")
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 bytes. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import PIL.Image as Image
import six

# Create a valid image array with shape [height, width, 3]
# Using small dimensions: height=4, width=3, channels=3
image_array = np.random.randint(0, 256, size=(4, 3, 3), dtype=np.uint8)

ARGS = {
    'image': image_array
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, six — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes 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_batch_size Ran
ran on a synthesized input
fjchange/object_centric_VAD/object_detection/utils/static_shape.py
code served (permissive licence) · get_code("e05e6868237dbb04")
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 int, ndim 0, dtype family int, 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 numpy as np

# Create a mock TensorShape class that mimics TensorFlow's TensorShape
class MockTensorShape:
    def __init__(self, shape):
        self.shape = shape
    
    def __getitem__(self, index):
        # Return a dimension object that has both .value (v1) and int conversion (v2)
        return MockDimension(self.shape[index])
    
    def assert_has_rank(self, rank):
        if len(self.shape) != rank:
            raise ValueError(f"Expected rank {rank}, got {len(self.shape)}")

class MockDimension:
    def __init__(self, value):
        self.value = value
    
    def __int__(self):
        return self.value

# Create a tensor shape representing a batch of 2 samples with shape (2, 4, 3, 5)
# This is a rank-4 tensor (batch_size=2, height=4, width=3, channels=5)
tensor_shape = MockTensorShape([2, 4, 3, 5])

ARGS = {
    "tensor_shape": tensor_shape
}
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 int, ndim 0, dtype family int, 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_dim_as_int Ran
ran on a synthesized input
fjchange/object_centric_VAD/object_detection/utils/static_shape.py
code served (permissive licence) · get_code("db1e68871bda0760")
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 int, ndim 0, dtype family int, 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 numpy as np

# Create a mock TensorShape dimension object with a .value attribute (v1 style)
class TensorShapeDimV1:
    def __init__(self, value):
        self.value = value

# Create a mock TensorShape dimension object without .value attribute (v2 style)
class TensorShapeDimV2:
    def __init__(self, value):
        self._value = value
    
    def __int__(self):
        return self._value

# Test with v1 style (has .value attribute)
dim_v1 = TensorShapeDimV1(42)

ARGS = {
    "dim": dim_v1
}
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 int, ndim 0, dtype family int, 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_frames_paths Ran
ran on a synthesized input
fjchange/object_centric_VAD/utils/util.py
code served (permissive licence) · get_code("1d6cdb4434e817c9")
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 os
import os.path as osp
import tempfile
import shutil

# Create a temporary directory structure to simulate image folders with video subdirectories
temp_dir = tempfile.mkdtemp()

# Create nested directory structure: image_folder/video1/, image_folder/video2/, etc.
video_dir_1 = osp.join(temp_dir, "video_1")
video_dir_2 = osp.join(temp_dir, "video_2")
os.makedirs(video_dir_1, exist_ok=True)
os.makedirs(video_dir_2, exist_ok=True)

# Create dummy frame files in each video directory
for i in range(10):
    open(osp.join(video_dir_1, f"frame_{i:04d}.jpg"), "w").close()
    open(osp.join(video_dir_2, f"frame_{i:04d}.jpg"), "w").close()

ARGS = {
    "image_folder": temp_dir,
    "gap": 2
}
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
get_height Ran
ran on a synthesized input
fjchange/object_centric_VAD/object_detection/utils/static_shape.py
code served (permissive licence) · get_code("dae2fd635f830535")
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 int, ndim 0, dtype family int, 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 numpy as np

# Create a mock TensorShape class that mimics TensorFlow's TensorShape
class MockTensorShape:
    def __init__(self, shape):
        self.shape = shape
    
    def __getitem__(self, index):
        return self.shape[index]
    
    def assert_has_rank(self, rank):
        if len(self.shape) != rank:
            raise ValueError(f"Expected rank {rank}, got {len(self.shape)}")

# Construct a valid tensor_shape argument
# For get_height, it expects a rank 4 TensorShape
# Shape format: (batch, height, width, channels)
# We use distinct sizes: 2 for batch, 4 for height, 3 for width, 5 for channels
tensor_shape = MockTensorShape([2, 4, 3, 5])

ARGS = {
    "tensor_shape": tensor_shape
}
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 int, ndim 0, dtype family int, 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_max_label_map_index Ran
ran, honoured the contract we drafted
fjchange/object_centric_VAD/object_detection/utils/label_map_util.py
code served (permissive licence) · get_code("d41c349a36f3a9d8")
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 int, ndim 0, dtype family int, 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 numpy as np

# Create a stand-in class for StringIntLabelMapProto
class Item:
    def __init__(self, id):
        self.id = id

class StringIntLabelMapProto:
    def __init__(self):
        self.item = []

# Construct a valid label_map with items containing id attributes
label_map = StringIntLabelMapProto()
label_map.item.append(Item(id=1))
label_map.item.append(Item(id=5))
label_map.item.append(Item(id=3))
label_map.item.append(Item(id=10))

ARGS = {
    "label_map": label_map
}
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 int, ndim 0, dtype family int, 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_vids_paths Ran
ran on a synthesized input
fjchange/object_centric_VAD/utils/util.py
code served (permissive licence) · get_code("d06fa4fea22237f6")
How it ran

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

import os
import tempfile
import shutil

# Create a temporary directory structure that mimics video folders with frames
temp_dir = tempfile.mkdtemp()

# Create video folders
vid1_dir = os.path.join(temp_dir, "video_001")
vid2_dir = os.path.join(temp_dir, "video_002")
os.makedirs(vid1_dir)
os.makedirs(vid2_dir)

# Create frame files in each video folder
for i in range(3):
    open(os.path.join(vid1_dir, f"frame_{i:04d}.jpg"), 'w').close()

for i in range(2):
    open(os.path.join(vid2_dir, f"frame_{i:04d}.jpg"), 'w').close()

ARGS = {
    "image_folder": temp_dir
}
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 — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_psnr Ran
ran on a synthesized input
fjchange/object_centric_VAD/utils/evaluate.py
code served (permissive licence) · get_code("ff47ae3a330cd1a0")
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 pickle
import tempfile
import os

# Create a temporary file with pickle data containing PSNR results
temp_dir = tempfile.mkdtemp()
loss_file = os.path.join(temp_dir, "loss.pkl")

# Create sample results dictionary with PSNR values
results = {
    'psnr': [25.5, 26.3, 27.1, 28.0]
}

# Write the pickle file
with open(loss_file, 'wb') as f:
    pickle.dump(results, f)

ARGS = {
    'loss_file': loss_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
pad_or_clip_tensor Ran
ran on a synthesized input
fjchange/object_centric_VAD/object_detection/utils/shape_utils.py
code served (permissive licence) · get_code("79d2b4acf423e60f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned EagerTensor, ndim 3, dtype family float, shape (5, 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 tensorflow as tf
import numpy as np

# Create a small test tensor with shape [2, 3, 4]
# First dimension can be padded/clipped, others are preserved
test_tensor = tf.constant(np.random.randn(2, 3, 4).astype(np.float32))

# Define the length to pad/clip to - can be an integer or a scalar tensor
target_length = 5

ARGS = {
    "t": test_tensor,
    "length": target_length
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 3, dtype family float, shape (5, 3, 4) — shape (5, 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
pad_tensor Ran
ran on a synthesized input
fjchange/object_centric_VAD/object_detection/utils/shape_utils.py
code served (permissive licence) · get_code("7c67344dbf665e91")
How it ran

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

# Create a simple tensor to pad
# Using shape [2, 4] - batch size 2, feature dimension 4
t = tf.constant([[1.0, 2.0, 3.0, 4.0],
                 [5.0, 6.0, 7.0, 8.0]], dtype=tf.float32)

# Length to pad to - an integer
length = 5

ARGS = {
    't': t,
    'length': length
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (5, 4) — shape (5, 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
pixel_wise_L2_loss Ran
ran on a synthesized input
fjchange/object_centric_VAD/models/CAE.py
code served (permissive licence) · get_code("a43807d06f7009d5")
How it ran

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

import tensorflow as tf
import numpy as np

# Set seed for reproducibility
tf.random.set_seed(0)

# Create small sample tensors (batch=2, dim=4)
pred = tf.constant(
    [[1.0, 2.0, 3.0, 4.0],
     [5.0, 6.0, 7.0, 8.0]],
    dtype=tf.float32
)

gt = tf.constant(
    [[1.1, 2.1, 3.1, 4.1],
     [5.1, 6.1, 7.1, 8.1]],
    dtype=tf.float32
)

ARGS = {
    "pred": pred,
    "gt": gt,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded SymbolicTensor ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_txt_2_numpy Ran
ran on a synthesized input
fjchange/object_centric_VAD/utils/txt_2_pickle.py
code served (permissive licence) · get_code("c9d64ae8341a408f")
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 ndarray, ndim 1, dtype family float, shape (9,) 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 tempfile
import os

# Create a temporary CSV file with some test data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_data.csv")

with open(temp_file, 'w') as f:
    f.write("1.0,2.5,3.7\n")
    f.write("4.2,5.1,6.8\n")
    f.write("7.3,8.9,9.0\n")

ARGS = {
    "path": temp_file
}
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 (9,) — shape (9,) 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
CAE Not yet run
unverified (harvested, no recorded run)
fjchange/object_centric_VAD/models/CAE.py
code served (permissive licence) · get_code("f96ec49ed799f57f")
How it ran

no invocation recorded.

CAE_encoder Not yet run
unverified (harvested, no recorded run)
fjchange/object_centric_VAD/models/CAE.py
code served (permissive licence) · get_code("507de8d6923c8a1c")
How it ran

no invocation recorded.

create_visualization_fn Not yet run
unverified (harvested, no recorded run)
fjchange/object_centric_VAD/object_detection/utils/visualization_utils.py
code served (permissive licence) · get_code("d5d5d73fc011f6af")
How it ran

no invocation recorded.

load_psnr_gt Not yet run
unverified (harvested, no recorded run)
fjchange/object_centric_VAD/utils/evaluate.py
code served (permissive licence) · get_code("01d4553d8f94a290")
How it ran

no invocation recorded.

load_psnr_gt_flow Not yet run
unverified (harvested, no recorded run)
fjchange/object_centric_VAD/utils/evaluate.py
code served (permissive licence) · get_code("301f6f7e775c0086")
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 21 distinct functions with an identity, 6 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 6 later) and 15 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_label_map_to_categories 2 other papers
1 dated earlier, 1 later
1512.02325 (2015-12)
SSD: Single Shot MultiBox Detector
2006.07976 (2020-06)
Actor-Context-Actor Relation Network for Spatio-Temporal Action Localization
create_category_index 2 other papers
1 dated earlier, 1 later
1512.02325 (2015-12)
SSD: Single Shot MultiBox Detector
2006.07976 (2020-06)
Actor-Context-Actor Relation Network for Spatio-Temporal Action Localization
get_max_label_map_index 1 other paper
1 later
2006.07976 (2020-06)
Actor-Context-Actor Relation Network for Spatio-Temporal Action Localization
load_psnr 1 other paper
1 later
2010.07110 (2020-10)
Online Anomaly Detection in Surveillance Videos with Asymptotic Bounds on False Alarm Rate
load_psnr_gt 1 other paper
1 later
2010.07110 (2020-10)
Online Anomaly Detection in Surveillance Videos with Asymptotic Bounds on False Alarm Rate
load_psnr_gt_flow 1 other paper
1 later
2010.07110 (2020-10)
Online Anomaly Detection in Surveillance Videos with Asymptotic Bounds on False Alarm Rate

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

Abnormal event detection in video is a challenging vision problem. Most existing approaches formulate abnormal event detection as an outlier detection task, due to the scarcity of anomalous data during training. Because of the lack of prior information regarding abnormal events, these methods are not fully-equipped to differentiate between normal and abnormal events. In this work, we formalize abnormal event detection as a one-versus-rest binary classification problem. Our contribution is two-fold. First, we introduce an unsupervised feature learning framework based on object-centric convolutional auto-encoders to encode both motion and appearance information. Second, we propose a supervised classification approach based on clustering the training samples into normality clusters. A one-versus-rest abnormal event classifier is then employed to separate each normality cluster from the rest. For the purpose of training the classifier, the other clusters act as dummy anomalies. During inference, an object is labeled as abnormal if the highest classification score assigned by the one-versus-rest classifiers is negative. Comprehensive experiments are performed on four benchmarks: Avenue, ShanghaiTech, UCSD and UMN. Our approach provides superior results on all four data sets. On the large-scale ShanghaiTech data set, our method provides an absolute gain of 8.4% in terms of frame-level AUC compared to the state-of-the-art method [Sultani et al., CVPR 2018].

For agents

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

get_harvested_code_for_paper("1812.04960")
get_code_for_paper("1812.04960")
have("1812.04960")

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

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

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

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

Connect an agent — have() is free.