SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2101.10241 · AAAI · 2021

RGB-D Salient Object Detection via 3D Convolutional Neural Networks

Yi Zhang, Qian Chen, Ze Liu, Keren Fu, Qijun Zhao, Hongwei Du

arXiv · PDF · Open in the Atlas

Code that ran

9 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 4 failures of our instrument; 4 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/2101.10241.json · badge: /api/ran/2101.10241.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
PPOLYpubki/RD3D community
Papers with Code archive
9 ran · 4 no recorded run
FunctionStatusWhere it lives
BasicConv3d Ran
ran on a synthesized input · constructed an object; no result was computed
PPOLYpubki/RD3D/model/rd3d.py
code served (permissive licence) · get_code("a11ba11d88e6025c")
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, BasicConv3d: 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 torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'in_channels': 3,
    'out_channels': 16,
    'kernel_size': 3,
    'stride': 1,
    'padding': 1,
    'dilation': 1
}
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 BasicConv3d — 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 BasicConv3d 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
Bottleneck3d Ran
ran on a synthesized input · constructed an object; no result was computed
PPOLYpubki/RD3D/model/rd3d.py
code served (permissive licence) · get_code("142151bb8fc9a0dd")
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, Bottleneck3d: 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 torch
import torch.nn as nn
from torch.nn import Parameter

torch.manual_seed(0)

# Create a minimal 2D bottleneck module to inflate
def create_bottleneck_2d():
    """Create a minimal 2D bottleneck that matches ResNet structure"""
    bottleneck = nn.Module()
    
    # Conv1: in_channels=64, out_channels=64, kernel=(1,1)
    bottleneck.conv1 = nn.Conv2d(64, 64, kernel_size=1, stride=1, padding=0)
    bottleneck.bn1 = nn.BatchNorm2d(64)
    
    # Conv2: in_channels=64, out_channels=64, kernel=(3,3)
    bottleneck.conv2 = nn.Conv2d(64, 64, kernel_size=3, stride=1, padding=1)
    bottleneck.bn2 = nn.BatchNorm2d(64)
    
    # Conv3: in_channels=64, out_channels=256, kernel=(1,1)
    bottleneck.conv3 = nn.Conv2d(64, 256, kernel_size=1, stride=1, padding=0)
    bottleneck.bn3 = nn.BatchNorm2d(256)
    
    # Downsample: conv + bn to change channel dimensions
    bottleneck.downsample = nn.Sequential(
        nn.Conv2d(64, 256, kernel_size=1, stride=1, padding=0),
        nn.BatchNorm2d(256)
    )
    bottleneck.stride = 1
    
    return bottleneck

bottleneck_2d = create_bottleneck_2d()

ARGS = {
    'bottleneck2d': bottleneck_2d
}
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 Bottleneck3d — 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 Bottleneck3d 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
CMA Ran
ran on a synthesized input · constructed an object; no result was computed
PPOLYpubki/RD3D/model/rd3d.py
code served (permissive licence) · get_code("12a040f3dfce9876")
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, CMA: 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 torch
import torch.nn as nn

torch.manual_seed(0)

# CMA expects:
# - channel: int (number of channels)
# - reduction: int (optional, default=16)
# - forward expects: x of shape (batch, channel, height, width)

# Create a small input tensor: batch=2, channels=4, height=3, width=3
x = torch.randn(2, 4, 3, 3)

ARGS = {
    'channel': 4,
    'reduction': 2,
}
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 CMA — 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 CMA 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
I3DResNet Ran
ran on a synthesized input
PPOLYpubki/RD3D/model/rd3d.py
code served (permissive licence) · get_code("2da47d0afe813abb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, 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
import torch.nn as nn
from torchvision.models import resnet18

# Create a minimal 2D ResNet bottleneck for testing
class Bottleneck2d(nn.Module):
    def __init__(self, inplanes, planes, stride=1, downsample=None):
        super(Bottleneck2d, self).__init__()
        self.conv1 = nn.Conv2d(inplanes, planes, kernel_size=1, bias=False)
        self.bn1 = nn.BatchNorm2d(planes)
        self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=stride, padding=1, bias=False)
        self.bn2 = nn.BatchNorm2d(planes)
        self.conv3 = nn.Conv2d(planes, planes * 4, kernel_size=1, bias=False)
        self.bn3 = nn.BatchNorm2d(planes * 4)
        self.relu = nn.ReLU(inplace=True)
        self.downsample = downsample
        self.stride = stride

