{"id":18949947,"url":"https://github.com/salesforce/comatch","last_synced_at":"2025-04-15T14:45:41.014Z","repository":{"id":40624579,"uuid":"342144805","full_name":"salesforce/CoMatch","owner":"salesforce","description":"Code for CoMatch: Semi-supervised Learning with Contrastive Graph Regularization","archived":false,"fork":false,"pushed_at":"2021-10-12T19:06:44.000Z","size":508,"stargazers_count":127,"open_issues_count":6,"forks_count":24,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-09T23:04:42.151Z","etag":null,"topics":["contrastive-learning","representation-learning","self-supervised-learning","semi-supervised-learning"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/salesforce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null}},"created_at":"2021-02-25T06:24:12.000Z","updated_at":"2025-02-27T07:30:21.000Z","dependencies_parsed_at":"2022-08-09T23:50:43.691Z","dependency_job_id":null,"html_url":"https://github.com/salesforce/CoMatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salesforce%2FCoMatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salesforce%2FCoMatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salesforce%2FCoMatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salesforce%2FCoMatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salesforce","download_url":"https://codeload.github.com/salesforce/CoMatch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249093373,"owners_count":21211693,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contrastive-learning","representation-learning","self-supervised-learning","semi-supervised-learning"],"created_at":"2024-11-08T13:19:49.693Z","updated_at":"2025-04-15T14:45:40.982Z","avatar_url":"https://github.com/salesforce.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## CoMatch: Semi-supervised Learning with Contrastive Graph Regularization, ICCV 2021 (Salesforce Research).\n\u003cimg src=\"comatch.gif\" width=\"600\"\u003e\n\nThis is a PyTorch implementation of the \u003ca href=\"https://arxiv.org/abs/2011.11183\"\u003eCoMatch paper\u003c/a\u003e \u003ca href=\"https://blog.einstein.ai/comatch-advancing-semi-supervised-learning-with-contrastive-graph-regularization/\"\u003e[Blog]\u003c/a\u003e:\n\u003cpre\u003e\n@inproceedings{CoMatch,\n\ttitle={Semi-supervised Learning with Contrastive Graph Regularization},\n\tauthor={Junnan Li and Caiming Xiong and Steven C.H. Hoi},\n\tbooktitle={ICCV},\n\tyear={2021}\n}\u003c/pre\u003e\n\n### Requirements:\n* PyTorch ≥ 1.4\n* pip install tensorboard_logger\n* download and extract \u003ca href=\"https://www.cs.toronto.edu/~kriz/cifar.html\"\u003ecifar-10 dataset\u003c/a\u003e into ./data/ \n\nTo perform semi-supervised learning on CIFAR-10 with 4 labels per class, run:\n\u003cpre\u003epython Train_CoMatch.py --n-labeled 40 --seed 1 \u003c/pre\u003e \n\nThe results using different random seeds are:\n\nseed| 1 | 2 | 3 | 4 | 5 | avg \n--- | --- | --- | --- | --- | --- | --- \naccuracy|93.71|94.10|92.93|90.73|93.97|93.09\n\n### ImageNet\nFor ImageNet experiments, see ./imagenet/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalesforce%2Fcomatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalesforce%2Fcomatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalesforce%2Fcomatch/lists"}