{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/one-shot-object-detection-with-co-attention-1","title":"One-Shot Object Detection with Co-Attention and Co-Excitation","arxiv_id":"1911.12529","date":"2019-11-28","proceeding":"NeurIPS 2019 12","authors":["Ting-I Hsieh","Yi-Chen Lo","Hwann-Tzong Chen","Tyng-Luh Liu"],"abstract":"This paper aims to tackle the challenging problem of one-shot object detection. Given a query image patch whose class label is not included in the training data, the goal of the task is to detect all instances of the same class in a target image. To this end, we develop a novel {\\em co-attention and co-excitation} (CoAE) framework that makes contributions in three key technical aspects. First, we propose to use the non-local operation to explore the co-attention embodied in each query-target pair and yield region proposals accounting for the one-shot situation. Second, we formulate a squeeze-and-co-excitation scheme that can adaptively emphasize correlated feature channels to help uncover relevant proposals and eventually the target objects. Third, we design a margin-based ranking loss for implicitly learning a metric to predict the similarity of a region proposal to the underlying query, no matter its class label is seen or unseen in training. The resulting model is therefore a two-stage detector that yields a strong baseline on both VOC and MS-COCO under one-shot setting of detecting objects from both seen and never-seen classes. Codes are available at https://github.com/timy90022/One-Shot-Object-Detection.","url_abs":"https://arxiv.org/abs/1911.12529v1","url_pdf":"https://arxiv.org/pdf/1911.12529v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"one-shot-object-detection-with-co-attention-1","repo_url":"https://github.com/timy90022/One-Shot-Object-Detection","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"one-shot-object-detection-with-co-attention-1","repo_url":"https://github.com/aosokin/os2d","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"object-detection","task_name":"Object Detection"},{"task_slug":"one-shot-object-detection","task_name":"One-Shot Object Detection"},{"task_slug":"region-proposal","task_name":"Region Proposal"},{"task_slug":"object-detection-1","task_name":"object-detection"}],"methods":[{"method_slug":"1x1-convolution","method_name":"1x1 Convolution"},{"method_slug":"non-local-operation","method_name":"Non-Local Operation"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/one-shot-object-detection-on-coco","task":"One-Shot Object Detection","dataset":"COCO (Common Objects in Context)","model":"One-Shot Object Detection","rank_in_archive_order":3,"of":4,"metrics":{"AP 0.5":"22.0"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1911.12529","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1911.12529"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/timy90022/One-Shot-Object-Detection","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/aosokin/os2d","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":8},"by_repo_kind":{"official":{"samples":8,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"3be9228820b46ef3","entry":"get_imdb","repo":"timy90022/One-Shot-Object-Detection","repo_kind":"official","path":"lib/datasets/factory.py","file_url":"https://github.com/timy90022/One-Shot-Object-Detection/blob/HEAD/lib/datasets/factory.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3be9228820b46ef3"}},{"code_sha256_prefix":"0eafc51289a49033","entry":"parse_rec","repo":"timy90022/One-Shot-Object-Detection","repo_kind":"official","path":"lib/datasets/voc_eval.py","file_url":"https://github.com/timy90022/One-Shot-Object-Detection/blob/HEAD/lib/datasets/voc_eval.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0eafc51289a49033"}},{"code_sha256_prefix":"8a015c012f507631","entry":"unique_boxes","repo":"timy90022/One-Shot-Object-Detection","repo_kind":"official","path":"lib/datasets/ds_utils.py","file_url":"https://github.com/timy90022/One-Shot-Object-Detection/blob/HEAD/lib/datasets/ds_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8a015c012f507631"}},{"code_sha256_prefix":"c485a145dcf5de8e","entry":"vg_eval","repo":"timy90022/One-Shot-Object-Detection","repo_kind":"official","path":"lib/datasets/vg_eval.py","file_url":"https://github.com/timy90022/One-Shot-Object-Detection/blob/HEAD/lib/datasets/vg_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c485a145dcf5de8e"}},{"code_sha256_prefix":"ec3e5aa793d6ce69","entry":"voc_ap","repo":"timy90022/One-Shot-Object-Detection","repo_kind":"official","path":"lib/datasets/voc_eval.py","file_url":"https://github.com/timy90022/One-Shot-Object-Detection/blob/HEAD/lib/datasets/voc_eval.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ec3e5aa793d6ce69"}},{"code_sha256_prefix":"2f16ecec36118ba9","entry":"voc_eval","repo":"timy90022/One-Shot-Object-Detection","repo_kind":"official","path":"lib/datasets/voc_eval.py","file_url":"https://github.com/timy90022/One-Shot-Object-Detection/blob/HEAD/lib/datasets/voc_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2f16ecec36118ba9"}},{"code_sha256_prefix":"d3e019b11b709edb","entry":"xywh_to_xyxy","repo":"timy90022/One-Shot-Object-Detection","repo_kind":"official","path":"lib/datasets/ds_utils.py","file_url":"https://github.com/timy90022/One-Shot-Object-Detection/blob/HEAD/lib/datasets/ds_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d3e019b11b709edb"}},{"code_sha256_prefix":"a832e5017f504280","entry":"xyxy_to_xywh","repo":"timy90022/One-Shot-Object-Detection","repo_kind":"official","path":"lib/datasets/ds_utils.py","file_url":"https://github.com/timy90022/One-Shot-Object-Detection/blob/HEAD/lib/datasets/ds_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a832e5017f504280"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}