SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2003.13948 · 2020

Segmenting Transparent Objects in the Wild

arXiv · PDF · Open in the Atlas

Code that ran

6 of 9 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, 1 violated it and 3 have no contract verdict; 2 failures of our instrument; 3 no recorded run), measured 2026-11-21; 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/2003.13948.json · badge: /api/ran/2003.13948.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
xieenze/Segment_Transparent_Objects canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
batch_mae Ran
ran on a synthesized input
xieenze/Segment_Transparent_Objects/segmentron/utils/score.py
code served (permissive licence) · get_code("8eae673295914188")
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

torch.manual_seed(0)

# batch_mae expects:
# - output: a tensor that can be passed to torch.argmax (logits/scores)
# - target: a tensor of target values

# output should have shape (batch_size, num_classes) so argmax can be applied on dim 1
# target should have shape (batch_size,) for scalar targets
batch_size = 2
num_classes = 4

output = torch.randn(batch_size, num_classes)
target = torch.tensor([1.0, 3.0])

ARGS = {
    "output": output,
    "target": target,
}
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
batch_pix_accuracy Ran
ran on a synthesized input
xieenze/Segment_Transparent_Objects/segmentron/utils/score.py
code served (permissive licence) · get_code("a08d84c1264ca07e")
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 torch

torch.manual_seed(0)

# The function takes output and target tensors
# output: needs to support torch.argmax(output.long(), 1) - so a 2D tensor (batch, classes)
# target: needs to support target.long() and comparison operations - so a 1D tensor (batch,)

# Create a batch of 2 samples with 4 classes
batch_size = 2
num_classes = 4

# output: logits/predictions with shape (batch_size, num_classes)
output = torch.randn(batch_size, num_classes)

# target: class indices with shape (batch_size,) - values should be in range [0, num_classes)
# Using values 0, 1, 2 to test the "do not care background" logic (target > 1 means classes 2+)
target = torch.tensor([0, 2], dtype=torch.float32)

