SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.14104 · 2021

Can An Image Classifier Suffice For Action Recognition?

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 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 4 have no contract verdict; 4 failures of our instrument; 3 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-24; 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/2106.14104.json · badge: /api/ran/2106.14104.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
ibm/sifar-pytorch canonical (classifier label)
classifier basis: census
9 ran · 3 no recorded run
FunctionStatusWhere it lives
window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ibm/sifar-pytorch/my_models/sifar_swin.py
code served (permissive licence) · get_code("144d10b49baeb8a6")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (8, 4, 4, 4) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T22:38:58Z). 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 tensor with shape (B, H, W, C)
# B=2 (batch), H=8 (height), W=8 (width), C=4 (channels)
# Using distinct sizes: 2, 8, 8, 4
x = torch.randn(2, 8, 8, 4)

# window_size must divide both H and W evenly
# H=8, W=8, so window_size=4 works (8 // 4 = 2)
window_size = 4

ARGS = {
    "x": x,
    "window_size": window_size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 4, dtype family float, shape (8, 4, 4, 4) — shape (8, 4, 4, 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
all_gather Ran
ran; our contract draft was wrong, not the code
ibm/sifar-pytorch/simclr.py
code served (permissive licence) · get_code("2b5d65dc96c1a03b")
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) and returned Tensor, ndim 3, dtype family float, shape (2, 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.distributed as dist
from unittest.mock import Mock, patch

torch.manual_seed(0)

# Mock distributed setup since we're running on CPU without actual distributed training
mock_world_size = 2

def mock_get_world_size():
    return mock_world_size

def mock_all_gather(tensor_list, tensor):
    """Mock all_gather that simulates gathering from multiple replicas"""
    for i in range(len(tensor_list)):
        tensor_list[i].copy_(tensor)

# Patch dist functions
dist.get_world_size = mock_get_world_size
dist.all_gather = mock_all_gather

# Create a small tensor for testing
tensor = torch.randn(2, 4)

ARGS = {
    "tensor": tensor,
    "expand_dim": 0,
    "num_replicas": 2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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, 2, 4) — shape (2, 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
concat_all_gather Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ibm/sifar-pytorch/engine.py
code served (permissive licence) · get_code("8a9bb6e2787fae25")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (4, 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
from unittest.mock import MagicMock, patch

torch.manual_seed(0)

# Mock torch.distributed to avoid actual distributed setup
mock_world_size = 2

def mock_get_world_size():
    return mock_world_size

def mock_all_gather(tensors_gather, tensor, async_op=False):
    # Simulate all_gather by filling tensors_gather with the same tensor
    for i in range(len(tensors_gather)):
        tensors_gather[i] = tensor.clone()

# Patch torch.distributed
torch.distributed.get_world_size = mock_get_world_size
torch.distributed.all_gather = mock_all_gather

# Create a small tensor for testing
# Using distinct sizes: batch=2, feature_dim=4
tensor_1d = torch.randn(4)
tensor_2d = torch.randn(2, 4)

ARGS = {
    "tensor": tensor_2d
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, 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 (4, 4) — shape (4, 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
create_new_image_size Ran
ran on a synthesized input
ibm/sifar-pytorch/my_models/sifar_swin.py
code served (permissive licence) · get_code("feb6e531da1634d0")
How it ran

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

torch.manual_seed(0)

# Analyzing the function:
# - img_size: an integer (used in multiplication)
# - super_img_dim: a tuple/list with 2 elements (indexed as [0] and [1])
# - window_size: an integer (used in multiplication)
# The function performs arithmetic operations and returns a tuple

ARGS = {
    "img_size": 64,
    "super_img_dim": (2, 3),
    "window_size": 2
}
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 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
create_super_img Ran
ran on a synthesized input
ibm/sifar-pytorch/my_models/sifar_util.py
code served (permissive licence) · get_code("86ba8935921dc67e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 3, 16, 16) 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
from timm.models.layers import to_2tuple

torch.manual_seed(0)

# Create a small input tensor
# The function expects x to have shape (b, th*tw*c, h, w)
# Let's create: batch=2, th=2, tw=2, c=3, h=4, w=5
# So x shape should be (2, 2*2*3, 4, 5) = (2, 12, 4, 5)
x = torch.randn(2, 12, 4, 5)

# img_size parameter - target spatial dimensions
img_size = 8

# super_img_rows parameter - th (number of rows in the tiling)
super_img_rows = 2

ARGS = {
    "x": x,
    "img_size": img_size,
    "super_img_rows": super_img_rows,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, timm, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 16, 16) — shape (2, 3, 16, 16) 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
frames_to_super_image Ran
ran on a synthesized input
ibm/sifar-pytorch/my_models/sifar_util.py
code served (permissive licence) · get_code("e4c2355f56ef1d95")
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 (2, 360, 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
import numpy as np
from einops import rearrange

torch.manual_seed(0)

# The function takes a tensor x and rearranges it from frames into a super image
# x should have shape (b * th * tw, h * w, c) based on the rearrange pattern
# where:
# - b is batch size
# - th is super_img_rows (number of rows of frames)
# - tw is super_img_cols (number of cols of frames)
# - h is img_h (height of each frame)
# - w is img_w (width of each frame)
# - c is channels

batch_size = 2
super_img_rows = 3
super_img_cols = 4
img_h = 5
img_w = 6
channels = 3

# Create input tensor with shape (b * th * tw, h * w, c)
# = (2 * 3 * 4, 5 * 6, 3) = (24, 30, 3)
x = torch.randn(batch_size * super_img_rows * super_img_cols, img_h * img_w, channels)

ARGS = {
    'x': x,
    'super_img_rows': super_img_rows,
    'super_img_cols': super_img_cols,
    'img_h': img_h,
    'img_w': img_w,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, 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 3, dtype family float, shape (2, 360, 3) — shape (2, 360, 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
load_image Ran
ran, honoured the contract we drafted
ibm/sifar-pytorch/video_dataset.py
code served (permissive licence) · get_code("d4d43ca38bd196b3")
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 4, 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 os
import tempfile
import numpy as np
from PIL import Image

# Create temporary directory structure with test images
temp_dir = tempfile.mkdtemp()
test_dir = os.path.join(temp_dir, 'test_directory')
os.makedirs(test_dir, exist_ok=True)

# Create some test images
for i in range(1, 5):
    img = Image.new('RGB', (64, 48), color=(100 + i*10, 150 - i*5, 200))
    img.save(os.path.join(test_dir, f'image_{i:05d}.jpg'))

ARGS = {
    'root_path': temp_dir,
    'directory': 'test_directory',
    'image_tmpl': 'image_{:05d}.jpg',
    'idx': 1,
    'modality': 'rgb'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 4, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
super_image_to_frames Ran
ran on a synthesized input
ibm/sifar-pytorch/my_models/sifar_util.py
code served (permissive licence) · get_code("6d5c67058b4d0cf9")
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 (24, 30, 7) 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
from einops import rearrange

torch.manual_seed(0)

# Analyze the function:
# - x: tensor that gets rearranged with pattern 'b (th h tw w) c -> (b th tw) (h w) c'
#   The input needs dimensions: batch, (th*h*tw*w), channels
#   The pattern expects: th, tw, h, w parameters
# - super_img_rows: th (number of rows in super image grid)
# - super_img_cols: tw (number of cols in super image grid)
# - img_h: h (height of individual image)
# - img_w: w (width of individual image)

# Let's use distinct sizes for each dimension:
# batch=2, th=3, tw=4, h=5, w=6, c=7
batch = 2
th = 3  # super_img_rows
tw = 4  # super_img_cols
h = 5   # img_h
w = 6   # img_w
c = 7   # channels

# Construct x tensor with shape (batch, th*h*tw*w, c)
# = (2, 3*5*4*6, 7) = (2, 360, 7)
x = torch.randn(batch, th * h * tw * w, c)

ARGS = {
    'x': x,
    'super_img_rows': th,
    'super_img_cols': tw,
    'img_h': h,
    'img_w': w,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, 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 (24, 30, 7) — shape (24, 30, 7) 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
window_reverse Ran
ran; our contract draft was wrong, not the code
ibm/sifar-pytorch/my_models/sifar_swin.py
code served (permissive licence) · get_code("61bf152e6a42a184")
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) and returned Tensor, ndim 4, dtype family float, shape (2, 8, 12, 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)

# Parameters for window_reverse
# windows: (num_windows*B, window_size, window_size, C)
# The function expects windows to be partitioned from an image of size (B, H, W, C)
# where the image is divided into non-overlapping windows of size window_size x window_size

B = 2  # batch size
H = 8  # image height
W = 12  # image width
window_size = 4  # window size
C = 3  # number of channels

# Calculate number of windows
num_windows_h = H // window_size  # 2
num_windows_w = W // window_size  # 3
num_windows = num_windows_h * num_windows_w  # 6

# windows shape: (num_windows*B, window_size, window_size, C)
# = (6*2, 4, 4, 3) = (12, 4, 4, 3)
windows = torch.randn(num_windows * B, window_size, window_size, C)

ARGS = {
    "windows": windows,
    "window_size": window_size,
    "H": H,
    "W": W,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 4, dtype family float, shape (2, 8, 12, 3) — shape (2, 8, 12, 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
compute_img_diff Not yet run
unverified (harvested, no recorded run)
ibm/sifar-pytorch/video_dataset.py
code served (permissive licence) · get_code("28154a33c7d515b4")
How it ran

no invocation recorded.

random_clip Not yet run
unverified (harvested, no recorded run)
ibm/sifar-pytorch/video_dataset.py
code served (permissive licence) · get_code("52a11ad211e62513")
How it ran

no invocation recorded.

summary Not yet run
unverified (harvested, no recorded run)
ibm/sifar-pytorch/benchmark.py
code served (permissive licence) · get_code("c5b12f7ac8a2a627")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 7 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 2 the same month, 6 later) and 5 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
window_reverse 227 other papers
6 dated earlier, 7 the same month, 214 later · 34 only as an assembly brick
1608.03983 (2016-08)
SGDR: Stochastic Gradient Descent with Warm Restarts
1711.10925 (2017-11)
Deep Image Prior
2003.13678 (2020-03)
Designing Network Design Spaces
and 224 more not named here
window_partition 223 other papers
6 dated earlier, 7 the same month, 210 later · 32 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1711.10925 (2017-11)
Deep Image Prior
2003.13678 (2020-03)
Designing Network Design Spaces
and 220 more not named here
all_gather 1 other paper
1 dated earlier
2002.05709 (2020-02)
A Simple Framework for Contrastive Learning of Visual Representations
compute_img_diff 1 other paper
1 later
2307.07494 (2023-07)
TALL: Thumbnail Layout for Deepfake Video Detection
concat_all_gather 1 other paper
1 later
2307.07494 (2023-07)
TALL: Thumbnail Layout for Deepfake Video Detection
load_image 1 other paper
1 later
2307.07494 (2023-07)
TALL: Thumbnail Layout for Deepfake Video Detection
random_clip 1 other paper
1 later
2307.07494 (2023-07)
TALL: Thumbnail Layout for Deepfake Video 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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We explore a new perspective on video understanding by casting the video recognition problem as an image recognition task. Our approach rearranges input video frames into super images, which allow for training an image classifier directly to fulfill the task of action recognition, in exactly the same way as image classification. With such a simple idea, we show that transformer-based image classifiers alone can suffice for action recognition. In particular, our approach demonstrates strong and promising performance against SOTA methods on several public datasets including Kinetics400, Moments In Time, Something-Something V2 (SSV2), Jester and Diving48. We also experiment with the prevalent ResNet image classifiers in computer vision to further validate our idea. The results on both Kinetics400 and SSV2 are comparable to some of the best-performed CNN approaches based on spatio-temporal modeling. Our source codes and models are available at https://github.com/IBM/sifar-pytorch.

For agents

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

get_harvested_code_for_paper("2106.14104")
get_code_for_paper("2106.14104")
have("2106.14104")

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

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

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

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

Connect an agent — have() is free.