Papers › Detect Everything with Few Examples

Detect Everything with Few Examples

22 Sep 2023arXiv:2309.12969archive 2025-07-28

Xinyu Zhang, YuHan Liu, Yuting Wang, Abdeslam Boularias

Few-shot object detection aims at detecting novel categories given only a few example images. It is a basic skill for a robot to perform tasks in open environments. Recent methods focus on finetuning strategies, with complicated procedures that prohibit a wider application. In this paper, we introduce DE-ViT, a few-shot object detector without the need for finetuning. DE-ViT's novel architecture is based on a new region-propagation mechanism for localization. The propagated region masks are transformed into bounding boxes through a learnable spatial integral layer. Instead of training prototype classifiers, we propose to use prototypes to project ViT features into a subspace that is robust to overfitting on base classes. We evaluate DE-ViT on few-shot, and one-shot object detection benchmarks with Pascal VOC, COCO, and LVIS. DE-ViT establishes new state-of-the-art results on all benchmarks. Notably, for COCO, DE-ViT surpasses the few-shot SoTA by 15 mAP on 10-shot and 7.2 mAP on 30-shot and one-shot SoTA by 2.8 AP50. For LVIS, DE-ViT outperforms few-shot SoTA by 17 box APr. Further, we evaluate DE-ViT with a real robot by building a pick-and-place system for sorting novel objects based on example images. The videos of our robot demonstrations, the source code and the models of DE-ViT can be found at https://mlzxy.github.io/devit.

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="2309.12969")

Code

Syntology Ran 15 of 20 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 15 ran with no contract checked.

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

mlzxy/devit officialmentioned in papermentioned on GitHubpytorchMIT 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

20 samples harvested; 15 ran; 0 honoured the contract we drafted; 5 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.

15ran
5unverified

Licence: 0 of the 20 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 mlzxy/devit. “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.

box_cxcywh_to_xyxy mlzxy/devit/lib/regionprop.py official repository ran fingerprinted MIT (permissive) · 009912c75c8c77cf · report
box_xyxy_clamp mlzxy/devit/lib/regionprop.py official repository ran fingerprinted MIT (permissive) · 88d32e10c27e7a12 · report
box_xyxy_to_cxcywh mlzxy/devit/lib/regionprop.py official repository ran fingerprinted MIT (permissive) · db78cfc20095f3a8 · report
convert_basic_c2_names mlzxy/devit/detectron2/checkpoint/c2_model_loading.py official repository ran MIT (permissive) · e8526a516b4f9206 · report
convert_basic_clip_names mlzxy/devit/detectron2/checkpoint/clip_model_loading.py official repository ran MIT (permissive) · 7b7f6e4aa28b1a69 · report
convert_c2_detectron_names mlzxy/devit/detectron2/checkpoint/c2_model_loading.py official repository ran MIT (permissive) · e36f87059208bb7e · report
convert_clip_names mlzxy/devit/detectron2/checkpoint/clip_model_loading.py official repository ran MIT (permissive) · 376248f5d186a885 · report
elementwise_box_iou mlzxy/devit/detectron2/modeling/meta_arch/devit.py official repository ran fingerprinted MIT (permissive) · 1bec3241f0f82f89 · report
generalized_box_iou mlzxy/devit/detectron2/modeling/meta_arch/devit_update.py official repository ran fingerprinted MIT (permissive) · 761e870ed51af37c · report
interpolate mlzxy/devit/detectron2/modeling/meta_arch/devit.py official repository ran MIT (permissive) · a38f5f94b0a19b1b · report
mask_sinkhorn mlzxy/devit/lib/prototype_learner.py official repository ran MIT (permissive) · 9d4bd1f443b65407 · report
parse_rec mlzxy/devit/lib/voc_eval.py official repository ran MIT (permissive) · 2e81e6f4cd544f1b · report
sigmoid_ce_loss mlzxy/devit/detectron2/modeling/meta_arch/devit_update.py official repository ran fingerprinted MIT (permissive) · 847c0c0c48d84c9e · report
sinkhorn mlzxy/devit/lib/prototype_learner.py official repository ran MIT (permissive) · f8c7f9605872c11b · report
voc_eval mlzxy/devit/lib/voc_eval.py official repository ran MIT (permissive) · a6d455c6f04f93d3 · report
align_and_update_state_dicts mlzxy/devit/detectron2/checkpoint/c2_model_loading.py official repository unverified MIT (permissive) · ac2638463572c152 · report
align_and_update_state_dicts_for_CLIP mlzxy/devit/detectron2/checkpoint/clip_model_loading.py official repository unverified MIT (permissive) · 0bd7b0a60b4069f9 · report
dice_loss mlzxy/devit/detectron2/modeling/meta_arch/devit_update.py official repository unverified MIT (permissive) · 89f75e54ff128be0 · report
generalized_box_iou mlzxy/devit/detectron2/modeling/meta_arch/devit.py official repository unverified MIT (permissive) · bfc4e32519b5ef25 · report
voc_ap mlzxy/devit/lib/voc_eval.py official repository unverified MIT (permissive) · 611c47c44c424dba · report

