{"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/semantics-aligned-representation-learning-for","title":"Semantics-Aligned Representation Learning for Person Re-identification","arxiv_id":"1905.13143","date":"2019-05-30","proceeding":null,"authors":["Xin Jin","Cuiling Lan","Wen-Jun Zeng","Guoqiang Wei","Zhibo Chen"],"abstract":"Person re-identification (reID) aims to match person images to retrieve the ones with the same identity. This is a challenging task, as the images to be matched are generally semantically misaligned due to the diversity of human poses and capture viewpoints, incompleteness of the visible bodies (due to occlusion), etc. In this paper, we propose a framework that drives the reID network to learn semantics-aligned feature representation through delicate supervision designs. Specifically, we build a Semantics Aligning Network (SAN) which consists of a base network as encoder (SA-Enc) for re-ID, and a decoder (SA-Dec) for reconstructing/regressing the densely semantics aligned full texture image. We jointly train the SAN under the supervisions of person re-identification and aligned texture generation. Moreover, at the decoder, besides the reconstruction loss, we add Triplet ReID constraints over the feature maps as the perceptual losses. The decoder is discarded in the inference and thus our scheme is computationally efficient. Ablation studies demonstrate the effectiveness of our design. We achieve the state-of-the-art performances on the benchmark datasets CUHK03, Market1501, MSMT17, and the partial person reID dataset Partial REID. Code for our proposed method is available at: https://github.com/microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification.","url_abs":"https://arxiv.org/abs/1905.13143v3","url_pdf":"https://arxiv.org/pdf/1905.13143v3.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":"semantics-aligned-representation-learning-for","repo_url":"https://github.com/microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"decoder","task_name":"Decoder"},{"task_slug":"person-re-identification","task_name":"Person Re-Identification"},{"task_slug":"representation-learning","task_name":"Representation Learning"},{"task_slug":"texture-synthesis","task_name":"Texture Synthesis"},{"task_slug":null,"task_name":"Triplet"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1905.13143","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1905.13143"}},"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/microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"ran":1,"unverified":9},"by_repo_kind":{"official":{"samples":11,"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":"dd1114865f06f0fd","entry":"conv3x3","repo":"microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification","repo_kind":"official","path":"torchreid/models/resnet.py","file_url":"https://github.com/microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification/blob/HEAD/torchreid/models/resnet.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dd1114865f06f0fd"}},{"code_sha256_prefix":"e3cbae59cb5ed741","entry":"read_image","repo":"microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification","repo_kind":"official","path":"torchreid/dataset_loader.py","file_url":"https://github.com/microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification/blob/HEAD/torchreid/dataset_loader.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e3cbae59cb5ed741"}},{"code_sha256_prefix":"fe7e035b56b0c148","entry":"build_transforms","repo":"microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification","repo_kind":"official","path":"torchreid/transforms.py","file_url":"https://github.com/microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification/blob/HEAD/torchreid/transforms.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":"fe7e035b56b0c148"}},{"code_sha256_prefix":"d100118814161b20","entry":"eval_cuhk03","repo":"microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification","repo_kind":"official","path":"torchreid/eval_metrics.py","file_url":"https://github.com/microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification/blob/HEAD/torchreid/eval_metrics.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":"d100118814161b20"}},{"code_sha256_prefix":"acf991f06281a336","entry":"eval_market1501","repo":"microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification","repo_kind":"official","path":"torchreid/eval_metrics.py","file_url":"https://github.com/microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification/blob/HEAD/torchreid/eval_metrics.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":"acf991f06281a336"}},{"code_sha256_prefix":"6c4da11cacaff831","entry":"evaluate_py","repo":"microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification","repo_kind":"official","path":"torchreid/eval_metrics.py","file_url":"https://github.com/microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification/blob/HEAD/torchreid/eval_metrics.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":"6c4da11cacaff831"}},{"code_sha256_prefix":"982f71a5bf0436f5","entry":"image_dataset_kwargs","repo":"microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification","repo_kind":"official","path":"args.py","file_url":"https://github.com/microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification/blob/HEAD/args.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":"982f71a5bf0436f5"}},{"code_sha256_prefix":"8f45a875ca759c55","entry":"init_optimizer","repo":"microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification","repo_kind":"official","path":"torchreid/optimizers.py","file_url":"https://github.com/microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification/blob/HEAD/torchreid/optimizers.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":"8f45a875ca759c55"}},{"code_sha256_prefix":"22c90ccd7fb0837e","entry":"optimizer_kwargs","repo":"microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification","repo_kind":"official","path":"args.py","file_url":"https://github.com/microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification/blob/HEAD/args.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":"22c90ccd7fb0837e"}},{"code_sha256_prefix":"f42752ad0e2f6c85","entry":"resnet50","repo":"microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification","repo_kind":"official","path":"torchreid/models/resnet.py","file_url":"https://github.com/microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification/blob/HEAD/torchreid/models/resnet.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":"f42752ad0e2f6c85"}},{"code_sha256_prefix":"c48cb0d4e0d8fe1d","entry":"resnet50_fc512","repo":"microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification","repo_kind":"official","path":"torchreid/models/resnet.py","file_url":"https://github.com/microsoft/Semantics-Aligned-Representation-Learning-for-Person-Re-identification/blob/HEAD/torchreid/models/resnet.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":"c48cb0d4e0d8fe1d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}