SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Shi_Multi-Modal_Multi-Action_Video_Recognition_ICCV_2021_paper · ICCV · 2021

Multi-Modal Multi-Action Video Recognition

Junyu Dong, Haiyong Zheng, Zhaorui Gu, Bing Zheng, Zhensheng Shi, Ju Liang, Qianqian Li

Open in the Atlas

Code that ran

8 of 10 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; 3 failures of our instrument; 2 no recorded run), measured 2026-11-24; 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/Shi_Multi-Modal_Multi-Action_Video_Recognition_ICCV_2021_paper.json · badge: /api/ran/Shi_Multi-Modal_Multi-Action_Video_Recognition_ICCV_2021_paper.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
zhenglab/multi-action-video canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
FunctionStatusWhere it lives
assert_and_infer_cfg Ran
ran on a synthesized input
zhenglab/multi-action-video/lib/config/defaults.py
code served (permissive licence) · get_code("f1a66cc938afc830")
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 SimpleNamespace. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from types import SimpleNamespace

torch.manual_seed(0)

# Build a config object with all required attributes
cfg = SimpleNamespace()

# BN config
cfg.BN = SimpleNamespace()
cfg.BN.USE_PRECISE_STATS = False
cfg.BN.NUM_BATCHES_PRECISE = 10

# TRAIN config
cfg.TRAIN = SimpleNamespace()
cfg.TRAIN.CHECKPOINT_TYPE = 'pytorch'
cfg.TRAIN.BATCH_SIZE = 32

# TEST config
cfg.TEST = SimpleNamespace()
cfg.TEST.CHECKPOINT_TYPE = 'pytorch'
cfg.TEST.BATCH_SIZE = 16

# SOLVER config
cfg.SOLVER = SimpleNamespace()
cfg.SOLVER.BASE_LR = 0.1
cfg.SOLVER.BASE_LR_SCALE_NUM_SHARDS = False

# M3A config
cfg.M3A = SimpleNamespace()
cfg.M3A.MODE = 'NONE'
cfg.M3A.MODAL_JOINT_TYPE = 'NONE'
cfg.M3A.NLAYERS = 1

# Top-level config
cfg.NUM_GPUS = 2
cfg.NUM_SHARDS = 1
cfg.SHARD_ID = 0

ARGS = {
    'cfg': cfg
}
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 SimpleNamespace — a SimpleNamespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleNamespace 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
crop_boxes Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhenglab/multi-action-video/lib/datasets/transform.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from CAMMA-public/SurgVLP, is pointer only (licence: NONE) · get_code("157585dc6ae8a498")
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 CAMMA-public/SurgVLP, 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_sequence Ran
ran, honoured the contract we drafted
zhenglab/multi-action-video/lib/datasets/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from CAMMA-public/SurgVLP, is pointer only (licence: NONE) · get_code("37cabfc73f71318b")
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 CAMMA-public/SurgVLP, 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_start_end_idx Ran
ran on a synthesized input
zhenglab/multi-action-video/lib/datasets/decoder.py
code served (permissive licence) · get_code("2edf606240507576")
How it ran

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

import math
import random

random.seed(0)
math.seed = 0