Tasks

Binary ClassificationCross-Domain Few-Shot Object DetectionFew-Shot Object DetectionObjectObject DetectionOne-Shot Object DetectionOpen Vocabulary Object Detectionobject-detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Cross-Domain Few-Shot Object Detection Artaxor DE-ViT-FT mAP 49.2 #6 of 16 Archive leaderboard report
Cross-Domain Few-Shot Object Detection Artaxor DE-ViT(w/o FT) mAP 9.2 #15 of 16 Archive leaderboard report
Cross-Domain Few-Shot Object Detection Clipark1k DE-ViT-FT mAP 40.8 #5 of 10 Archive leaderboard report
Cross-Domain Few-Shot Object Detection Clipark1k DE-ViT(w/o FT) mAP 11.0 #10 of 10 Archive leaderboard report
Cross-Domain Few-Shot Object Detection DIOR DE-ViT-FT mAP 25.6 #6 of 15 Archive leaderboard report
Cross-Domain Few-Shot Object Detection DIOR DE-ViT(w/o FT) mAP 8.4 #13 of 15 Archive leaderboard report
Cross-Domain Few-Shot Object Detection DeepFish DE-ViT-FT mAP 21.3 #6 of 10 Archive leaderboard report
Cross-Domain Few-Shot Object Detection DeepFish DE-ViT(w/o FT) mAP 2.1 #9 of 10 Archive leaderboard report
Cross-Domain Few-Shot Object Detection NEU-DET DE-ViT-FT mAP 8.8 #6 of 10 Archive leaderboard report
Cross-Domain Few-Shot Object Detection NEU-DET DE-ViT(w/o FT) mAP 1.8 #9 of 10 Archive leaderboard report
Cross-Domain Few-Shot Object Detection UODD DE-ViT-FT mAP 5.4 #14 of 16 Archive leaderboard report
Cross-Domain Few-Shot Object Detection UODD DE-ViT(w/o FT) mAP 3.1 #15 of 16 Archive leaderboard report
Few-Shot Object Detection MS-COCO (10-shot) DE-ViT AP 34.0 #3 of 33 Archive leaderboard report
Few-Shot Object Detection MS-COCO (30-shot) DE-ViT AP 34 #3 of 25 Archive leaderboard report
One-Shot Object Detection COCO (Common Objects in Context) DE-ViT AP 0.5 28.4 #2 of 4 Archive leaderboard report
Open Vocabulary Object Detection LVIS v1.0 DE-ViT AP novel-LVIS base training 34.3 #7 of 28 Archive leaderboard report
Open Vocabulary Object Detection MSCOCO DE-ViT AP 0.5 50 #2 of 32 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

BASEFocus

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