# Create a minimal 2D ResNet
class ResNet2d(nn.Module):
    def __init__(self):
        super(ResNet2d, self).__init__()
        self.conv1 = nn.Conv2d(3, 8, kernel_size=7, stride=2, padding=3, bias=False)
        self.bn1 = nn.BatchNorm2d(8)
        self.relu = nn.ReLU(inplace=True)
        self.maxpool = nn.MaxPool2d(kernel_size=3, stride=2, padding=1)
        
        # Create minimal layers with bottleneck blocks
        downsample1 = nn.Sequential(
            nn.Conv2d(8, 16, kernel_size=1, stride=1, bias=False),
            nn.BatchNorm2d(16)
        )
        self.layer1 = nn.Sequential(Bottleneck2d(8, 4, stride=1, downsample=downsample1))
        
        downsample2 = nn.Sequential(
            nn.Conv2d(16, 32, kernel_size=1, stride=2, bias=False),
            nn.BatchNorm2d(32)
        )
        self.layer2 = nn.Sequential(Bottleneck2d(16, 8, stride=2, downsample=downsample2))
        
        downsample3 = nn.Sequential(
            nn.Conv2d(32, 64, kernel_size=1, stride=2, bias=False),
            nn.BatchNorm2d(64)
        )
        self.layer3 = nn.Sequential(Bottleneck2d(32, 16, stride=2, downsample=downsample3))
        
        downsample4 = nn.Sequential(
            nn.Conv2d(64, 128, kernel_size=1, stride=2, bias=False),
            nn.BatchNorm2d(128)
        )
        self.layer4 = nn.Sequential(Bottleneck2d(64, 32, stride=2, downsample=downsample4))

# Create the 2D ResNet instance
resnet2d = ResNet2d()

INIT_ARGS = {
    'resnet2d': resnet2d
}

# Input tensor: (batch, channels, time, height, width)
ARGS = {
    'x': torch.randn(2, 3, 8, 56, 56)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 5, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Reduction3D Ran
ran on a synthesized input · constructed an object; no result was computed
PPOLYpubki/RD3D/model/rd3d.py
code served (permissive licence) · get_code("58c8a7058368f8fc")
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, Reduction3D: 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 torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'in_channel': 16,
    'out_channel': 32,
}
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 Reduction3D — 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 Reduction3D 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
inflate_batch_norm Ran
ran; our contract draft was wrong, not the code
PPOLYpubki/RD3D/model/rd3d.py
code served (permissive licence) · get_code("457cc8c6dc365fbc")
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 BatchNorm2d. 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)

# Create a BatchNorm2d instance
batch2d = nn.BatchNorm2d(num_features=4)

# The function expects a batch2d parameter (a BatchNorm2d module)
ARGS = {
    'batch2d': batch2d
}
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 BatchNorm2d — a BatchNorm2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a BatchNorm2d 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
inflate_conv Ran
ran; our contract draft was wrong, not the code
PPOLYpubki/RD3D/model/rd3d.py
code served (permissive licence) · get_code("462a009bfe9dee63")
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 Conv3d. 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 torch import nn

torch.manual_seed(0)

# Create a 2D convolution layer to pass to inflate_conv
conv2d = nn.Conv2d(
    in_channels=3,
    out_channels=4,
    kernel_size=(3, 3),
    padding=(1, 1),
    stride=(1, 1),
    dilation=(1, 1)
)

# Initialize the weights and bias with small values
conv2d.weight.data = torch.randn(4, 3, 3, 3) * 0.1
conv2d.bias.data = torch.randn(4) * 0.1

