SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.06947 · ICCV · 2023

Video-FocalNets: Spatio-Temporal Focal Modulation for Video Action Recognition

Mubarak Shah, Muzammal Naseer, Salman Khan, Muhammad Khattak, Fahad Shahbaz Khan, Syed Wasim

arXiv · PDF · Open in the Atlas

Code that ran

23 of 32 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (7 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 9 have no contract verdict; 11 failures of our instrument; 9 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/2307.06947.json · badge: /api/ran/2307.06947.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
talalwasim/video-focalnets canonical (classifier label)
classifier basis: census
14 ran · 2 no recorded run
innat/Video-FocalNets community
Papers with Code archive
4 ran · 3 no recorded run
TalalWasim/Video-FocalNets community
Papers with Code archive
3 ran · 2 no recorded run
hayatkhan8660-maker/DVFL-Net community (classifier label)
classifier basis not recorded on the link
2 ran · 2 no recorded run
FunctionStatusWhere it lives
PatchEmbed Ran
ran on a synthesized input · constructed an object; no result was computed
TalalWasim/Video-FocalNets/classification/videofocalnet.py
pointer only (licence: NONE) · get_code("e83dd8c65a734673")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TalalWasim/Video-FocalNets 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.

SpatioTemporalFocalModulation Ran
ran on a synthesized input · constructed an object; no result was computed
TalalWasim/Video-FocalNets/classification/videofocalnet.py
pointer only (licence: NONE) · get_code("304fe25c547d2f00")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TalalWasim/Video-FocalNets 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.

TFDropPath Ran
ran on a synthesized input · constructed an object; no result was computed
innat/Video-FocalNets/videofocalnet/model.py
code served (permissive licence) · get_code("a58723c1a5bda855")
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 an instance of its own class, TFDropPath: the run constructed the object and did not call it, so no result was computed. 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 tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
import numpy as np

# Create a small input tensor for testing
# Shape: (batch_size=2, spatial_dims..., features=4)
x = tf.constant(np.random.randn(2, 4, 4).astype(np.float32))

# Define ARGS dictionary with all parameters for TFDropPath
ARGS = {
    'rate': 0.5,
    'seed': 42,
    'name': 'drop_path_layer'
}
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 TFDropPath — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TFDropPath 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
TFMlp Ran
ran on a synthesized input · constructed an object; no result was computed
innat/Video-FocalNets/videofocalnet/model.py
code served (permissive licence) · get_code("bef3ab0dcd7067cf")
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 an instance of its own class, TFMlp: the run constructed the object and did not call it, so no result was computed. 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 tensorflow as tf
from tensorflow.keras import layers

# Create a small activation layer to use as the act_layer parameter
act_layer = layers.Activation(tf.nn.gelu)

# Define ARGS dict with all parameters for TFMlp
ARGS = {
    'in_features': 4,
    'hidden_features': 8,
    'out_features': 3,
    'drop': 0.1,
    'act_layer': act_layer,
}
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 TFMlp — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TFMlp 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
TFPatchEmbed Ran
ran on a synthesized input · constructed an object; no result was computed
innat/Video-FocalNets/videofocalnet/model.py
code served (permissive licence) · get_code("44a2e84640d35e69")
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 an instance of its own class, TFPatchEmbed: the run constructed the object and did not call it, so no result was computed. 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 tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers

# Build a minimal normalization layer that TFPatchEmbed expects
class MinimalNormLayer(layers.Layer):
    def __init__(self, axis=-1, epsilon=1e-05, **kwargs):
        super().__init__(**kwargs)
        self.axis = axis
        self.epsilon = epsilon
        self.gamma = None
        self.beta = None
    
    def build(self, input_shape):
        self.gamma = self.add_weight(shape=(input_shape[-1],), initializer='ones', name='gamma')
        self.beta = self.add_weight(shape=(input_shape[-1],), initializer='zeros', name='beta')
    
    def call(self, x):
        mean, variance = tf.nn.moments(x, axes=[self.axis], keepdims=True)
        normalized = (x - mean) / tf.sqrt(variance + self.epsilon)
        return normalized * self.gamma + self.beta

# Create a minimal norm layer instance
norm_layer_instance = MinimalNormLayer

# Build arguments dictionary
ARGS = {
    'img_size': (224, 224),
    'patch_size': 4,
    'in_chans': 3,
    'embed_dim': 96,
    'use_conv_embed': False,
    'norm_layer': norm_layer_instance,
    'is_stem': False,
    'tubelet_size': 1,
}
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 TFPatchEmbed — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TFPatchEmbed 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
TFSpatioTemporalFocalModulation Ran
ran on a synthesized input · constructed an object; no result was computed
innat/Video-FocalNets/videofocalnet/model.py
code served (permissive licence) · get_code("bcd922fa8a50f633")
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 an instance of its own class, TFSpatioTemporalFocalModulation: the run constructed the object and did not call it, so no result was computed. 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 tensorflow as tf
import numpy as np

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

# Define the arguments dictionary
ARGS = {
    "dim": 4,
    "focal_window": 3,
    "focal_level": 2,
    "focal_factor": 2,
    "bias": True,
    "proj_drop": 0.1,
    "use_postln_in_modulation": False,
    "normalize_modulator": False,
    "num_frames": 8,
}
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 TFSpatioTemporalFocalModulation — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TFSpatioTemporalFocalModulation 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
VideoFocalNet Ran
ran on a synthesized input · constructed an object; no result was computed
TalalWasim/Video-FocalNets/classification/videofocalnet.py
pointer only (licence: NONE) · get_code("0b5ff5992ed0ad74")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TalalWasim/Video-FocalNets 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.

auto_resume_helper Ran
ran; our contract draft was wrong, not the code
talalwasim/video-focalnets/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from leaplabthu/inline, is pointer only (licence: NONE) · get_code("0c32459bef92ff8c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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.

build_optimizer Ran
ran; our contract draft was wrong, not the code
talalwasim/video-focalnets/optimizer.py
pointer only (licence: NONE); the stored copy get_code serves, from CBalance/SSD, is pointer only (licence: NONE) · get_code("e35a4b2e4114b1a5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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.

build_scheduler Ran
ran; our contract draft was wrong, not the code
talalwasim/video-focalnets/lr_scheduler.py
pointer only (licence: NONE); the stored copy get_code serves, from leaplabthu/inline, is pointer only (licence: NONE) · get_code("07e8b4b487c0abb6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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.

build_teacher_model Ran
ran on a synthesized input
hayatkhan8660-maker/DVFL-Net/classification/build.py
code served (permissive licence) · get_code("d38f3624367ac8a0")
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 ResNet. 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
from types import SimpleNamespace

torch.manual_seed(0)

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

# DATA section
config.DATA = SimpleNamespace()
config.DATA.IMG_SIZE = 224
config.DATA.NUM_FRAMES = 8

# TEACHER_MODEL section
config.TEACHER_MODEL = SimpleNamespace()
config.TEACHER_MODEL.TYPE = "resnet50"
config.TEACHER_MODEL.PRETRAINED = False
config.TEACHER_MODEL.NUM_CLASSES = 1000
config.TEACHER_MODEL.DROP_PATH_RATE = 0.1
config.TEACHER_MODEL.TUBELET_SIZE = 2

# TEACHER_MODEL.FOCAL section
config.TEACHER_MODEL.FOCAL = SimpleNamespace()
config.TEACHER_MODEL.FOCAL.FOCAL_LEVELS = 2
config.TEACHER_MODEL.FOCAL.FOCAL_WINDOWS = [7, 5]
config.TEACHER_MODEL.FOCAL.USE_CONV_EMBED = True
config.TEACHER_MODEL.FOCAL.USE_LAYERSCALE = True
config.TEACHER_MODEL.FOCAL.USE_POSTLN = False
config.TEACHER_MODEL.FOCAL.USE_POSTLN_IN_MODULATION = False
config.TEACHER_MODEL.FOCAL.NORMALIZE_MODULATOR = False

# MODEL section (used in non-focal branches)
config.MODEL = SimpleNamespace()
config.MODEL.NUM_CLASSES = 1000

ARGS = {
    "config": config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
timm, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_transforms Ran
ran; our contract draft was wrong, not the code
talalwasim/video-focalnets/classification/videofocalnet.py
pointer only (licence: NONE) · get_code("652ca38bafaf4f7d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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.

build_transforms4display Ran
ran; our contract draft was wrong, not the code
talalwasim/video-focalnets/classification/videofocalnet.py
pointer only (licence: NONE) · get_code("4a1a30b09528ee69")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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.

check_keywords_in_name Ran
ran, violated the contract we drafted
talalwasim/video-focalnets/optimizer.py
pointer only (licence: NONE); the stored copy get_code serves, from leaplabthu/inline, is pointer only (licence: NONE) · get_code("b0a5beb34716d5a6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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.

create_logger Ran
ran; our contract draft was wrong, not the code
talalwasim/video-focalnets/logger.py
pointer only (licence: NONE); the stored copy get_code serves, from ghrua/seqpe, is pointer only (licence: NONE) · get_code("80450600f7f09b0a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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_grad_norm Ran
ran, honoured the contract we drafted
talalwasim/video-focalnets/utils.py
pointer only (licence: NONE) · get_code("eec1e7cba51d5e8e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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.

load_checkpoint Ran
ran, honoured the contract we drafted
talalwasim/video-focalnets/utils.py
pointer only (licence: NONE) · get_code("f8587b4b569b31e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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.

loss_fn_kd Ran
ran on a synthesized input
hayatkhan8660-maker/DVFL-Net/classification/criterion.py
code served (permissive licence) · get_code("40e37850e70297c2")
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 torch
import torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

# Define a small config class for kd_params with ALPHA and TEMPERATURE attributes
class KDParams:
    def __init__(self):
        self.ALPHA = 0.7
        self.TEMPERATURE = 4.0

# Define criterion - CrossEntropyLoss for classification
criterion = nn.CrossEntropyLoss()

# Create small tensors
batch_size = 2
num_classes = 4

# Student outputs: logits from student model (batch_size x num_classes)
student_outputs = torch.randn(batch_size, num_classes)

# Teacher outputs: logits from teacher model (batch_size x num_classes)
teacher_outputs = torch.randn(batch_size, num_classes)

# Labels: ground truth class indices (batch_size,)
labels = torch.randint(0, num_classes, (batch_size,))

# KD parameters
kd_params = KDParams()

ARGS = {
    "student_outputs": student_outputs,
    "labels": labels,
    "teacher_outputs": teacher_outputs,
    "kd_params": kd_params,
    "criterion": criterion
}
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 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
one_hot Ran
ran; our contract draft was wrong, not the code
talalwasim/video-focalnets/datasets/blending.py
pointer only (licence: NONE) · get_code("4728dc2025227bba")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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.

set_weight_decay Ran
ran; our contract draft was wrong, not the code
talalwasim/video-focalnets/optimizer.py
pointer only (licence: NONE); the stored copy get_code serves, from ztx-100/efficient_vit_with_dw, is pointer only (licence: NONE) · get_code("b33222a09fc93bec")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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.

shear_x Ran
ran; our contract draft was wrong, not the code
talalwasim/video-focalnets/datasets/rand_augment.py
pointer only (licence: NONE) · get_code("e866e1196986f728")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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.

shear_y Ran
ran; our contract draft was wrong, not the code
talalwasim/video-focalnets/datasets/rand_augment.py
pointer only (licence: NONE) · get_code("7b2503c99c9447fb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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.

translate_x_rel Ran
ran; our contract draft was wrong, not the code
talalwasim/video-focalnets/datasets/rand_augment.py
pointer only (licence: NONE) · get_code("323759f906fbb394")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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.

BasicLayer Not yet run
unverified (harvested, no recorded run)
TalalWasim/Video-FocalNets/classification/videofocalnet.py
pointer only (licence: NONE) · get_code("5da5482bcfc017c2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TalalWasim/Video-FocalNets 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.

TFBasicLayer Not yet run
unverified (harvested, no recorded run)
innat/Video-FocalNets/videofocalnet/model.py
code served (permissive licence) · get_code("456892b8f3ad701f")
How it ran

no invocation recorded.

TFVideoFocalNet Not yet run
unverified (harvested, no recorded run)
innat/Video-FocalNets/videofocalnet/model.py
code served (permissive licence) · get_code("80d19d9d058074c1")
How it ran

no invocation recorded.

TFVideoFocalNetBlock Not yet run
unverified (harvested, no recorded run)
innat/Video-FocalNets/videofocalnet/model.py
code served (permissive licence) · get_code("7359d74430b2ebd3")
How it ran

no invocation recorded.

VideoFocalNetBlock Not yet run
unverified (harvested, no recorded run)
TalalWasim/Video-FocalNets/classification/videofocalnet.py
pointer only (licence: NONE) · get_code("719831d1fc53a0b9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TalalWasim/Video-FocalNets 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.

build_model Not yet run
unverified (harvested, no recorded run)
talalwasim/video-focalnets/classification/build.py
pointer only (licence: NONE) · get_code("bdac4358ea39d416")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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.

find_package_location Not yet run
unverified (harvested, no recorded run)
hayatkhan8660-maker/DVFL-Net/get_local_rank.py
code served (permissive licence) · get_code("028190203e877ad1")
How it ran

no invocation recorded.

get_config Not yet run
unverified (harvested, no recorded run)
talalwasim/video-focalnets/config.py
pointer only (licence: NONE) · get_code("eb702a1f77e3c7bd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, talalwasim/video-focalnets 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_config Not yet run
unverified (harvested, no recorded run)
hayatkhan8660-maker/DVFL-Net/config.py
code served (permissive licence) · get_code("0493984d01a4e886")
How it ran

no invocation recorded.

Also present in other papers' code

Of 32 samples lifted from this paper's linked repositories, 32 carry a function identity and 0 do not. Of the 31 distinct functions with an identity, 12 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 1 the same month, 12 later) and 19 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
get_config 51 other papers
17 dated earlier, 31 later, 3 same year, order not determinable
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 48 more not named here
create_logger 35 other papers
15 dated earlier, 18 later, 2 same year, order not determinable
2104.13840 (2021-04)
Twins: Revisiting the Design of Spatial Attention in Vision Transformers
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 32 more not named here
check_keywords_in_name 31 other papers
12 dated earlier, 18 later, 1 same year, order not determinable
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 28 more not named here
shear_x 27 other papers
12 dated earlier, 15 later
1811.12814 (2018-11)
Graph-Based Global Reasoning Networks
2109.03508 (2021-09)
RepNAS: Searching for Efficient Re-parameterizing Blocks
2109.06165 (2021-09)
CDTrans: Cross-domain Transformer for Unsupervised Domain Adaptation
and 24 more not named here
shear_y 27 other papers
12 dated earlier, 15 later
1811.12814 (2018-11)
Graph-Based Global Reasoning Networks
2109.03508 (2021-09)
RepNAS: Searching for Efficient Re-parameterizing Blocks
2109.06165 (2021-09)
CDTrans: Cross-domain Transformer for Unsupervised Domain Adaptation
and 24 more not named here
translate_x_rel 26 other papers
12 dated earlier, 14 later
1811.12814 (2018-11)
Graph-Based Global Reasoning Networks
2109.03508 (2021-09)
RepNAS: Searching for Efficient Re-parameterizing Blocks
2109.06165 (2021-09)
CDTrans: Cross-domain Transformer for Unsupervised Domain Adaptation
and 23 more not named here
get_grad_norm 23 other papers
8 dated earlier, 15 later
1910.13616 (2019-10)
Multimodal Model-Agnostic Meta-Learning via Task-Aware Modulation
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
and 20 more not named here
auto_resume_helper 20 other papers
9 dated earlier, 11 later
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.04263 (2021-06)
On the Connection between Local Attention and Dynamic Depth-wise Convolution
and 17 more not named here
set_weight_decay 14 other papers
8 dated earlier, 6 later
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
and 11 more not named here
build_scheduler 13 other papers
1 dated earlier, 12 later
2103.14030 (2021-03)
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
2309.01430 (2023-09)
DAT++: Spatially Dynamic Vision Transformer with Deformable Attention
2311.03912 (2023-11)
FLORA: Fine-grained Low-Rank Architecture Search for Vision Transformer
and 10 more not named here
one_hot 12 other papers
7 dated earlier, 1 the same month, 4 later · 1 only as an assembly brick
1710.09412 (2017-10)
mixup: BEYOND EMPIRICAL RISK MINIMIZATION
2109.03508 (2021-09)
RepNAS: Searching for Efficient Re-parameterizing Blocks
2212.00776 (2022-12)
ResFormer: Scaling ViTs with Multi-Resolution Training
and 9 more not named here
build_optimizer 8 other papers
6 dated earlier, 2 later
2106.03650 (2021-06)
Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformer
2106.03746 (2021-06)
Efficient Training of Visual Transformers with Small Datasets
2106.04263 (2021-06)
On the Connection between Local Attention and Dynamic Depth-wise Convolution
and 5 more not named here

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

Recent video recognition models utilize Transformer models for long-range spatio-temporal context modeling. Video transformer designs are based on self-attention that can model global context at a high computational cost. In comparison, convolutional designs for videos offer an efficient alternative but lack long-range dependency modeling. Towards achieving the best of both designs, this work proposes Video-FocalNet, an effective and efficient architecture for video recognition that models both local and global contexts. Video-FocalNet is based on a spatiotemporal focal modulation architecture that reverses the interaction and aggregation steps of self-attention for better efficiency. Further, the aggregation step and the interaction step are both implemented using efficient convolution and element-wise multiplication operations that are computationally less expensive than their self-attention counterparts on video representations. We extensively explore the design space of focal modulation-based spatiotemporal context modeling and demonstrate our parallel spatial and temporal encoding design to be the optimal choice. Video-FocalNets perform favorably well against the state-of-the-art transformer-based models for video recognition on five large-scale datasets (Kinetics-400, Kinetics-600, SS-v2, Diving-48, and ActivityNet-1.3) at a lower computational cost. Our code/models are released at https://github.com/TalalWasim/Video-FocalNets.

For agents

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

get_harvested_code_for_paper("2307.06947")
get_code_for_paper("2307.06947")
have("2307.06947")

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

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

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

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

Connect an agent — have() is free.