{"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/supervised-contrastive-learning","title":"Supervised Contrastive Learning","arxiv_id":"2004.11362","date":"2020-04-23","proceeding":"NeurIPS 2020 12","authors":["Prannay Khosla","Piotr Teterwak","Chen Wang","Aaron Sarna","Yonglong Tian","Phillip Isola","Aaron Maschinot","Ce Liu","Dilip Krishnan"],"abstract":"Contrastive learning applied to self-supervised representation learning has seen a resurgence in recent years, leading to state of the art performance in the unsupervised training of deep image models. Modern batch contrastive approaches subsume or significantly outperform traditional contrastive losses such as triplet, max-margin and the N-pairs loss. In this work, we extend the self-supervised batch contrastive approach to the fully-supervised setting, allowing us to effectively leverage label information. Clusters of points belonging to the same class are pulled together in embedding space, while simultaneously pushing apart clusters of samples from different classes. We analyze two possible versions of the supervised contrastive (SupCon) loss, identifying the best-performing formulation of the loss. On ResNet-200, we achieve top-1 accuracy of 81.4% on the ImageNet dataset, which is 0.8% above the best number reported for this architecture. We show consistent outperformance over cross-entropy on other datasets and two ResNet variants. The loss shows benefits for robustness to natural corruptions and is more stable to hyperparameter settings such as optimizers and data augmentations. Our loss function is simple to implement, and reference TensorFlow code is released at https://t.ly/supcon.","url_abs":"https://arxiv.org/abs/2004.11362v5","url_pdf":"https://arxiv.org/pdf/2004.11362v5.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":"supervised-contrastive-learning","repo_url":"https://github.com/HobbitLong/SupContrast","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"BSD-2-Clause"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/google-research/google-research/tree/master/supcon","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"tf","reach":null},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/Liut2016/ecg-supcontrast","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/PaperCodeReview/SupCL-TF","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/XG293/SupConLoss","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"BSD-2-Clause"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/ZIZUN/CPFT","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/alexk1704/scclv2","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/caesarea38/doclangid","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/davidczy/supcon_gamma","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"BSD-2-Clause"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/delyan-boychev/grad-cache-con-learning","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/flyingsheepbin/pet-biometrics","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/forcesh/SupContrast","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/guerbet-ai/wsp-contrastive","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/hannaiiyanggit/unicon","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/hooman650/supcl-seq","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/ilyassmoummad/ProtoCLR","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/renato145/ContrastiveLoss","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/salarim/Semi-Supervised-CL","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/sayakpaul/Supervised-Constrastive-Learning-in-TensorFlow-2","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/sidtandon2014/fw-shapley","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/uiuctml/HypStructure","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/vk1996/contrastive_learning","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/GuoQuanhao/SupContrast-Paddle","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"paddle","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/PaddlePaddle/PaddleClas","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"paddle","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/paddorch/SupContrast.paddle","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"paddle","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"supervised-contrastive-learning","repo_url":"https://github.com/raymin0223/self-contrastive-learning","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"class-incremental-learning","task_name":"Class Incremental Learning"},{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"representation-learning","task_name":"Representation Learning"},{"task_slug":"self-supervised-learning","task_name":"Self-Supervised Learning"},{"task_slug":null,"task_name":"Triplet"}],"methods":[{"method_slug":"1x1-convolution","method_name":"1x1 Convolution"},{"method_slug":"autoaugment","method_name":"AutoAugment"},{"method_slug":"average-pooling","method_name":"Average Pooling"},{"method_slug":"batch-normalization","method_name":"Batch Normalization"},{"method_slug":"bottleneck-residual-block","method_name":"Bottleneck Residual Block"},{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"cosine-annealing","method_name":"Cosine Annealing"},{"method_slug":"exponential-decay","method_name":"Exponential Decay"},{"method_slug":"global-average-pooling","method_name":"Global Average Pooling"},{"method_slug":"kaiming-initialization","method_name":"Kaiming Initialization"},{"method_slug":"lars","method_name":"LARS"},{"method_slug":"lstm","method_name":"LSTM"},{"method_slug":"max-pooling","method_name":"Max Pooling"},{"method_slug":"rmsprop","method_name":"RMSProp"},{"method_slug":"relu","method_name":"ReLU"},{"method_slug":"residual-block","method_name":"Residual Block"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"sgd-with-momentum","method_name":"SGD with Momentum"},{"method_slug":"sigmoid-activation","method_name":"Sigmoid Activation"},{"method_slug":"supervised-contrastive-loss","method_name":"Supervised Contrastive Loss"},{"method_slug":"tanh-activation","method_name":"Tanh Activation"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/class-incremental-learning-on-cifar100","task":"Class Incremental Learning","dataset":"cifar100","model":"SCR","rank_in_archive_order":2,"of":7,"metrics":{"10-stage average accuracy":"65.98"},"uses_additional_data":false},{"leaderboard":"/sota/image-classification-on-imagenet","task":"Image Classification","dataset":"ImageNet","model":"ResNet-200 (Supervised Contrastive)","rank_in_archive_order":679,"of":1060,"metrics":{"Top 1 Accuracy":"80.8%"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2004.11362","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2004.11362"}},"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/HobbitLong/SupContrast","reach":{"status":"ok","spdx":"BSD-2-Clause"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/uiuctml/HypStructure","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hannaiiyanggit/unicon","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/alexk1704/scclv2","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/delyan-boychev/grad-cache-con-learning","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sayakpaul/Supervised-Constrastive-Learning-in-TensorFlow-2","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/XG293/SupConLoss","reach":{"status":"ok","spdx":"BSD-2-Clause"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/PaddlePaddle/PaddleClas","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/guerbet-ai/wsp-contrastive","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/renato145/ContrastiveLoss","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/davidczy/supcon_gamma","reach":{"status":"ok","spdx":"BSD-2-Clause"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/forcesh/SupContrast","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ilyassmoummad/ProtoCLR","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/caesarea38/doclangid","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hooman650/supcl-seq","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/paddorch/SupContrast.paddle","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/vk1996/contrastive_learning","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/salarim/Semi-Supervised-CL","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/google-research/google-research/tree/master/supcon","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/raymin0223/self-contrastive-learning","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ZIZUN/CPFT","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sidtandon2014/fw-shapley","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/flyingsheepbin/pet-biometrics","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Liut2016/ecg-supcontrast","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/PaperCodeReview/SupCL-TF","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":2,"ran_fixture":1,"ran_honours":2,"ran":1,"unverified":17},"by_repo_kind":{"listed":{"samples":23,"ran":6,"repositories":7}},"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":"c3b215555357b9d1","entry":"conv3x3x3","repo":"davidczy/supcon_gamma","repo_kind":"listed","path":"networks/ThreeDResnet.py","file_url":"https://github.com/davidczy/supcon_gamma/blob/HEAD/networks/ThreeDResnet.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":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"c3b215555357b9d1"}},{"code_sha256_prefix":"43c0211ff8dbca5f","entry":"downsample_basic_block","repo":"davidczy/supcon_gamma","repo_kind":"listed","path":"networks/ThreeDResnet.py","file_url":"https://github.com/davidczy/supcon_gamma/blob/HEAD/networks/ThreeDResnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"43c0211ff8dbca5f"}},{"code_sha256_prefix":"909920018e1f3cef","entry":"obtain_contrastive_loss","repo":"Liut2016/ecg-supcontrast","repo_kind":"listed","path":"losses.py","file_url":"https://github.com/Liut2016/ecg-supcontrast/blob/HEAD/losses.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"909920018e1f3cef"}},{"code_sha256_prefix":"f321f54723433661","entry":"pil_loader","repo":"sidtandon2014/fw-shapley","repo_kind":"listed","path":"src/shapley/embedding/custom_loader.py","file_url":"https://github.com/sidtandon2014/fw-shapley/blob/HEAD/src/shapley/embedding/custom_loader.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f321f54723433661"}},{"code_sha256_prefix":"a44a1925c2c778ba","entry":"set_optimizer","repo":"XG293/SupConLoss","repo_kind":"listed","path":"util.py","file_url":"https://github.com/XG293/SupConLoss/blob/HEAD/util.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"a44a1925c2c778ba"}},{"code_sha256_prefix":"d8660dac176225e1","entry":"train","repo":"raymin0223/self-contrastive-learning","repo_kind":"listed","path":"main_represent.py","file_url":"https://github.com/raymin0223/self-contrastive-learning/blob/HEAD/main_represent.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d8660dac176225e1"}},{"code_sha256_prefix":"404fb2b2daa1ae78","entry":"accimage_loader","repo":"sidtandon2014/fw-shapley","repo_kind":"listed","path":"src/shapley/embedding/custom_loader.py","file_url":"https://github.com/sidtandon2014/fw-shapley/blob/HEAD/src/shapley/embedding/custom_loader.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":"404fb2b2daa1ae78"}},{"code_sha256_prefix":"913d82af53065418","entry":"accuracy","repo":"XG293/SupConLoss","repo_kind":"listed","path":"util.py","file_url":"https://github.com/XG293/SupConLoss/blob/HEAD/util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"913d82af53065418"}},{"code_sha256_prefix":"6ea12cd09e4f96c6","entry":"create_model","repo":"PaperCodeReview/SupCL-TF","repo_kind":"listed","path":"model.py","file_url":"https://github.com/PaperCodeReview/SupCL-TF/blob/HEAD/model.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":"6ea12cd09e4f96c6"}},{"code_sha256_prefix":"e42d6851a241a214","entry":"crossentropy","repo":"PaperCodeReview/SupCL-TF","repo_kind":"listed","path":"loss.py","file_url":"https://github.com/PaperCodeReview/SupCL-TF/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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e42d6851a241a214"}},{"code_sha256_prefix":"7bf07d5f59aae36d","entry":"default_loader","repo":"sidtandon2014/fw-shapley","repo_kind":"listed","path":"src/shapley/embedding/custom_loader.py","file_url":"https://github.com/sidtandon2014/fw-shapley/blob/HEAD/src/shapley/embedding/custom_loader.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":"7bf07d5f59aae36d"}},{"code_sha256_prefix":"104ecf80bfd973ca","entry":"fetch_dataset","repo":"PaperCodeReview/SupCL-TF","repo_kind":"listed","path":"dataloader.py","file_url":"https://github.com/PaperCodeReview/SupCL-TF/blob/HEAD/dataloader.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":"104ecf80bfd973ca"}},{"code_sha256_prefix":"49df9db56daeba4a","entry":"get_fine_tuning_parameters","repo":"davidczy/supcon_gamma","repo_kind":"listed","path":"networks/ThreeDResnet.py","file_url":"https://github.com/davidczy/supcon_gamma/blob/HEAD/networks/ThreeDResnet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"49df9db56daeba4a"}},{"code_sha256_prefix":"e9cdcc13fe49820c","entry":"get_logger","repo":"PaperCodeReview/SupCL-TF","repo_kind":"listed","path":"common.py","file_url":"https://github.com/PaperCodeReview/SupCL-TF/blob/HEAD/common.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":"e9cdcc13fe49820c"}},{"code_sha256_prefix":"1fd4a495ba449048","entry":"read_img","repo":"alexk1704/scclv2","repo_kind":"listed","path":"src/cl_replay/api/utils/convert_ds.py","file_url":"https://github.com/alexk1704/scclv2/blob/HEAD/src/cl_replay/api/utils/convert_ds.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":"1fd4a495ba449048"}},{"code_sha256_prefix":"f4731b89be918d6f","entry":"read_labels","repo":"alexk1704/scclv2","repo_kind":"listed","path":"src/cl_replay/api/utils/convert_ds.py","file_url":"https://github.com/alexk1704/scclv2/blob/HEAD/src/cl_replay/api/utils/convert_ds.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":"f4731b89be918d6f"}},{"code_sha256_prefix":"d04d43e439b0324a","entry":"search_same","repo":"PaperCodeReview/SupCL-TF","repo_kind":"listed","path":"common.py","file_url":"https://github.com/PaperCodeReview/SupCL-TF/blob/HEAD/common.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":"d04d43e439b0324a"}},{"code_sha256_prefix":"221d06a1b512b025","entry":"set_dataset","repo":"PaperCodeReview/SupCL-TF","repo_kind":"listed","path":"dataloader.py","file_url":"https://github.com/PaperCodeReview/SupCL-TF/blob/HEAD/dataloader.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":"221d06a1b512b025"}},{"code_sha256_prefix":"2297ed2ca4911b7c","entry":"set_loader","repo":"XG293/SupConLoss","repo_kind":"listed","path":"main_ce.py","file_url":"https://github.com/XG293/SupConLoss/blob/HEAD/main_ce.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"2297ed2ca4911b7c"}},{"code_sha256_prefix":"750f33f8190dba7b","entry":"set_loader","repo":"davidczy/supcon_gamma","repo_kind":"listed","path":"main_supcon_thick.py","file_url":"https://github.com/davidczy/supcon_gamma/blob/HEAD/main_supcon_thick.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"750f33f8190dba7b"}},{"code_sha256_prefix":"852634a603bdd4fa","entry":"supervised_contrastive","repo":"PaperCodeReview/SupCL-TF","repo_kind":"listed","path":"loss.py","file_url":"https://github.com/PaperCodeReview/SupCL-TF/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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"852634a603bdd4fa"}},{"code_sha256_prefix":"18ee2c887bb737f7","entry":"train","repo":"raymin0223/self-contrastive-learning","repo_kind":"listed","path":"main_linear.py","file_url":"https://github.com/raymin0223/self-contrastive-learning/blob/HEAD/main_linear.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":"18ee2c887bb737f7"}},{"code_sha256_prefix":"5e3536a0b5948376","entry":"wrn28_10","repo":"XG293/SupConLoss","repo_kind":"listed","path":"networks/wide_resnet.py","file_url":"https://github.com/XG293/SupConLoss/blob/HEAD/networks/wide_resnet.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"5e3536a0b5948376"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}