SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2108.00384 · AAAI · 2021

Edge-competing Pathological Liver Vessel Segmentation with Limited Labels

Zunlei Feng, Xinchao Wang, Xiuming Zhang, Jie Lei, Mingli Song, Lechao Cheng, Zhonghua Wang, Yuexuan Wang

arXiv · PDF · Open in the Atlas

Code that ran

2 of 4 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 0 have no contract verdict; 2 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2108.00384.json · badge: /api/ran/2108.00384.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
zju-vipa/EVS-Net community
Papers with Code archive
2 ran · 2 no recorded run
FunctionStatusWhere it lives
build_aspp Ran
ran; our contract draft was wrong, not the code
zju-vipa/EVS-Net/models/modeling/deeplab.py
code served (permissive licence) · get_code("ea57468fd987573b")
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) and returned ASPP. 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)

class SynchronizedBatchNorm2d(nn.Module):
    """Stand-in for SynchronizedBatchNorm2d"""
    def __init__(self, num_features):
        super().__init__()
        self.weight = nn.Parameter(torch.ones(num_features))
        self.bias = nn.Parameter(torch.zeros(num_features))
    
    def forward(self, x):
        return x

class _ASPPModule(nn.Module):
    """Stand-in for _ASPPModule"""
    def __init__(self, inplanes, outplanes, kernel_size, padding, dilation, BatchNorm):
        super().__init__()
        self.conv = nn.Conv2d(inplanes, outplanes, kernel_size, padding=padding, dilation=dilation, bias=False)
        self.bn = BatchNorm(outplanes)
        self.relu = nn.ReLU()
    
    def forward(self, x):
        x = self.conv(x)
        x = self.bn(x)
        x = self.relu(x)
        return x

ARGS = {
    'backbone': 'resnet',
    'output_stride': 16,
    'BatchNorm': nn.BatchNorm2d
}
Setup block drafted by
a language model, Claude Haiku 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 ASPP — a ASPP output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ASPP 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
build_decoder Ran
ran; our contract draft was wrong, not the code
zju-vipa/EVS-Net/models/modeling/deeplab.py
code served (permissive licence) · get_code("6d2d9f8f46a73fc3")
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 Decoder. 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 signature shows:
# def __init__(self, num_classes, backbone, BatchNorm):
# 
# From the body:
# - num_classes: int, used in nn.Conv2d(256, num_classes, ...)
# - backbone: str, checked against 'resnet', 'drn', 'xception', 'mobilenet'
# - BatchNorm: a class/callable that creates batch norm layers, used as BatchNorm(48), BatchNorm(256)

ARGS = {
    'num_classes': 21,
    'backbone': 'resnet',
    'BatchNorm': nn.BatchNorm2d,
}
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 Decoder — a Decoder output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Decoder 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
Decoder Not yet run
unverified (harvested, no recorded run)
zju-vipa/EVS-Net/models/modeling/deeplab.py
code served (permissive licence) · get_code("69e2ae26d39d9541")
How it ran

no invocation recorded.

DeepLab Not yet run
unverified (harvested, no recorded run)
zju-vipa/EVS-Net/models/modeling/deeplab.py
code served (permissive licence) · get_code("418c582ab88bb7c5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 1 later) and 1 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
build_aspp
brick of this paper's assembly: helper
6 other papers
5 dated earlier, 1 later
1802.02611 (2018-02)
Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation
1910.02550 (2019-10)
ClearGrasp: 3D Shape Estimation of Transparent Objects for Manipulation
2010.06349 (2020-10)
Collaborative Video Object Segmentation by Multi-Scale Foreground-Background Integration
and 3 more not named here
build_decoder
brick of this paper's assembly: helper
2 other papers
2 dated earlier
1802.02611 (2018-02)
Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation
1910.02550 (2019-10)
ClearGrasp: 3D Shape Estimation of Transparent Objects for Manipulation
Decoder
brick of this paper's assembly: model
1 other paper
1 dated earlier
1802.02611 (2018-02)
Encoder-Decoder with Atrous Separable Convolution for Semantic Image 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-22.

Repositories linked to this paper

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

Abstract

The microvascular invasion (MVI) is a major prognostic factor in hepatocellular carcinoma, which is one of the malignant tumors with the highest mortality rate. The diagnosis of MVI needs discovering the vessels that contain hepatocellular carcinoma cells and counting their number in each vessel, which depends heavily on experiences of the doctor, is largely subjective and time-consuming. However, there is no algorithm as yet tailored for the MVI detection from pathological images. This paper collects the first pathological liver image dataset containing 522 whole slide images with labels of vessels, MVI, and hepatocellular carcinoma grades. The first and essential step for the automatic diagnosis of MVI is the accurate segmentation of vessels. The unique characteristics of pathological liver images, such as super-large size, multi-scale vessel, and blurred vessel edges, make the accurate vessel segmentation challenging. Based on the collected dataset, we propose an Edge-competing Vessel Segmentation Network (EVS-Net), which contains a segmentation network and two edge segmentation discriminators. The segmentation network, combined with an edge-aware self-supervision mechanism, is devised to conduct vessel segmentation with limited labeled patches. Meanwhile, two discriminators are introduced to distinguish whether the segmented vessel and background contain residual features in an adversarial manner. In the training stage, two discriminators are devised to compete for the predicted position of edges. Exhaustive experiments demonstrate that, with only limited labeled patches, EVS-Net achieves a close performance of fully supervised methods, which provides a convenient tool for the pathological liver vessel segmentation. Code is publicly available at https://github.com/zju-vipa/EVS-Net.

For agents

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

get_harvested_code_for_paper("2108.00384")
get_code_for_paper("2108.00384")
have("2108.00384")

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

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

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

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

Connect an agent — have() is free.