SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.08083 · AAAI · 2024

UV-SAM: Adapting Segment Anything Model for Urban Village Identification

Yong Li, Xin Zhang, Yu Liu, Qingmin Liao, Yuming Lin

arXiv · PDF · Open in the Atlas

Code that ran

12 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (8 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 9 have no contract verdict; 3 failures of our instrument; 2 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/2401.08083.json · badge: /api/ran/2401.08083.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
tsinghua-fib-lab/uv-sam marked official in Papers with Code
Papers with Code archive
12 ran · 2 no recorded run
FunctionStatusWhere it lives
Attention Ran
ran on a synthesized input · constructed an object; no result was computed
tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py
pointer only (licence: NONE) · get_code("7bdac456c2af02c6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/uv-sam when it was checked. 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.

Block Ran
ran on a synthesized input
tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py
pointer only (licence: NONE) · get_code("d841a9adef572f9e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/uv-sam when it was checked. 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.

LayerNorm2d Ran
ran on a synthesized input · constructed an object; no result was computed
tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py
pointer only (licence: NONE) · get_code("b44d2d4c43f5956f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/uv-sam when it was checked. 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.

MLP Ran
ran on a synthesized input · constructed an object; no result was computed
tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py
pointer only (licence: NONE) · get_code("14bffa3317261abf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/uv-sam when it was checked. 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.

MLPBlock Ran
ran on a synthesized input · constructed an object; no result was computed
tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py
pointer only (licence: NONE) · get_code("dfe0a067e00921c2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/uv-sam when it was checked. 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.

MaskDecoder Ran
ran on a synthesized input · constructed an object; no result was computed
tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py
pointer only (licence: NONE) · get_code("38c2530704387ca2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/uv-sam when it was checked. 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.

PatchEmbed Ran
ran on a synthesized input · constructed an object; no result was computed
tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py
pointer only (licence: NONE) · get_code("18919d3694eed041")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/uv-sam when it was checked. 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.

PositionEmbeddingRandom Ran
ran on a synthesized input · constructed an object; no result was computed
tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py
pointer only (licence: NONE) · get_code("ccf6d7c26c70441b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/uv-sam when it was checked. 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.

PromptEncoder Ran
ran on a synthesized input · constructed an object; no result was computed
tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py
pointer only (licence: NONE) · get_code("5aeae920118a294a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/uv-sam when it was checked. 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.

add_decomposed_rel_pos Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py
pointer only (licence: NONE) · get_code("b5069cc86c389506")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/uv-sam when it was checked. 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.

window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py
pointer only (licence: NONE) · get_code("a192467bffc160cb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/uv-sam when it was checked. 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.

window_unpartition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py
pointer only (licence: NONE) · get_code("8b718d9dd8a95fb2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/uv-sam when it was checked. 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.

ImageEncoderViT Not yet run
unverified (harvested, no recorded run)
tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py
pointer only (licence: NONE) · get_code("f99a593e128f3e8e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/uv-sam when it was checked. 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.

Sam Not yet run
unverified (harvested, no recorded run)
tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py
pointer only (licence: NONE) · get_code("a3a6eeb453a91adb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tsinghua-fib-lab/uv-sam when it was checked. 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 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 12 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 2 the same month, 11 later) and 2 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
window_partition
brick of this paper's assembly: helper
47 other papers
22 dated earlier, 2 the same month, 21 later, 2 same year, order not determinable · 1 only as an assembly brick
2304.02643 (2023-04)
Segment Anything
2304.06790 (2023-04)
Inpaint Anything: Segment Anything Meets Image Inpainting
2304.12306 (2023-04)
Segment Anything in Medical Images
and 44 more not named here
window_unpartition
brick of this paper's assembly: helper
46 other papers
22 dated earlier, 2 the same month, 20 later, 2 same year, order not determinable · 1 only as an assembly brick
2304.02643 (2023-04)
Segment Anything
2304.06790 (2023-04)
Inpaint Anything: Segment Anything Meets Image Inpainting
2304.12306 (2023-04)
Segment Anything in Medical Images
and 43 more not named here
LayerNorm2d
brick of this paper's assembly: helper
12 other papers
2 dated earlier, 10 later · 10 only as an assembly brick
2306.01567 (2023-06)
Segment Anything in High Quality
2312.05284 (2023-12)
SlimSAM: 0.1% Data Makes Segment Anything Slim
2403.18271 (2024-03)
Unleashing the Potential of SAM for Medical Adaptation via Hierarchical Decoding
and 9 more not named here
MLPBlock
brick of this paper's assembly: helper
8 other papers
2 dated earlier, 6 later · 3 only as an assembly brick
2207.05042 (2022-07)
Audio-Visual Segmentation
2306.01567 (2023-06)
Segment Anything in High Quality
2404.15700 (2024-04)
MAS-SAM: Segment Any Marine Animal with Aggregated Features
and 5 more not named here
PositionEmbeddingRandom
brick of this paper's assembly: helper
8 other papers
1 dated earlier, 7 later · 3 only as an assembly brick
2306.01567 (2023-06)
Segment Anything in High Quality
2404.15700 (2024-04)
MAS-SAM: Segment Any Marine Animal with Aggregated Features
2408.00714 (2024-08)
SAM 2: Segment Anything in Images and Videos
and 5 more not named here
MLP
brick of this paper's assembly: helper
7 other papers
1 dated earlier, 6 later · 4 only as an assembly brick
2306.01567 (2023-06)
Segment Anything in High Quality
2403.18271 (2024-03)
Unleashing the Potential of SAM for Medical Adaptation via Hierarchical Decoding
2404.15700 (2024-04)
MAS-SAM: Segment Any Marine Animal with Aggregated Features
and 4 more not named here
add_decomposed_rel_pos
brick of this paper's assembly: helper
7 other papers
2 dated earlier, 5 later · 1 only as an assembly brick
2306.01567 (2023-06)
Segment Anything in High Quality
2312.05284 (2023-12)
SlimSAM: 0.1% Data Makes Segment Anything Slim
2404.15700 (2024-04)
MAS-SAM: Segment Any Marine Animal with Aggregated Features
and 4 more not named here
Attention
brick of this paper's assembly: helper
6 other papers
1 dated earlier, 5 later · 1 only as an assembly brick
2306.01567 (2023-06)
Segment Anything in High Quality
2404.15700 (2024-04)
MAS-SAM: Segment Any Marine Animal with Aggregated Features
2405.19783 (2024-05)
Instruction-Guided Visual Masking
and 3 more not named here
PatchEmbed
brick of this paper's assembly: helper
6 other papers
1 dated earlier, 5 later · 1 only as an assembly brick
2306.01567 (2023-06)
Segment Anything in High Quality
2404.15700 (2024-04)
MAS-SAM: Segment Any Marine Animal with Aggregated Features
2405.19783 (2024-05)
Instruction-Guided Visual Masking
and 3 more not named here
Block
brick of this paper's assembly: helper
5 other papers
1 dated earlier, 4 later · 1 only as an assembly brick
2306.01567 (2023-06)
Segment Anything in High Quality
2405.19783 (2024-05)
Instruction-Guided Visual Masking
2503.16997 (2025-03)
Steady Progress Beats Stagnation: Mutual Aid of Foundation and Conventional Models in Mixed Domain Semi-Supervised Medical Image Segmentation
and 2 more not named here
PromptEncoder
brick of this paper's assembly: helper
4 other papers
1 dated earlier, 3 later · 2 only as an assembly brick
2306.01567 (2023-06)
Segment Anything in High Quality
2404.15700 (2024-04)
MAS-SAM: Segment Any Marine Animal with Aggregated Features
2503.13739 (2025-03)
Learning from Synchronization: Self-Supervised Uncalibrated Multi-View Person Association in Challenging Scenes
and 1 more not named here
Sam
brick of this paper's assembly: entry
1 other paper
1 dated earlier
2306.01567 (2023-06)
Segment Anything in High Quality

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

Urban villages, defined as informal residential areas in or around urban centers, are characterized by inadequate infrastructures and poor living conditions, closely related to the Sustainable Development Goals (SDGs) on poverty, adequate housing, and sustainable cities. Traditionally, governments heavily depend on field survey methods to monitor the urban villages, which however are time-consuming, labor-intensive, and possibly delayed. Thanks to widely available and timely updated satellite images, recent studies develop computer vision techniques to detect urban villages efficiently. However, existing studies either focus on simple urban village image classification or fail to provide accurate boundary information. To accurately identify urban village boundaries from satellite images, we harness the power of the vision foundation model and adapt the Segment Anything Model (SAM) to urban village segmentation, named UV-SAM. Specifically, UV-SAM first leverages a small-sized semantic segmentation model to produce mixed prompts for urban villages, including mask, bounding box, and image representations, which are then fed into SAM for fine-grained boundary identification. Extensive experimental results on two datasets in China demonstrate that UV-SAM outperforms existing baselines, and identification results over multiple years show that both the number and area of urban villages are decreasing over time, providing deeper insights into the development trends of urban villages and sheds light on the vision foundation models for sustainable cities. The dataset and codes of this study are available at https://github.com/tsinghua-fiblab/UV-SAM.

For agents

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

get_harvested_code_for_paper("2401.08083")
get_code_for_paper("2401.08083")
have("2401.08083")

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

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

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

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

Connect an agent — have() is free.