SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1804.08864 · 2018

Learning to See the Invisible: End-to-End Trainable Amodal Instance Segmentation

arXiv · PDF · Open in the Atlas

Code that ran

12 of 17 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; 8 failures of our instrument; 5 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/1804.08864.json · badge: /api/ran/1804.08864.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
waiyulam/ORCNN community (classifier label)
classifier basis not recorded on the link
8 ran · 2 no recorded run
apchenstu/SLN-Amodal community (classifier label)
classifier basis not recorded on the link
4 ran · 3 no recorded run
FunctionStatusWhere it lives
batched_nms Ran
ran; our contract draft was wrong, not the code
waiyulam/ORCNN/detectron2/layers/nms.py
pointer only (licence: Apache-2.0) · get_code("0df9d3b583fbc6cb")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, waiyulam/ORCNN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

cat Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
waiyulam/ORCNN/detectron2/layers/wrappers.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from xinyulyu/fgpl, is pointer only (licence: NONE) · get_code("6cbf46794989b731")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, waiyulam/ORCNN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

compute_rpn_class_loss Ran
ran on a synthesized input
apchenstu/SLN-Amodal/modal/loss.py
code served (permissive licence) · get_code("144f1447dfc317b2")
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 Tensor, 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.functional as F

torch.manual_seed(0)

# Create small tensors matching the function's expected shapes
batch_size = 2
num_anchors = 4

# rpn_match: [batch, anchors, 1] with values in {-1, 0, 1}
# Mix of positive (1), negative (-1), and neutral (0) anchors
rpn_match = torch.tensor([
    [[1], [-1], [0], [1]],
    [[-1], [0], [1], [-1]]
], dtype=torch.long)

# rpn_class_logits: [batch, anchors, 2] - logits for foreground/background
rpn_class_logits = torch.randn(batch_size, num_anchors, 2)

