SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2212.10368 · 2022

Masked Event Modeling: Self-Supervised Pretraining for Event Cameras

arXiv · PDF · Open in the Atlas

Code that ran

12 of 18 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; 3 honoured the contract we drafted, 2 violated it and 4 have no contract verdict; 3 failures of our instrument; 6 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/2212.10368.json · badge: /api/ran/2212.10368.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
tum-vision/mem canonical (classifier label)
classifier basis not recorded on the link
12 ran · 6 no recorded run
FunctionStatusWhere it lives
default Ran
ran, violated the contract we drafted
tum-vision/mem/mem/modeling_discrete_vae.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("60fff7c3c400d7ff")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ThomasMrY/VCT, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

exists Ran
ran, violated the contract we drafted
tum-vision/mem/mem/modeling_discrete_vae.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from ThomasMrY/VCT, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_loss_scale_for_deepspeed Ran
ran, honoured the contract we drafted
tum-vision/mem/mem/engine_for_finetuning.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from kangsankim07/videoicl, is pointer only (licence: NONE) · get_code("29416043c7035e7c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from kangsankim07/videoicl, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_num_layer_for_vit Ran
ran, honoured the contract we drafted
tum-vision/mem/mem/optim_factory.py
code served (permissive licence) · get_code("a3448702d6025ce6")
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 torch.nn as nn

torch.manual_seed(0)

# The function takes two parameters:
# 1. var_name: a string representing a variable name
# 2. num_max_layer: an integer representing the maximum number of layers

# Based on the function body, var_name is checked against various patterns
# and num_max_layer is used as a fallback return value

ARGS = {
    'var_name': 'blocks.5.weight',
    'num_max_layer': 12
}
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 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_parameter_groups Ran
ran; our contract draft was wrong, not the code
tum-vision/mem/mem/optim_factory.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from boyazeng/understand_bias, is pointer only (licence: NONE) · get_code("0ef0019514eaaa09")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from boyazeng/understand_bias, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_valid_flow Ran
ran on a synthesized input
tum-vision/mem/mem/dataset_folder.py
code served (permissive licence) · get_code("690ba46b598729b5")
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 3, dtype family float, shape (1, 4, 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 torch

torch.manual_seed(0)

# targets: 2D or 3D tensor that gets indexed with [0:1, :, :] and [1:2, :, :]
# So it needs at least 3 dimensions with first dimension >= 2
# Shape: (batch=2, height=4, width=3)
targets = torch.randint(0, 2, (2, 4, 3))

# path: string that may contain 'outdoor' to trigger conditional logic
path = "outdoor_scene"

ARGS = {
    "targets": targets,
    "path": path,
}
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 (1, 4, 3) — shape (1, 4, 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
is_valid_file_dsec Ran
ran on a synthesized input
tum-vision/mem/mem/datasets.py
code served (permissive licence) · get_code("6dd91e35fd03983c")
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
import numpy as np

def is_valid_file_dsec(path):
    if '.npy' in path:
        return True
    else:
        return False

ARGS = {
    'path': '/data/file.npy'
}
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 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
is_valid_file_mvsec Ran
ran on a synthesized input
tum-vision/mem/mem/datasets.py
code served (permissive licence) · get_code("40dede0d13c8dfae")
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

# Analyze the function: is_valid_file_mvsec(path)
# The function takes a single parameter 'path' which is a string
# It checks if 'indoor' is in the path, extracts a number from the filename,
# and returns True if the number > 150, False otherwise

# Valid test cases:
# 1. path contains 'indoor' and filename number > 150 -> True
# 2. path doesn't contain 'indoor' -> False
# 3. path contains 'indoor' but filename number <= 150 -> False

# We'll use a path that satisfies the True condition
path_valid = "/some/indoor/path/151.txt"

ARGS = {
    "path": path_valid
}
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
pil_loader Ran
ran, honoured the contract we drafted
tum-vision/mem/mem/dataset_folder.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zhentingwang/diagnosis, is pointer only (licence: NONE) · get_code("f6be833ba409926f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from zhentingwang/diagnosis, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

plot_masks_and_images Ran
ran on a synthesized input
tum-vision/mem/mem/engine_for_pretraining.py
code served (permissive licence) · get_code("bfe177b133a4d710")
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
import tempfile
import os

torch.manual_seed(0)

# Create temporary directory for dumppath
dumppath = tempfile.mkdtemp()

# Create sample tensors
# images_sample: (batch, channels, height, width)
images_sample = torch.randn(2, 3, 4, 5)

# reconstruction: (batch, channels, height, width)
reconstruction = torch.randn(2, 3, 4, 5)

# masks: (batch, channels, height, width) - should be binary/0-1
masks = torch.randint(0, 2, (2, 1, 4, 5)).float()

# targets: tensor with .item() method - one target per sample
targets = torch.tensor([10, 20])

# counter: integer
counter = 0

# normalize: boolean
normalize = False

ARGS = {
    'images_sample': images_sample,
    'reconstruction': reconstruction,
    'masks': masks,
    'dumppath': dumppath,
    'targets': targets,
    'counter': counter,
    'normalize': normalize
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, 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
top_k Ran
ran; our contract draft was wrong, not the code
tum-vision/mem/mem/modeling_discrete_vae.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from junxia97/mole-bert, is pointer only (licence: NONE) · get_code("fc2efb619b6ee2c4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from junxia97/mole-bert, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

train_class_batch Ran
ran; our contract draft was wrong, not the code
tum-vision/mem/mem/engine_for_finetuning.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from kangsankim07/videoicl, is pointer only (licence: NONE) · get_code("c7976ea27edc377a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from kangsankim07/videoicl, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

accimage_loader Not yet run
unverified (harvested, no recorded run)
tum-vision/mem/mem/dataset_folder.py
code served (permissive licence) · get_code("e668ee56928fd57d")
How it ran

no invocation recorded.

get_1d_sincos_pos_embed_from_grid Not yet run
unverified (harvested, no recorded run)
tum-vision/mem/mem/modeling_mae.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zhangyifei01/LMIM, is pointer only (licence: NONE) · get_code("12035a2f77d8016c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from zhangyifei01/LMIM, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_2d_sincos_pos_embed Not yet run
unverified (harvested, no recorded run)
tum-vision/mem/mem/modeling_mae.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from yunongLiu1/IKEA-Manuals-at-Work, is pointer only (licence: NONE) · get_code("3185afc3e87293ed")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from yunongLiu1/IKEA-Manuals-at-Work, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_2d_sincos_pos_embed_from_grid Not yet run
unverified (harvested, no recorded run)
tum-vision/mem/mem/modeling_mae.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zhangyifei01/LMIM, is pointer only (licence: NONE) · get_code("f10004e059714d42")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from zhangyifei01/LMIM, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_model Not yet run
unverified (harvested, no recorded run)
tum-vision/mem/mem/run_mem_pretraining.py
code served (permissive licence) · get_code("5d9ee4d7cd9eacc7")
How it ran

no invocation recorded.

plot_mae Not yet run
unverified (harvested, no recorded run)
tum-vision/mem/mem/engine_for_pretraining.py
code served (permissive licence) · get_code("96e4c97a4c23a9d1")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 11 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 4 the same month, 11 later) and 7 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
exists 486 other papers
130 dated earlier, 6 the same month, 347 later, 1 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
get_2d_sincos_pos_embed_from_grid 190 other papers
17 dated earlier, 2 the same month, 171 later · 65 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 187 more not named here
default 163 other papers
64 dated earlier, 3 the same month, 95 later, 1 undated · 27 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1810.00825 (2018-10)
Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networks
1907.01470 (2019-07)
Augmenting Self-attention with Persistent Memory
and 160 more not named here
get_2d_sincos_pos_embed 95 other papers
13 dated earlier, 1 the same month, 81 later · 33 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 92 more not named here
get_1d_sincos_pos_embed_from_grid 39 other papers
10 dated earlier, 29 later · 25 only as an assembly brick
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
2204.09435 (2022-04)
Hephaestus: A large scale multitask dataset towards InSAR understanding
and 36 more not named here
get_parameter_groups 18 other papers
3 dated earlier, 13 later, 2 same year, order not determinable
1905.02244 (2019-05)
Searching for MobileNetV3
136810051 (2022 (year only))
AMixer: Adaptive Weight Mixing for Self-Attention Free Vision Transformers
136860514 (2022 (year only))
SLIP: Self-supervision meets Language-Image Pre-training
and 15 more not named here
get_loss_scale_for_deepspeed 15 other papers
2 dated earlier, 13 later
2203.14415 (2022-03)
Mugs: A Multi-Granular Self-Supervised Learning Framework
2211.09120 (2022-11)
AdaMAE: Adaptive Masking for Efficient Spatiotemporal Learning with Masked Autoencoders
2303.16058 (2023-03)
Unmasked Teacher: Towards Training-Efficient Video Foundation Models
and 12 more not named here
pil_loader 11 other papers
4 dated earlier, 7 later
1502.03044 (2015-02)
Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
2111.15667 (2021-11)
Adaptive Token Sampling For Efficient Vision Transformers
2206.02967 (2022-06)
Masked Unsupervised Self-training for Label-free Image Classification
and 8 more not named here
train_class_batch 11 other papers
2 dated earlier, 9 later
2203.14415 (2022-03)
Mugs: A Multi-Granular Self-Supervised Learning Framework
2211.09120 (2022-11)
AdaMAE: Adaptive Masking for Efficient Spatiotemporal Learning with Masked Autoencoders
2307.02227 (2023-07)
MAE-DFER: Efficient Masked Autoencoder for Self-supervised Dynamic Facial Expression Recognition
and 8 more not named here
get_num_layer_for_vit 8 other papers
2 dated earlier, 5 later, 1 same year, order not determinable
136860514 (2022 (year only))
SLIP: Self-supervision meets Language-Image Pre-training
2209.03917 (2022-09)
Exploring Target Representations for Masked Autoencoders
2211.09120 (2022-11)
AdaMAE: Adaptive Masking for Efficient Spatiotemporal Learning with Masked Autoencoders
and 5 more not named here
top_k 2 other papers
1 dated earlier, 1 later
2210.16484 (2022-10)
A Systematic Survey of Chemical Pre-trained Models
aaai_25604 (2023 (year only))
One-for-All: Proposal Masked Cross-Class Anomaly Detection

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

Event cameras asynchronously capture brightness changes with low latency, high temporal resolution, and high dynamic range. However, annotation of event data is a costly and laborious process, which limits the use of deep learning methods for classification and other semantic tasks with the event modality. To reduce the dependency on labeled event data, we introduce Masked Event Modeling (MEM), a self-supervised framework for events. Our method pretrains a neural network on unlabeled events, which can originate from any event camera recording. Subsequently, the pretrained model is finetuned on a downstream task, leading to a consistent improvement of the task accuracy. For example, our method reaches state-of-the-art classification accuracy across three datasets, N-ImageNet, N-Cars, and N-Caltech101, increasing the top-1 accuracy of previous work by significant margins. When tested on real-world event data, MEM is even superior to supervised RGB-based pretraining. The models pretrained with MEM are also label-efficient and generalize well to the dense task of semantic image segmentation.

For agents

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

get_harvested_code_for_paper("2212.10368")
get_code_for_paper("2212.10368")
have("2212.10368")

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

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

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

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

Connect an agent — have() is free.