{"id":13564746,"url":"https://github.com/clcarwin/sphereface_pytorch","last_synced_at":"2025-04-03T21:31:53.962Z","repository":{"id":25732045,"uuid":"104969676","full_name":"clcarwin/sphereface_pytorch","owner":"clcarwin","description":"A PyTorch Implementation of SphereFace.","archived":false,"fork":false,"pushed_at":"2022-02-01T20:56:10.000Z","size":21620,"stargazers_count":715,"open_issues_count":33,"forks_count":172,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-11-04T18:44:54.313Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clcarwin.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}},"created_at":"2017-09-27T03:53:12.000Z","updated_at":"2024-10-09T02:57:12.000Z","dependencies_parsed_at":"2022-07-27T05:32:07.948Z","dependency_job_id":null,"html_url":"https://github.com/clcarwin/sphereface_pytorch","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/clcarwin%2Fsphereface_pytorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clcarwin%2Fsphereface_pytorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clcarwin%2Fsphereface_pytorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clcarwin%2Fsphereface_pytorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clcarwin","download_url":"https://codeload.github.com/clcarwin/sphereface_pytorch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247083732,"owners_count":20880899,"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-08-01T13:01:35.309Z","updated_at":"2025-04-03T21:31:48.952Z","avatar_url":"https://github.com/clcarwin.png","language":"Python","funding_links":[],"categories":["Python","Paper implementations｜论文实现","Paper implementations"],"sub_categories":["Other libraries｜其他库:","Other libraries:"],"readme":"# SphereFace\nA PyTorch Implementation of SphereFace.\nThe code can be trained on CASIA-Webface and the best accuracy on LFW is **99.22%**.\n\n[SphereFace: Deep Hypersphere Embedding for Face Recognition](https://arxiv.org/abs/1704.08063)\n\n# Train\n```\npython train.py\n```\n\n# Test\n```\n# lfw.tgz to lfw.zip\ntar zxf lfw.tgz; cd lfw; zip -r ../lfw.zip *; cd ..\n\n# lfw evaluation\npython lfw_eval.py --model model/sphere20a_20171020.pth\n```\n\n# Pre-trained models\n| Model name      | LFW accuracy | Training dataset |\n|-----------------|--------------|------------------|\n| [20171020](model/sphere20a_20171020.7z) | 0.9922 | CASIA-WebFace |\n\n# φ\n![equation](https://latex.codecogs.com/gif.latex?phi%28x%29%3D%5Cleft%28-1%5Cright%29%5Ek%5Ccdot%20%5Ccos%20%5Cleft%28x%5Cright%29-2%5Ccdot%20k)\n\n![equation](https://latex.codecogs.com/gif.latex?myphi(x)=1-\\frac{x^2}{2!}+\\frac{x^4}{4!}-\\frac{x^6}{6!}+\\frac{x^8}{8!}-\\frac{x^9}{9!})\n\n![phi](images/phi.png)\n\n# References\n[sphereface](https://github.com/wy1iu/sphereface)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclcarwin%2Fsphereface_pytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclcarwin%2Fsphereface_pytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclcarwin%2Fsphereface_pytorch/lists"}