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

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

16 Jan 2024arXiv:2401.08083archive 2025-07-28

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

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-fib-lab/UV-SAM.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2401.08083")

Code

Syntology Ran 12 of 14 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 3 ran · fixture could not drive it; 9 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

tsinghua-fib-lab/uv-sam officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 12 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · fixture could not drive it
9ran
2unverified

Licence: 14 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from tsinghua-fib-lab/uv-sam. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Attention tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 7bdac456c2af02c6 · report
Block tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py official repository ran no licence file found · pointer only · d841a9adef572f9e · report
LayerNorm2d tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · b44d2d4c43f5956f · report
MLP tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 14bffa3317261abf · report
MLPBlock tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · dfe0a067e00921c2 · report
MaskDecoder tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 38c2530704387ca2 · report
PatchEmbed tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 18919d3694eed041 · report
PositionEmbeddingRandom tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · ccf6d7c26c70441b · report
PromptEncoder tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 5aeae920118a294a · report
add_decomposed_rel_pos tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py official repository ran · fixture could not drive it no licence file found · pointer only · b5069cc86c389506 · report
window_partition tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · a192467bffc160cb · report
window_unpartition tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py official repository ran · fixture could not drive it no licence file found · pointer only · 8b718d9dd8a95fb2 · report
ImageEncoderViT tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py official repository unverified no licence file found · pointer only · f99a593e128f3e8e · report
Sam tsinghua-fib-lab/uv-sam/modules/sam/modeling/sam.py official repository unverified no licence file found · pointer only · a3a6eeb453a91adb · report

Tasks

Image ClassificationSemantic Segmentationimage-classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

FocusSAM

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections