{"id":18167187,"url":"https://github.com/nakahiro1206/realtimefaceswap","last_synced_at":"2026-01-21T02:33:05.601Z","repository":{"id":242743240,"uuid":"810417129","full_name":"nakahiro1206/RealTimeFaceSwap","owner":"nakahiro1206","description":"real-time face swap with insightface","archived":false,"fork":false,"pushed_at":"2024-10-07T00:10:48.000Z","size":24558,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-22T21:24:41.353Z","etag":null,"topics":["codeformer","insightface","opencv-python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nakahiro1206.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-06-04T16:51:38.000Z","updated_at":"2024-10-20T15:14:42.000Z","dependencies_parsed_at":"2024-07-31T17:12:20.617Z","dependency_job_id":"87fb7f40-d139-462a-9e05-5bdb75be8261","html_url":"https://github.com/nakahiro1206/RealTimeFaceSwap","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.1875,"last_synced_commit":"61ae9b93e286265640a3027cdf0db8154e534cad"},"previous_names":["nakahiro1206/realtimefaceswap"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nakahiro1206/RealTimeFaceSwap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakahiro1206%2FRealTimeFaceSwap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakahiro1206%2FRealTimeFaceSwap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakahiro1206%2FRealTimeFaceSwap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakahiro1206%2FRealTimeFaceSwap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nakahiro1206","download_url":"https://codeload.github.com/nakahiro1206/RealTimeFaceSwap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakahiro1206%2FRealTimeFaceSwap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28623286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"online","status_checked_at":"2026-01-21T02:00:08.227Z","response_time":86,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["codeformer","insightface","opencv-python","python3"],"created_at":"2024-11-02T13:07:00.294Z","updated_at":"2026-01-21T02:33:05.587Z","avatar_url":"https://github.com/nakahiro1206.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RealTimeFaceSwap\n### Overview\nThis project is about face-swapping processing in video.\nInspirations are [iperov/DeepFaceLive](https://github.com/iperov/DeepFaceLive) and [haofanwang/inswapper](https://github.com/haofanwang/inswapper).\n\n### Adopted techniques\n* Face detection \u0026 face swapping: [deepinsight/insightface](https://github.com/deepinsight/insightface)\n    * The model used for swapping is [ezioruan/inswapper_128.onnx](https://huggingface.co/ezioruan/inswapper_128.onnx)\n* Upsampling of swapped images: [sczhou/CodeFormer](https://github.com/sczhou/CodeFormer)\n\n### Demonstration\nSuppose you want to swap your face with the image below, \n\n![input](https://github.com/nakahiro1206/RealTimeFaceSwap/blob/main/faceImages/female1.jpg)\n\nSource by [Pexels.com](https://www.pexels.com/search/woman/)\n\nInsightFace recognizes your face and replaces yours to the input image.\n\n![swapped](https://github.com/nakahiro1206/RealTimeFaceSwap/blob/main/assets/swap.png)\n\nThe swapped image is a little rough and CodeFormers upsamples face area.\n\n![res](https://github.com/nakahiro1206/RealTimeFaceSwap/blob/main/assets/out.png)\n\n### Source code\nSome codes are borrowed from [sczhou/CodeFormer](https://github.com/sczhou/CodeFormer)\n- ```basicsr/```\n- ```facelib/```\n- ```weights/```\n- ```FaceRestorationHelperWrapper.py``` largely stems from ```inference_codeformer.py```\n\n### Installation of the required packages\n```pip install opencv-python torch torchvision insightface```\n\n### Ref. useful pre-trained models worth trying(I did not though)\n[Releases/Sapphire](https://github.com/Hillobar/Rope/releases/tag/Sapphire)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakahiro1206%2Frealtimefaceswap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnakahiro1206%2Frealtimefaceswap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakahiro1206%2Frealtimefaceswap/lists"}