SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1902.06634 · 2019

Contextual Encoder-Decoder Network for Visual Saliency Prediction

arXiv · PDF · Open in the Atlas

Code that ran

4 of 6 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; 0 failures of our instrument; 2 no recorded run), 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/1902.06634.json · badge: /api/ran/1902.06634.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
alexanderkroner/saliency canonical (classifier label)
classifier basis: census
0 ran · 2 no recorded run
gradio-app/saliency community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
yahsieh37/Visual-Saliency-Prediction community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
FunctionStatusWhere it lives
best_window Ran
ran on a synthesized input
gradio-app/saliency/run-gradio.py
code served (permissive licence) · get_code("9c443f7129e629ea")
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 numpy as np

# Create a small saliency map (height=10, width=15)
saliency = np.random.rand(10, 15)

# Create aspect ratio tuple (width, height)
aspect_ratio = (16, 9)

ARGS = {
    "saliency": saliency,
    "aspect_ratio": aspect_ratio,
}
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 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
define_paths Ran
ran on a synthesized input
yahsieh37/Visual-Saliency-Prediction/main_bn.py
code served (permissive licence) · get_code("691d327878968b6f")
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 os
from argparse import Namespace

# Create a temporary directory structure for testing
current_path = '/tmp/test_model'
os.makedirs(current_path, exist_ok=True)

# Create a test data directory
test_data_dir = '/tmp/test_data'
os.makedirs(test_data_dir, exist_ok=True)

# Create necessary subdirectories that the function will create paths for
os.makedirs(current_path + '/results_BNv1/history/', exist_ok=True)
os.makedirs(current_path + '/results_BNv1/images/', exist_ok=True)
os.makedirs(current_path + '/results_BNv1/ckpts/best/', exist_ok=True)
os.makedirs(current_path + '/results_BNv1/ckpts/latest/', exist_ok=True)
os.makedirs(current_path + '/weights/', exist_ok=True)

# Create a test file at the data path
test_file = os.path.join(test_data_dir, 'data.txt')
with open(test_file, 'w') as f:
    f.write('test')

# Construct the args namespace
args = Namespace(
    path=test_data_dir,
    data='dataset',
    phase='train'
)

ARGS = {
    'current_path': current_path,
    '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 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
define_paths Ran
ran on a synthesized input
yahsieh37/Visual-Saliency-Prediction/main_sc.py
code served (permissive licence) · get_code("322172a6d004fad1")
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 os
import tempfile
from argparse import Namespace

# Create a temporary directory to use as current_path
temp_dir = tempfile.mkdtemp()

# Create a temporary directory for data
temp_data_dir = tempfile.mkdtemp()

# Create the args namespace with required attributes
args = Namespace(
    path=temp_data_dir,
    phase='train',
    data='dataset'
)

ARGS = {
    'current_path': temp_dir,
    '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 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
overlay_saliency Ran
ran on a synthesized input
gradio-app/saliency/run-gradio.py
code served (permissive licence) · get_code("5fe9cf5eb2f32b05")
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 Image. 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.

from PIL import Image
import numpy as np

# Create a small RGB image (100x100)
img = Image.new('RGB', (100, 100), color='red')

# Create a small saliency map (100x100) 
map_img = Image.new('RGB', (100, 100), color='blue')

# Define bounding box coordinates
left = 10
right = 90
bottom = 10
top = 90

ARGS = {
    'img': img,
    'map': map_img,
    'left': left,
    'right': right,
    'bottom': bottom,
    'top': top
}
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 Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
kld Not yet run
unverified (harvested, no recorded run)
alexanderkroner/saliency/loss.py
code served (permissive licence) · get_code("9dab209344bbb498")
How it ran

no invocation recorded.

postprocess_saliency_map Not yet run
unverified (harvested, no recorded run)
alexanderkroner/saliency/data.py
code served (permissive licence) · get_code("d3834cb8ddc46b5d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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.

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

Predicting salient regions in natural images requires the detection of objects that are present in a scene. To develop robust representations for this challenging task, high-level visual features at multiple spatial scales must be extracted and augmented with contextual information. However, existing models aimed at explaining human fixation maps do not incorporate such a mechanism explicitly. Here we propose an approach based on a convolutional neural network pre-trained on a large-scale image classification task. The architecture forms an encoder-decoder structure and includes a module with multiple convolutional layers at different dilation rates to capture multi-scale features in parallel. Moreover, we combine the resulting representations with global scene information for accurately predicting visual saliency. Our model achieves competitive and consistent results across multiple evaluation metrics on two public saliency benchmarks and we demonstrate the effectiveness of the suggested approach on five datasets and selected examples. Compared to state of the art approaches, the network is based on a lightweight image classification backbone and hence presents a suitable choice for applications with limited computational resources, such as (virtual) robotic systems, to estimate human fixations across complex natural scenes.

For agents

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

get_harvested_code_for_paper("1902.06634")
get_code_for_paper("1902.06634")
have("1902.06634")

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

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

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

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

Connect an agent — have() is free.