VSCode: General Visual Salient and Camouflaged Object Detection with 2D Prompt Learning

Ziyang Luo, Nian Liu, Wangbo Zhao, Xuguang Yang, Dingwen Zhang +3 more
2/14/2026

No official code found. Best implementation: Sssssuperior/VSCode (65 stars, MIT, last commit 2025-12-08).

Abstract

Salient object detection (SOD) and camouflaged object detection (COD) are related yet distinct binary mapping tasks. These tasks involve multiple modalities, sharing commonalities and unique cues. Existing research often employs intricate task-specific specialist models, potentially leading to redundancy and suboptimal results. We introduce VS-Code, a generalist model with novel 2D prompt learning, to jointly address four SOD tasks and three COD tasks. We utilize VST as the foundation model and introduce 2D prompts within the encoder-decoder architecture to learn domain and task-specific knowledge on two separate dimensions. A prompt discrimination loss helps disentangle peculiarities to benefit model optimization. VSCode outperforms state-of-the-art methods across six tasks on 26 datasets and exhibits zero-shot generalization to unseen tasks by combining 2D prompts, such as RGB-D COD. Source code has been available at https://github.com/Sssssuperior/VSCode.

View on arXivView PDF

Code Implementations(1)

Sssssuperior/VSCodeCommunity100%
MIT

Code release for "VSCode: General Visual Salient and Camouflaged Object Detection with 2D Prompt Learning" & "VSCode-v2: Dynamic Prompt Learning for General Visual Salient and Camouflaged Object Detection with Two-Stage Optimization"

653Shell, PythonMar 6, 202410 months agoMIT

Similar Papers

Cite this paper

@article{luo2026vscode,
  title  = {VSCode: General Visual Salient and Camouflaged Object Detection with 2D Prompt Learning},
  author = {Ziyang Luo and Nian Liu and Wangbo Zhao and Xuguang Yang and Dingwen Zhang and Deng-Ping Fan and Fahad Khan and Junwei Han},
  year   = {2026},
  eprint = {2311.15011},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2311.15011},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.15011.svg)](https://codeofpaper.com/paper/2311.15011)

Discussion