SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2207.10314 · ECCV · 2022

Semi-Supervised Learning of Optical Flow by Flow Supervisor

Sung-Eui Yoon, Sebin Lee, Woobin Im

arXiv · PDF · Open in the Atlas

Code that ran

5 of 8 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 3 have no contract verdict; 2 failures of our instrument; 3 no recorded run), measured 2026-11-23; 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/2207.10314.json · badge: /api/ran/2207.10314.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
iwbn/flow-supervisor canonical (classifier label)
classifier basis not recorded on the link
5 ran · 3 no recorded run
FunctionStatusWhere it lives
compute_ae Ran
ran on a synthesized input
iwbn/flow-supervisor/util/flow.py
code served (permissive licence) · get_code("50b94580069c099b")
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 3, 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 tensorflow as tf
import numpy as np

# Create sample tensors for y_true and y_pred
# Both should have shape (batch_size, feature_dim)
# Using distinct sizes: batch=2, feature_dim=4

batch_size = 2
feature_dim = 4

# Create y_true with some non-zero values and one zero vector
y_true = tf.constant([
    [1.0, 2.0, 3.0, 4.0],
    [0.0, 0.0, 0.0, 0.0]
], dtype=tf.float32)

# Create y_pred with some non-zero values and one zero vector
y_pred = tf.constant([
    [1.0, 1.0, 1.0, 1.0],
    [0.0, 0.0, 0.0, 0.0]
], dtype=tf.float32)

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred
}
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 tuple, ndim 3, 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
flow_to_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
iwbn/flow-supervisor/pytorch/core/utils/flow_viz.py
pointer only (licence: MIT); the stored copy get_code serves, from VQE-CPGA/CPGA, is pointer only (licence: NONE) · get_code("0560994daa568124")
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 VQE-CPGA/CPGA, 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.

flow_uv_to_colors Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
iwbn/flow-supervisor/pytorch/core/utils/flow_viz.py
code served (permissive licence) · get_code("ae9446901af6b9a8")
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 ndarray, ndim 3, dtype family int, shape (4, 3, 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 numpy as np

# Create small flow field arrays with distinct dimensions (4x3)
# u and v represent horizontal and vertical optical flow components
u = np.random.randn(4, 3).astype(np.float32) * 10
v = np.random.randn(4, 3).astype(np.float32) * 10

ARGS = {
    "u": u,
    "v": v,
    "convert_to_bgr": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (4, 3, 3) — shape (4, 3, 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
get_clean_ckpt_path Ran
ran on a synthesized input
iwbn/flow-supervisor/ckpt_cleaner.py
code served (permissive licence) · get_code("fa10e87df500eda1")
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 str. 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 tempfile
import os

# Create a temporary directory for checkpoint files
temp_dir = tempfile.mkdtemp()

# Create a mock checkpoint path that will trigger the NotFoundError
# since we won't actually create valid TensorFlow checkpoint files
pretrained_ckpt_path = os.path.join(temp_dir, "mock_ckpt")

# The function will try to load from pretrained_ckpt + '-weights'
# and when that fails (NotFoundError), it will call clean_ckpt()
# We need to mock clean_ckpt to avoid actually running subprocess

ARGS = {
    'pretrained_ckpt': pretrained_ckpt_path
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
make_semi_dataset Ran
ran on a synthesized input
iwbn/flow-supervisor/pytorch/wb_data/flow_dataset.py
code served (permissive licence) · get_code("b7755e0c8c362ab2")
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 _ParallelMapDataset. 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

# Create small stand-in datasets
def create_sample_dataset(num_samples=2, batch_size=2):
    """Create a simple tf.data.Dataset with dict inputs and dict outputs"""
    def generator():
        for i in range(num_samples):
            # Input is a dict with one key
            x = {'feature': np.random.randn(4).astype(np.float32)}
            # Output is a dict with one key
            y = {'label': np.array([i % 2], dtype=np.int32)}
            yield (x, y)
    
    dataset = tf.data.Dataset.from_generator(
        generator,
        output_signature=(
            {'feature': tf.TensorSpec(shape=(4,), dtype=tf.float32)},
            {'label': tf.TensorSpec(shape=(1,), dtype=tf.int32)}
        )
    )
    return dataset.batch(batch_size)

# Create unsupervised dataset
unsup_dataset = create_sample_dataset(num_samples=4, batch_size=2)

# Create supervised dataset
sup_dataset = create_sample_dataset(num_samples=2, batch_size=2)

ARGS = {
    'unsup_dataset': unsup_dataset,
    'sup_dataset': sup_dataset,
}
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 _ParallelMapDataset — a _ParallelMapDataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _ParallelMapDataset 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
clean_ckpt Not yet run
unverified (harvested, no recorded run)
iwbn/flow-supervisor/ckpt_cleaner.py
code served (permissive licence) · get_code("19ad6a331a20efe0")
How it ran

no invocation recorded.

fetch_dataloader Not yet run
unverified (harvested, no recorded run)
iwbn/flow-supervisor/pytorch/wb_data/flow_datasets.py
code served (permissive licence) · get_code("6149362334d31ff2")
How it ran

no invocation recorded.

readFlo Not yet run
unverified (harvested, no recorded run)
iwbn/flow-supervisor/pytorch/wb_data/flow_dataset.py
code served (permissive licence) · get_code("a98fb6f3c1a86a80")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 6 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
flow_uv_to_colors 7 other papers
2 dated earlier, 5 later
2008.01484 (2020-08)
Learning Stereo from Single Images
2203.00137 (2022-03)
Learning Cross-Video Neural Representations for High-Quality Frame Interpolation
2403.10362 (2024-03)
CPGA: Coding Priors-Guided Aggregation Network for Compressed Video Quality Enhancement
and 4 more not named here
flow_to_image 4 other papers
1 dated earlier, 3 later
2203.00137 (2022-03)
Learning Cross-Video Neural Representations for High-Quality Frame Interpolation
2403.10362 (2024-03)
CPGA: Coding Priors-Guided Aggregation Network for Compressed Video Quality Enhancement
Jin_PixelStitch_Structure-Preserving_Pixel-Wise_Bidirectional_Warps_for_Unsupervised_Image_Stitching_ICCV_2025_paper (2025 (year only))
PixelStitch: Structure-Preserving Pixel-Wise Bidirectional Warps for Unsupervised Image Stitching
and 1 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

A training pipeline for optical flow CNNs consists of a pretraining stage on a synthetic dataset followed by a fine tuning stage on a target dataset. However, obtaining ground truth flows from a target video requires a tremendous effort. This paper proposes a practical fine tuning method to adapt a pretrained model to a target dataset without ground truth flows, which has not been explored extensively. Specifically, we propose a flow supervisor for self-supervision, which consists of parameter separation and a student output connection. This design is aimed at stable convergence and better accuracy over conventional self-supervision methods which are unstable on the fine tuning task. Experimental results show the effectiveness of our method compared to different self-supervision methods for semi-supervised learning. In addition, we achieve meaningful improvements over state-of-the-art optical flow models on Sintel and KITTI benchmarks by exploiting additional unlabeled datasets. Code is available at https://github.com/iwbn/flow-supervisor.

For agents

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

get_harvested_code_for_paper("2207.10314")
get_code_for_paper("2207.10314")
have("2207.10314")

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

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

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

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

Connect an agent — have() is free.