ARGS = {
    'conv2d': conv2d,
    'time_dim': 3,
    'time_padding': 0,
    'time_stride': 1,
    'time_dilation': 1,
    'center': 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 Conv3d — a Conv3d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv3d 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
inflate_downsample Ran
ran; our contract draft was wrong, not the code
PPOLYpubki/RD3D/model/rd3d.py
code served (permissive licence) · get_code("f2685bfb0f379f62")
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
from torch.nn import Parameter

torch.manual_seed(0)

# Create a 2D downsample module (Sequential with Conv2d and BatchNorm2d)
conv2d = nn.Conv2d(in_channels=3, out_channels=4, kernel_size=3, stride=2, padding=1)
batch_norm2d = nn.BatchNorm2d(num_features=4)
downsample2d = nn.Sequential(conv2d, batch_norm2d)

ARGS = {
    "downsample2d": downsample2d,
    "time_stride": 1,
}
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
inflate_pool Ran
ran; our contract draft was wrong, not the code
PPOLYpubki/RD3D/model/rd3d.py
code served (permissive licence) · get_code("5746a7a29dd3f77d")
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 MaxPool3d. 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)

# Test case 1: AdaptiveAvgPool2d
pool2d_adaptive = nn.AdaptiveAvgPool2d((1, 1))

# Test case 2: MaxPool2d
pool2d_max = nn.MaxPool2d(
    kernel_size=3,
    stride=2,
    padding=1,
    dilation=1,
    ceil_mode=False
)

# Test case 3: AvgPool2d
pool2d_avg = nn.AvgPool2d(
    kernel_size=2,
    stride=2,
    padding=0
)

# Use MaxPool2d as the primary test case
ARGS = {
    "pool2d": pool2d_max,
    "time_dim": 3,
    "time_padding": 1,
    "time_stride": 2,
    "time_dilation": 1
}
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 MaxPool3d — a MaxPool3d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MaxPool3d 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
RD3D Not yet run
unverified (harvested, no recorded run)
PPOLYpubki/RD3D/model/rd3d.py
code served (permissive licence) · get_code("604a8608bbcb5fc6")
How it ran

no invocation recorded.

ThreeDDecoder Not yet run
unverified (harvested, no recorded run)
PPOLYpubki/RD3D/model/rd3d.py
code served (permissive licence) · get_code("7b64667c719c3c2e")
How it ran

no invocation recorded.

Unet3D Not yet run
unverified (harvested, no recorded run)
PPOLYpubki/RD3D/model/rd3d.py
code served (permissive licence) · get_code("bca52ce74c61b15f")
How it ran

no invocation recorded.

inflate_reslayer Not yet run
unverified (harvested, no recorded run)
PPOLYpubki/RD3D/model/rd3d.py
code served (permissive licence) · get_code("a45223f97a51625c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 12 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
inflate_batch_norm
brick of this paper's assembly: helper
1 other paper
1 later
2406.06512 (2024-06)
Merlin: A Computed Tomography Vision-Language Foundation Model and Dataset

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

RGB-D salient object detection (SOD) recently has attracted increasing research interest and many deep learning methods based on encoder-decoder architectures have emerged. However, most existing RGB-D SOD models conduct feature fusion either in the single encoder or the decoder stage, which hardly guarantees sufficient cross-modal fusion ability. In this paper, we make the first attempt in addressing RGB-D SOD through 3D convolutional neural networks. The proposed model, named RD3D, aims at pre-fusion in the encoder stage and in-depth fusion in the decoder stage to effectively promote the full integration of RG-B and depth streams. Specifically, RD3D first conducts pre-fusion across RGB and depth modalities through an inflated 3D encoder, and later provides in-depth feature fusion by designing a 3D decoder equipped with rich back-projection paths (RBPP) for leveraging the extensive aggregation ability of 3D convolutions. With such a progressive fusion strategy involving both the encoder and decoder, effective and thorough interaction between the two modalities can be exploited and boost the detection accuracy. Extensive experiments on six widely used benchmark datasets demonstrate that RD3D performs favorably against 14 state-of-the-art RGB-D SOD approaches in terms of four key evaluation metrics. Our code will be made publicly available: https://github.com/PPOLYpubki/RD3D.

For agents

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

get_harvested_code_for_paper("2101.10241")
get_code_for_paper("2101.10241")
have("2101.10241")

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

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

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

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

Connect an agent — have() is free.