ARGS = {
    "rpn_match": rpn_match,
    "rpn_class_logits": rpn_class_logits
}
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 Tensor, 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
apchenstu/SLN-Amodal/modal/models_BCE.py
code served (permissive licence) · get_code("dbcb53696bc43ef9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Conv2d. 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)

# The function conv3x3 creates a Conv2d layer
# Parameters:
# - in_planes: number of input channels (int)
# - out_planes: number of output channels (int)
# - stride: stride for convolution (int, default=1)
# - has_bias: whether to use bias (bool, default=False)

ARGS = {
    'in_planes': 3,
    'out_planes': 8,
    'stride': 2,
    'has_bias': True
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
convert_basic_c2_names Ran
ran; our contract draft was wrong, not the code
waiyulam/ORCNN/detectron2/checkpoint/c2_model_loading.py
pointer only (licence: Apache-2.0) · get_code("e8526a516b4f9206")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, waiyulam/ORCNN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

convert_c2_detectron_names Ran
ran; our contract draft was wrong, not the code
waiyulam/ORCNN/detectron2/checkpoint/c2_model_loading.py
pointer only (licence: Apache-2.0) · get_code("52810b504f0d1066")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, waiyulam/ORCNN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

define_D Ran
ran on a synthesized input
apchenstu/SLN-Amodal/modal/networks.py
code served (permissive licence) · get_code("250745e5289f8fe5")
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 NLayerDiscriminator. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import functools
import numpy as np

torch.manual_seed(0)

ARGS = {
    'input_nc': 3,
    'ndf': 64,
    'which_model_netD': 'n_layers',
    'n_layers_D': 3,
    'norm': 'batch',
    'use_sigmoid': False,
    'gpu_ids': []
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NLayerDiscriminator — a NLayerDiscriminator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NLayerDiscriminator 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
get_norm_layer Ran
ran on a synthesized input
apchenstu/SLN-Amodal/modal/networks.py
code served (permissive licence) · get_code("72b63cad31d0fa82")
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 partial. 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
import functools

torch.manual_seed(0)

ARGS = {
    'norm_type': 'instance'
}
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 partial — a partial output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a partial 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
interpolate Ran
ran on a synthesized input
waiyulam/ORCNN/detectron2/layers/wrappers.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from airsplay/py-bottom-up-attention, is pointer only (licence: Apache-2.0) · get_code("e3055ddd5ac36b0b")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, waiyulam/ORCNN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

pad_masks Ran
ran; our contract draft was wrong, not the code
waiyulam/ORCNN/detectron2/layers/mask_ops.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from thinklab-sjtu/bench2drivezoo, is pointer only (licence: NOASSERTION) · get_code("406f84cf799ed34d")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, waiyulam/ORCNN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

paste_mask_in_image_old Ran
ran; our contract draft was wrong, not the code
waiyulam/ORCNN/detectron2/layers/mask_ops.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from thinklab-sjtu/bench2drivezoo, is pointer only (licence: NOASSERTION) · get_code("d03592674030077f")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, waiyulam/ORCNN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

paste_masks_in_image Ran
ran; our contract draft was wrong, not the code
waiyulam/ORCNN/detectron2/layers/mask_ops.py
pointer only (licence: Apache-2.0) · get_code("fc1b0400223ff90e")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, waiyulam/ORCNN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

batched_nms_rotated Not yet run
unverified (harvested, no recorded run)
waiyulam/ORCNN/detectron2/layers/nms.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from nvakhoa/superclass-fsis, is pointer only (licence: Apache-2.0) · get_code("4845964b76bba6c5")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, waiyulam/ORCNN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

compute_mrcnn_class_loss Not yet run
unverified (harvested, no recorded run)
apchenstu/SLN-Amodal/modal/loss.py
code served (permissive licence) · get_code("0c56beff75328dd2")
How it ran

no invocation recorded.

compute_rpn_bbox_loss Not yet run
unverified (harvested, no recorded run)
apchenstu/SLN-Amodal/modal/loss.py
code served (permissive licence) · get_code("b8655ec23ec3f5c3")
How it ran

no invocation recorded.

define_G Not yet run
unverified (harvested, no recorded run)
apchenstu/SLN-Amodal/modal/networks.py
code served (permissive licence) · get_code("94563bcd3d0f155c")
How it ran

no invocation recorded.

nms_rotated Not yet run
unverified (harvested, no recorded run)
waiyulam/ORCNN/detectron2/layers/nms.py
pointer only (licence: Apache-2.0) · get_code("d3fa37a000ad294d")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, waiyulam/ORCNN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 11 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 11 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
convert_basic_c2_names 45 other papers
1 dated earlier, 44 later
1703.06870 (2017-03)
Mask R-CNN
1901.08164 (2019-01)
Decoupled Greedy Learning of CNNs
1904.07850 (2019-04)
Objects as Points
and 42 more not named here
convert_c2_detectron_names 29 other papers
1 dated earlier, 28 later
1703.06870 (2017-03)
Mask R-CNN
1901.08164 (2019-01)
Decoupled Greedy Learning of CNNs
1904.07850 (2019-04)
Objects as Points
and 26 more not named here
pad_masks 22 other papers
1 dated earlier, 21 later
1703.06870 (2017-03)
Mask R-CNN
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
2003.05176 (2020-03)
Equalization Loss for Long-Tailed Object Recognition
and 19 more not named here
paste_mask_in_image_old 22 other papers
1 dated earlier, 21 later
1703.06870 (2017-03)
Mask R-CNN
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
2003.05176 (2020-03)
Equalization Loss for Long-Tailed Object Recognition
and 19 more not named here
cat 18 other papers
18 later · 3 only as an assembly brick
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
2002.10111 (2020-02)
SMOKE: Single-Stage Monocular 3D Object Detection via Keypoint Estimation
2003.05176 (2020-03)
Equalization Loss for Long-Tailed Object Recognition
and 15 more not named here
nms_rotated 14 other papers
1 dated earlier, 13 later
1703.06870 (2017-03)
Mask R-CNN
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
2003.05176 (2020-03)
Equalization Loss for Long-Tailed Object Recognition
and 11 more not named here
batched_nms 12 other papers
1 dated earlier, 11 later
1703.06870 (2017-03)
Mask R-CNN
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
2003.05176 (2020-03)
Equalization Loss for Long-Tailed Object Recognition
and 9 more not named here
batched_nms_rotated 12 other papers
1 dated earlier, 11 later
1703.06870 (2017-03)
Mask R-CNN
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
2003.05176 (2020-03)
Equalization Loss for Long-Tailed Object Recognition
and 9 more not named here
conv3x3 7 other papers
7 later
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
1807.11590 (2018-07)
Acquisition of Localization Confidence for Accurate Object Detection
1810.04650 (2018-10)
Multi-Task Learning as Multi-Objective Optimization
and 4 more not named here
paste_masks_in_image 5 other papers
5 later
2003.05176 (2020-03)
Equalization Loss for Long-Tailed Object Recognition
2004.08955 (2020-04)
ResNeSt: Split-Attention Networks
2104.02904 (2021-04)
Multimodal Object Detection via Probabilistic Ensembling
and 2 more not named here
interpolate 4 other papers
4 later
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
2003.05176 (2020-03)
Equalization Loss for Long-Tailed Object Recognition
2004.08955 (2020-04)
ResNeSt: Split-Attention Networks
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

Semantic amodal segmentation is a recently proposed extension to instance-aware segmentation that includes the prediction of the invisible region of each object instance. We present the first all-in-one end-to-end trainable model for semantic amodal segmentation that predicts the amodal instance masks as well as their visible and invisible part in a single forward pass. In a detailed analysis, we provide experiments to show which architecture choices are beneficial for an all-in-one amodal segmentation model. On the COCO amodal dataset, our model outperforms the current baseline for amodal segmentation by a large margin. To further evaluate our model, we provide two new datasets with ground truth for semantic amodal segmentation, D2S amodal and COCOA cls. For both datasets, our model provides a strong baseline performance. Using special data augmentation techniques, we show that amodal segmentation on D2S amodal is possible with reasonable performance, even without providing amodal training data.

For agents

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

get_harvested_code_for_paper("1804.08864")
get_code_for_paper("1804.08864")
have("1804.08864")

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

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

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

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

Connect an agent — have() is free.