ARGS = {
    "output": output,
    "target": target,
}
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 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
groupNorm Ran
ran on a synthesized input
xieenze/Segment_Transparent_Objects/segmentron/modules/batch_norm.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from TencentARC/SGAT4PASS, is pointer only (licence: Apache-2.0) · get_code("644effb1fd52ef7d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from TencentARC/SGAT4PASS, and Apache-2.0, as GitHub detects it on that repository, is in the permissive set, but a licence decision keeps the body a pointer: its licence file names an outside party, so it may cover vendored code rather than the repository owner's files (recorded as pointer:licence_names_third_party_corporation). 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.

iou Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xieenze/Segment_Transparent_Objects/segmentron/solver/lovasz_losses.py
code served (permissive licence) · get_code("d94639b28b2134ff")
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 1, dtype family float, shape (4,) 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
import torch

torch.manual_seed(0)

# Construct valid arguments for the iou function
# preds: prediction array/tensor with class indices
# labels: ground truth array/tensor with class indices
# C: number of classes
# EMPTY: value to return for empty unions (default 1.0)
# ignore: class index to ignore (default None)
# per_image: whether to compute per-image IoU (default False)

# Create small prediction and label arrays
# Using shape (2, 4) - batch of 2, spatial dimension of 4
preds = np.array([[0, 1, 2, 3],
                   [1, 2, 0, 1]], dtype=np.int64)

labels = np.array([[0, 1, 1, 3],
                    [1, 2, 2, 1]], dtype=np.int64)

# Number of classes
C = 4

# EMPTY value for classes with no union
EMPTY = 1.0

# Class to ignore during computation
ignore = None

# Whether to compute per-image IoU
per_image = False

ARGS = {
    "preds": preds,
    "labels": labels,
    "C": C,
    "EMPTY": EMPTY,
    "ignore": ignore,
    "per_image": per_image
}
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 ndarray, ndim 1, dtype family float, shape (4,) — shape (4,) 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
iou_binary Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xieenze/Segment_Transparent_Objects/segmentron/solver/lovasz_losses.py
code served (permissive licence) · get_code("1211530cd527bd0b")
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 float, 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 numpy as np

def isnan(x):
    return x != x

def mean(l, ignore_nan=False, empty=0):
    """
    nanmean compatible with generators.
    """
    l = iter(l)
    if ignore_nan:
        from itertools import filterfalse
        l = filterfalse(isnan, l)
    try:
        n = 1
        acc = next(l)
    except StopIteration:
        if empty == 'raise':
            raise ValueError('Empty mean')
        return empty
    for n, v in enumerate(l, 2):
        acc += v
    if n == 1:
        return acc
    return acc / n

def iou_binary(preds, labels, EMPTY=1.0, ignore=None, per_image=True):
    """
    IoU for foreground class
    binary: 1 foreground, 0 background
    """
    if not per_image:
        preds, labels = ((preds,), (labels,))
    ious = []
    for pred, label in zip(preds, labels):
        intersection = ((label == 1) & (pred == 1)).sum()
        union = ((label == 1) | (pred == 1) & (label != ignore)).sum()
        if not union:
            iou = EMPTY
        else:
            iou = float(intersection) / float(union)
        ious.append(iou)
    iou = mean(ious)
    return 100 * iou

# Setup code
np.random.seed(0)

# Create small prediction and label arrays for binary segmentation
# Shape: (height=4, width=3) for two images
preds_img1 = np.array([[0, 1, 1],
                       [1, 1, 0],
                       [0, 1, 1],
                       [1, 0, 0]], dtype=np.int32)

labels_img1 = np.array([[0, 1, 0],
                        [1, 1, 1],
                        [0, 1, 0],
                        [1, 0, 1]], dtype=np.int32)

preds_img2 = np.array([[1, 1, 0],
                       [0, 1, 1],
                       [1, 1, 0],
                       [0, 0, 1]], dtype=np.int32)

labels_img2 = np.array([[1, 0, 0],
                        [0, 1, 1],
                        [1, 0, 0],
                        [0, 1, 1]], dtype=np.int32)

# Arguments for iou_binary function
ARGS = {
    'preds': np.array([preds_img1, preds_img2]),
    'labels': np.array([labels_img1, labels_img2]),
    'EMPTY': 1.0,
    'ignore': 0,
    'per_image': True,
}
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 float, 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
lovasz_grad Ran
ran, violated the contract we drafted
xieenze/Segment_Transparent_Objects/segmentron/solver/lovasz_losses.py
code served (permissive licence) · get_code("e85b5d21dc5b8382")
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 1, dtype family float, shape (4,) 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

torch.manual_seed(0)

# gt_sorted should be a 1D tensor of binary/boolean values
# representing ground truth sorted by some error metric
# The function expects a tensor with sum(), float(), cumsum() methods
gt_sorted = torch.tensor([0, 0, 1, 1], dtype=torch.long)

ARGS = {
    "gt_sorted": gt_sorted
}
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 1, dtype family float, shape (4,) — shape (4,) 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
batch_ber Not yet run
unverified (harvested, no recorded run)
xieenze/Segment_Transparent_Objects/segmentron/utils/score.py
code served (permissive licence) · get_code("33276fb60e28dceb")
How it ran

no invocation recorded.

get_norm Not yet run
unverified (harvested, no recorded run)
xieenze/Segment_Transparent_Objects/segmentron/modules/batch_norm.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from TencentARC/SGAT4PASS, is pointer only (licence: Apache-2.0) · get_code("7d6250302cdb769d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from TencentARC/SGAT4PASS, and Apache-2.0, as GitHub detects it on that repository, is in the permissive set, but a licence decision keeps the body a pointer: its licence file names an outside party, so it may cover vendored code rather than the repository owner's files (recorded as pointer:licence_names_third_party_corporation). 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.

get_segmentation_loss Not yet run
unverified (harvested, no recorded run)
xieenze/Segment_Transparent_Objects/segmentron/solver/loss.py
code served (permissive licence) · get_code("267edfcf2795234f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 5 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 3 the same month, 5 later) and 4 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
lovasz_grad 40 other papers
4 dated earlier, 2 the same month, 34 later · 1 only as an assembly brick
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation
1807.10165 (2018-07)
UNet++: A Nested U-Net Architecture for Medical Image Segmentation
1811.11721 (2018-11)
CCNet: Criss-Cross Attention for Semantic Segmentation
and 37 more not named here
iou 24 other papers
2 dated earlier, 2 the same month, 20 later
1807.10165 (2018-07)
UNet++: A Nested U-Net Architecture for Medical Image Segmentation
1811.11721 (2018-11)
CCNet: Criss-Cross Attention for Semantic Segmentation
2003.10778 (2020-03)
PanNuke Dataset Extension, Insights and Baselines
and 21 more not named here
iou_binary 24 other papers
2 dated earlier, 2 the same month, 20 later
1807.10165 (2018-07)
UNet++: A Nested U-Net Architecture for Medical Image Segmentation
1811.11721 (2018-11)
CCNet: Criss-Cross Attention for Semantic Segmentation
2003.10778 (2020-03)
PanNuke Dataset Extension, Insights and Baselines
and 21 more not named here
get_norm 1 other paper
1 later
2306.03403 (2023-06)
SGAT4PASS: Spherical Geometry-Aware Transformer for PAnoramic Semantic Segmentation
groupNorm 1 other paper
1 later
2306.03403 (2023-06)
SGAT4PASS: Spherical Geometry-Aware Transformer for PAnoramic Semantic Segmentation

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

Repositories linked to this paper

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

Abstract

Transparent objects such as windows and bottles made by glass widely exist in the real world. Segmenting transparent objects is challenging because these objects have diverse appearance inherited from the image background, making them had similar appearance with their surroundings. Besides the technical difficulty of this task, only a few previous datasets were specially designed and collected to explore this task and most of the existing datasets have major drawbacks. They either possess limited sample size such as merely a thousand of images without manual annotations, or they generate all images by using computer graphics method (i.e. not real image). To address this important problem, this work proposes a large-scale dataset for transparent object segmentation, named Trans10K, consisting of 10,428 images of real scenarios with carefully manual annotations, which are 10 times larger than the existing datasets. The transparent objects in Trans10K are extremely challenging due to high diversity in scale, viewpoint and occlusion as shown in Fig. 1. To evaluate the effectiveness of Trans10K, we propose a novel boundary-aware segmentation method, termed TransLab, which exploits boundary as the clue to improve segmentation of transparent objects. Extensive experiments and ablation studies demonstrate the effectiveness of Trans10K and validate the practicality of learning object boundary in TransLab. For example, TransLab significantly outperforms 20 recent object segmentation methods based on deep learning, showing that this task is largely unsolved. We believe that both Trans10K and TransLab have important contributions to both the academia and industry, facilitating future researches and applications.

For agents

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

get_harvested_code_for_paper("2003.13948")
get_code_for_paper("2003.13948")
have("2003.13948")

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

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

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

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

Connect an agent — have() is free.