ARGS = {
    "video_size": 100,
    "clip_size": 16,
    "clip_idx": 0,
    "num_clips": 10,
    "use_offset": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pack_pathway_output Ran
ran on a synthesized input
zhenglab/multi-action-video/lib/datasets/utils.py
code served (permissive licence) · get_code("8dded699f2da8600")
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 5, 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

torch.manual_seed(0)

class Config:
    class DATA:
        REVERSE_INPUT_CHANNEL = False
    
    class MODEL:
        ARCH = "slow"
        SINGLE_PATHWAY_ARCH = ["slow", "c2d"]
        MULTI_PATHWAY_ARCH = ["slowfast"]

cfg = Config()

# Create a small frames tensor: channel x num_frames x height x width
# Using distinct dimensions: 3 channels, 8 frames, 4 height, 5 width
frames = torch.randn(3, 8, 4, 5)

ARGS = {
    "cfg": cfg,
    "frames": frames,
}
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 5, 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
random_crop Ran
ran on a synthesized input
zhenglab/multi-action-video/lib/datasets/transform.py
code served (permissive licence) · get_code("967f6f1f3e4b6d6d")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# Create a small tensor for images: num_frames x channel x height x width
# Using distinct dimensions: 2 frames, 3 channels, 8 height, 6 width
images = torch.randn(2, 3, 8, 6)

# Create boxes: num_boxes x 4 (x1, y1, x2, y2 format)
# 2 boxes with coordinates within the image bounds
boxes = np.array([[1.0, 1.0, 4.0, 5.0], [2.0, 2.0, 5.0, 6.0]], dtype=np.float32)

# Crop size should be smaller than image dimensions
size = 4

ARGS = {
    "images": images,
    "size": size,
    "boxes": boxes,
}
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 — 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
random_short_side_scale_jitter Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zhenglab/multi-action-video/lib/datasets/transform.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from CAMMA-public/SurgVLP, is pointer only (licence: NONE) · get_code("8b52c4f275af3fc5")
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 CAMMA-public/SurgVLP, 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.

temporal_sampling Ran
ran; our contract draft was wrong, not the code
zhenglab/multi-action-video/lib/datasets/decoder.py
code served (permissive licence) · get_code("2ce6782a49b98214")
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 (5, 3, 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

torch.manual_seed(0)

# Create a tensor of video frames: num_frames x channels x height x width
frames = torch.randn(10, 3, 4, 4)

start_idx = 0
end_idx = 9
num_samples = 5

ARGS = {
    "frames": frames,
    "start_idx": start_idx,
    "end_idx": end_idx,
    "num_samples": num_samples,
}
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 4, dtype family float, shape (5, 3, 4, 4) — shape (5, 3, 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
construct_loader Not yet run
unverified (harvested, no recorded run)
zhenglab/multi-action-video/lib/datasets/loader.py
code served (permissive licence) · get_code("0d835b942cf75515")
How it ran

no invocation recorded.

pyav_decode_stream Not yet run
unverified (harvested, no recorded run)
zhenglab/multi-action-video/lib/datasets/decoder.py
code served (permissive licence) · get_code("b28b46ef7776c434")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 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 4 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
crop_boxes 4 other papers
4 later
136640364 (2022 (year only))
Continual 3D Convolutional Neural Networks for Real-time Processing of Videos
2206.13559 (2022-06)
ST-Adapter: Parameter-Efficient Image-to-Video Transfer Learning
2210.00788 (2022-10)
Towards a Unified View on Visual Parameter-Efficient Transfer Learning
and 1 more not named here
pyav_decode_stream 4 other papers
1 dated earlier, 3 later
2005.03788 (2020-05)
ProSelfLC: Progressive Self Label Correction for Training Robust Deep Neural Networks
136950157 (2022 (year only))
K-centered Patch Sampling for Efficient Video Recognition
2206.03428 (2022-06)
Revealing Single Frame Bias for Video-and-Language Learning
and 1 more not named here
temporal_sampling 4 other papers
1 dated earlier, 3 later
2005.03788 (2020-05)
ProSelfLC: Progressive Self Label Correction for Training Robust Deep Neural Networks
136950157 (2022 (year only))
K-centered Patch Sampling for Efficient Video Recognition
2306.07703 (2023-06)
E2E-LOAD: End-to-End Long-form Online Action Detection
and 1 more not named here
get_sequence 3 other papers
3 later
136640364 (2022 (year only))
Continual 3D Convolutional Neural Networks for Real-time Processing of Videos
136950157 (2022 (year only))
K-centered Patch Sampling for Efficient Video Recognition
2410.00263 (2024-10)
Procedure-Aware Surgical Video-language Pretraining with Hierarchical Knowledge Augmentation
random_short_side_scale_jitter 3 other papers
3 later
136640364 (2022 (year only))
Continual 3D Convolutional Neural Networks for Real-time Processing of Videos
2210.00788 (2022-10)
Towards a Unified View on Visual Parameter-Efficient Transfer Learning
2410.00263 (2024-10)
Procedure-Aware Surgical Video-language Pretraining with Hierarchical Knowledge Augmentation
random_crop 2 other papers
2 later
136640364 (2022 (year only))
Continual 3D Convolutional Neural Networks for Real-time Processing of Videos
2210.00788 (2022-10)
Towards a Unified View on Visual Parameter-Efficient Transfer Learning

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

Multi-action video recognition is much more challenging due to the requirement to recognize multiple actions co-occurring simultaneously or sequentially. Modeling multi-action relations is beneficial and crucial to understand videos with multiple actions, and actions in a video are usually presented in multiple modalities. In this paper, we propose a novel multi-action relation model for videos, by leveraging both relational graph convolutional networks (GCNs) and video multi-modality. We first build multi-modal GCNs to explore modality-aware multi-action relations, fed by modality-specific action representation as node features, i.e., spatiotemporal features learned by 3D convolutional neural network (CNN), audio and textual embeddings queried from respective feature lexicons. We then joint both multi-modal CNN-GCN models and multi-modal feature representations for learning better relational action predictions. Ablation study, multi-action relation visualization, and boosts analysis, all show efficacy of our multimodal multi-action relation modeling. Also our method achieves state-of-the-art performance on large-scale multiaction M-MiT benchmark. Our code is made publicly available at https://github.com/zhenglab/multi-action-video.

For agents

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

get_harvested_code_for_paper("Shi_Multi-Modal_Multi-Action_Video_Recognition_ICCV_2021_paper")
get_code_for_paper("Shi_Multi-Modal_Multi-Action_Video_Recognition_ICCV_2021_paper")
have("Shi_Multi-Modal_Multi-Action_Video_Recognition_ICCV_2021_paper")

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

curl https://syntology.ai/api/ran/Shi_Multi-Modal_Multi-Action_Video_Recognition_ICCV_2021_paper.json

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

[![Syntology run record](https://syntology.ai/api/ran/Shi_Multi-Modal_Multi-Action_Video_Recognition_ICCV_2021_paper.svg)](https://syntology.ai/paper/Shi_Multi-Modal_Multi-Action_Video_Recognition_ICCV_2021_paper)

Connect an agent — have() is free.