{"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/few-shot-keypoint-detection-with-uncertainty","title":"Few-shot Keypoint Detection with Uncertainty Learning for Unseen Species","arxiv_id":"2112.06183","date":"2021-12-12","proceeding":"CVPR 2022 1","authors":["Changsheng Lu","Piotr Koniusz"],"abstract":"Current non-rigid object keypoint detectors perform well on a chosen kind of species and body parts, and require a large amount of labelled keypoints for training. Moreover, their heatmaps, tailored to specific body parts, cannot recognize novel keypoints (keypoints not labelled for training) on unseen species. We raise an interesting yet challenging question: how to detect both base (annotated for training) and novel keypoints for unseen species given a few annotated samples? Thus, we propose a versatile Few-shot Keypoint Detection (FSKD) pipeline, which can detect a varying number of keypoints of different kinds. Our FSKD provides the uncertainty estimation of predicted keypoints. Specifically, FSKD involves main and auxiliary keypoint representation learning, similarity learning, and keypoint localization with uncertainty modeling to tackle the localization noise. Moreover, we model the uncertainty across groups of keypoints by multivariate Gaussian distribution to exploit implicit correlations between neighboring keypoints. We show the effectiveness of our FSKD on (i) novel keypoint detection for unseen species, and (ii) few-shot Fine-Grained Visual Recognition (FGVR) and (iii) Semantic Alignment (SA) downstream tasks. For FGVR, detected keypoints improve the classification accuracy. For SA, we showcase a novel thin-plate-spline warping that uses estimated keypoint uncertainty under imperfect keypoint corespondences.","url_abs":"https://arxiv.org/abs/2112.06183v3","url_pdf":"https://arxiv.org/pdf/2112.06183v3.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":"few-shot-keypoint-detection-with-uncertainty","repo_url":"https://github.com/alanlusun/few-shot-keypoint-detection","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"fine-grained-visual-recognition","task_name":"Fine-Grained Visual Recognition"},{"task_slug":"keypoint-detection","task_name":"Keypoint Detection"},{"task_slug":"representation-learning","task_name":"Representation Learning"}],"methods":[{"method_slug":"base","method_name":"BASE"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2112.06183","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2112.06183"}},"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/alanlusun/few-shot-keypoint-detection","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":1,"ran_draft_wrong":1,"unverified":6},"by_repo_kind":{"official":{"samples":8,"ran":2,"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":"5efc70da8ecd43b8","entry":"average_representations","repo":"alanlusun/few-shot-keypoint-detection","repo_kind":"official","path":"network/models_gridms2-backup.py","file_url":"https://github.com/alanlusun/few-shot-keypoint-detection/blob/HEAD/network/models_gridms2-backup.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5efc70da8ecd43b8"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"alanlusun/few-shot-keypoint-detection","repo_kind":"official","path":"network/pose_hrnet.py","file_url":"https://github.com/alanlusun/few-shot-keypoint-detection/blob/HEAD/network/pose_hrnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"09d2500ce1e2f544","entry":"WarpImage_TPS","repo":"alanlusun/few-shot-keypoint-detection","repo_kind":"official","path":"TPSwarping.py","file_url":"https://github.com/alanlusun/few-shot-keypoint-detection/blob/HEAD/TPSwarping.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"09d2500ce1e2f544"}},{"code_sha256_prefix":"78e2f4f5c3041d9d","entry":"compute_recall_ap","repo":"alanlusun/few-shot-keypoint-detection","repo_kind":"official","path":"coco_eval_funs.py","file_url":"https://github.com/alanlusun/few-shot-keypoint-detection/blob/HEAD/coco_eval_funs.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"78e2f4f5c3041d9d"}},{"code_sha256_prefix":"93fc9cf3117e9e83","entry":"masked_l1_loss","repo":"alanlusun/few-shot-keypoint-detection","repo_kind":"official","path":"loss.py","file_url":"https://github.com/alanlusun/few-shot-keypoint-detection/blob/HEAD/loss.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"93fc9cf3117e9e83"}},{"code_sha256_prefix":"1d322df962a56619","entry":"masked_mse_loss","repo":"alanlusun/few-shot-keypoint-detection","repo_kind":"official","path":"loss.py","file_url":"https://github.com/alanlusun/few-shot-keypoint-detection/blob/HEAD/loss.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1d322df962a56619"}},{"code_sha256_prefix":"1ac410c302ef31d1","entry":"masked_nll_gaussian","repo":"alanlusun/few-shot-keypoint-detection","repo_kind":"official","path":"loss.py","file_url":"https://github.com/alanlusun/few-shot-keypoint-detection/blob/HEAD/loss.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1ac410c302ef31d1"}},{"code_sha256_prefix":"d90682e957a5a653","entry":"putGaussianMaps","repo":"alanlusun/few-shot-keypoint-detection","repo_kind":"official","path":"heatmap.py","file_url":"https://github.com/alanlusun/few-shot-keypoint-detection/blob/HEAD/heatmap.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d90682e957a5a653"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}