SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2107.04941 · ICCV · 2021

Partial Video Domain Adaptation with Partial Adversarial Temporal Attentive Network

Qi Li, Zhenghua Chen, Jianfei Yang, Yuecong Xu, Kezhi Mao

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 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; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 1 failure of our instrument; 2 no recorded run), measured 2026-11-22; 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/2107.04941.json · badge: /api/ran/2107.04941.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
xuyu0010/PATAN canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
autofill Ran
ran on a synthesized input
xuyu0010/PATAN/train_da.py
code served (permissive licence) · get_code("b352238f535c2545")
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 Namespace. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import socket
from datetime import date
from argparse import Namespace

# Create a simple args object with all required attributes
args = Namespace(
    task_name='',
    log_file='',
    model_dir='./models'
)

ARGS = {
    'args': args
}
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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
xuyu0010/PATAN/network/util.py
pointer only (licence: MIT); the stored copy get_code serves, from whai362/PytorchInsight, is pointer only (licence: NONE) · get_code("77f89e05c55c985d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from whai362/PytorchInsight, 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_config Ran
ran on a synthesized input
xuyu0010/PATAN/network/config.py
code served (permissive licence) · get_code("17e56ae071fc11eb")
How it ran

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

import logging

# Set up logging to see the debug/info messages
logging.basicConfig(level=logging.DEBUG)

# The function only takes 'name' as a positional argument and **kwargs
# Looking at the function body:
# - 'name' is used in logging.debug() with .upper() and .format()
# - **kwargs is not used in the function body
# So we need a string for 'name' and can pass any additional kwargs

ARGS = {
    'name': 'video_network',
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_state Ran
ran on a synthesized input
xuyu0010/PATAN/network/util.py
code served (permissive licence) · get_code("5b1ff5687e0b6042")
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 torch.nn as nn
import logging

torch.manual_seed(0)

# Create a simple network with backbone and classifier layers
class SimpleNetwork(nn.Module):
    def __init__(self):
        super().__init__()
        self.backbone_layer1 = nn.Linear(4, 8)
        self.backbone_layer2 = nn.Linear(8, 6)
        self.classifier = nn.Linear(6, 2)
        self.fc = nn.Linear(6, 3)
    
    def forward(self, x):
        x = self.backbone_layer1(x)
        x = self.backbone_layer2(x)
        x = self.classifier(x)
        return x

# Create network instance
network = SimpleNetwork()

# Create a state_dict with 'backbone.' prefix that matches some of the network layers
state_dict = {
    'backbone.backbone_layer1.weight': torch.randn(8, 4),
    'backbone.backbone_layer1.bias': torch.randn(8),
    'backbone.backbone_layer2.weight': torch.randn(6, 8),
    'backbone.backbone_layer2.bias': torch.randn(6),
}

ARGS = {
    'network': network,
    'state_dict': state_dict,
}
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
make_res_layer Ran
ran on a synthesized input
xuyu0010/PATAN/network/util.py
code served (permissive licence) · get_code("d0257b12c85879e1")
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 Sequential. 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 torch.nn as nn

torch.manual_seed(0)

class BasicBlock(nn.Module):
    expansion = 1
    
    def __init__(self, inplanes, planes, stride=1, dilation=1, downsample=None, style='pytorch', with_cp=False):
        super(BasicBlock, self).__init__()
        self.conv1 = nn.Conv2d(inplanes, planes, kernel_size=3, stride=stride, padding=1, bias=False)
        self.bn1 = nn.BatchNorm2d(planes)
        self.relu = nn.ReLU(inplace=True)
        self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=1, padding=1, bias=False)
        self.bn2 = nn.BatchNorm2d(planes)
        self.downsample = downsample
        self.stride = stride

    def forward(self, x):
        identity = x
        out = self.conv1(x)
        out = self.bn1(out)
        out = self.relu(out)
        out = self.conv2(out)
        out = self.bn2(out)
        if self.downsample is not None:
            identity = self.downsample(x)
        out += identity
        out = self.relu(out)
        return out

ARGS = {
    'block': BasicBlock,
    'inplanes': 64,
    'planes': 64,
    'blocks': 3,
    'stride': 1,
    'dilation': 1,
    'style': 'pytorch',
    'with_cp': False
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_symbol Not yet run
unverified (harvested, no recorded run)
xuyu0010/PATAN/network/symbol_builder.py
code served (permissive licence) · get_code("b698c26db8509688")
How it ran

no invocation recorded.

init_3d_from_2d_dict Not yet run
unverified (harvested, no recorded run)
xuyu0010/PATAN/network/initializer.py
code served (permissive licence) · get_code("90def75b21b5e19b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 2 later) and 3 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
conv3x3 18 other papers
9 dated earlier, 9 later
1612.00593 (2016-12)
PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation
1901.04780 (2019-01)
DenseFusion: 6D Object Pose Estimation by Iterative Dense Fusion
1905.09646 (2019-05)
Spatial Group-wise Enhance: Improving Semantic Feature Learning in Convolutional Networks
and 15 more not named here
get_config 1 other paper
1 later
2203.04559 (2022-03)
Source-free Video Domain Adaptation by Learning Temporal Consistency for Action Recognition ⋆
init_3d_from_2d_dict 1 other paper
1 dated earlier
1908.00347 (2019-08)
Central Similarity Quantization for Efficient Image and Video Retrieval
make_res_layer 1 other paper
1 dated earlier
2105.02467 (2021-05)
Body Meshes as Points

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-22.

Repositories linked to this paper

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

Abstract

Partial Domain Adaptation (PDA) is a practical and general domain adaptation scenario, which relaxes the fully shared label space assumption such that the source label space subsumes the target one. The key challenge of PDA is the issue of negative transfer caused by source-only classes. For videos, such negative transfer could be triggered by both spatial and temporal features, which leads to a more challenging Partial Video Domain Adaptation (PVDA) problem. In this paper, we propose a novel Partial Adversarial Temporal Attentive Network (PATAN) to address the PVDA problem by utilizing both spatial and temporal features for filtering source-only classes. Besides, PATAN constructs effective overall temporal features by attending to local temporal features that contribute more toward the class filtration process. We further introduce new benchmarks to facilitate research on PVDA problems, covering a wide range of PVDA scenarios. Empirical results demonstrate the state-of-the-art performance of our proposed PATAN across the multiple PVDA benchmarks. Code will be provided at: https://github.com/xuyu0010/PATAN.

For agents

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

get_harvested_code_for_paper("2107.04941")
get_code_for_paper("2107.04941")
have("2107.04941")

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

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

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

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

Connect an agent — have() is free.