{"id":16649922,"url":"https://github.com/griffintaur/clda_neurips21","last_synced_at":"2025-06-26T06:35:23.483Z","repository":{"id":88357179,"uuid":"520397068","full_name":"Griffintaur/CLDA_NeurIPS21","owner":"Griffintaur","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-06T13:09:50.000Z","size":2622,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T20:59:00.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Griffintaur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-02T07:31:03.000Z","updated_at":"2024-10-16T12:16:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0fbd1ad-0718-40bc-96e5-fc837b308e59","html_url":"https://github.com/Griffintaur/CLDA_NeurIPS21","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Griffintaur/CLDA_NeurIPS21","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Griffintaur%2FCLDA_NeurIPS21","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Griffintaur%2FCLDA_NeurIPS21/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Griffintaur%2FCLDA_NeurIPS21/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Griffintaur%2FCLDA_NeurIPS21/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Griffintaur","download_url":"https://codeload.github.com/Griffintaur/CLDA_NeurIPS21/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Griffintaur%2FCLDA_NeurIPS21/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262016402,"owners_count":23245512,"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":[],"created_at":"2024-10-12T09:14:16.492Z","updated_at":"2025-06-26T06:35:23.430Z","avatar_url":"https://github.com/Griffintaur.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## CLDA: Contrastive Learning for Semi-Supervised Domain Adaptation [[Paper]](https://arxiv.org/abs/2107.00085) [[Website]](https://griffintaur.github.io/CLDA_NeurIPS/)\n\nThis repository contains the implementation details of our CLDA: Contrastive Learning for Semi-Supervised Domain Adaptation (CLDA) approach for domain adaptation in images.\n\nAnkit Singh , \"CLDA: Contrastive Learning for Semi-Supervised Domain Adaptation\"\n\nIf you use the codes and models from this repo, please cite our work. Thanks!\n\n```\n@inproceedings{\nsingh2021clda,\ntitle={{CLDA}: Contrastive Learning for Semi-Supervised Domain Adaptation},\nauthor={Ankit Singh},\nbooktitle={Advances in Neural Information Processing Systems},\neditor={A. Beygelzimer and Y. Dauphin and P. Liang and J. Wortman Vaughan},\nyear={2021},\nurl={https://openreview.net/forum?id=1ODSsnoMBav}\n}\n```\n\n## Acknowledgments\nThe implementation is built on the pytorch implementation of [SSDA_MME](https://github.com/VisionLearningGroup/SSDA_MME) and [APE](https://github.com/TKKim93/APE)\n\n### Dataset Structure\nYou can download the datasets by following the instructions in [SSDA_MME](https://github.com/VisionLearningGroup/SSDA_MME).\n```\ndata---\n     |\n   multi---\n     |   |\n     |  Real\n     |  Clipart\n     |  Product\n     |  Real\n   office_home---\n     |         |\n     |        Art\n     |        Clipart\n     |        Product\n     |        Real\n   office---\n     |    |\n     |   amazon\n     |   dslr\n     |   webcam\n   txt---\n       | \n      multi---\n       |    |\n       |   labeled_source_images_real.txt\n       |   unlabeled_target_images_real_3.txt\n       |   labeled_target_images_real_3.txt         \n       |   unlabeled_source_images_sketch.txt\n       |                  ...\n      office---\n       |     |\n       |   labeled_source_images_amazon.txt\n       |   unlabeled_target_images_amazon_3.txt\n       |   labeled_target_images_amazon_3.txt         \n       |   unlabeled_source_images_webcam.txt\n       |                  ...\n      office_home---\n                  |\n                 ...       \n```\n\n### Example\n#### Train\n* DomainNet (clipart, painting, real, sketch)\n```\npython clda_final.py --dataset multi --source real --target sketch --save_interval 500 --steps 50000 --net resnet34 --num 3 --save_check\n```\n* Office-home (Art, Clipart, Product, Real)\n* Office (amazon, dslr, webcam)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgriffintaur%2Fclda_neurips21","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgriffintaur%2Fclda_neurips21","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgriffintaur%2Fclda_neurips21/lists"}