{"id":48242524,"url":"https://github.com/ibonn/faceswap_gl","last_synced_at":"2026-04-04T20:20:07.911Z","repository":{"id":46879075,"uuid":"423442716","full_name":"ibonn/faceswap_gl","owner":"ibonn","description":"Face swap using Python + OpenGL","archived":false,"fork":false,"pushed_at":"2022-08-21T13:36:15.000Z","size":7438,"stargazers_count":13,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T21:44:13.523Z","etag":null,"topics":["face","face-swap","face-swapping","faceswap","opengl","python"],"latest_commit_sha":null,"homepage":"","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/ibonn.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":"2021-11-01T11:38:19.000Z","updated_at":"2024-12-12T14:32:38.000Z","dependencies_parsed_at":"2022-07-26T16:02:33.192Z","dependency_job_id":null,"html_url":"https://github.com/ibonn/faceswap_gl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ibonn/faceswap_gl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibonn%2Ffaceswap_gl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibonn%2Ffaceswap_gl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibonn%2Ffaceswap_gl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibonn%2Ffaceswap_gl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibonn","download_url":"https://codeload.github.com/ibonn/faceswap_gl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibonn%2Ffaceswap_gl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31412472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["face","face-swap","face-swapping","faceswap","opengl","python"],"created_at":"2026-04-04T20:20:07.731Z","updated_at":"2026-04-04T20:20:07.836Z","avatar_url":"https://github.com/ibonn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# faceswap_gl\nFace swap using Python + OpenGL\n\n![Demo gif](images/demo.gif)\n\nThis implementation finds facial landmarks on both the source and destination images, and  generates a texture to be used on a 3D model of the face. This Model is then positioned over the destination image using the landmarks.\n\n| Source | Destination | Texture | 3D face | Result |\n| ------ | ------- | ----------- | ------------------ | ------ |\n| ![Source image](images/src.jpg) | ![Destination image](images/dst.png) | ![Texture generated from source image](images/texture.png) | ![Texture applied to 3D model positioned according to the face on the destination image](images/3dface.png) | ![Face swap result](images/result.png) |\n\n## Installation\n\nClone the repo\n```\ngit clone https://github.com/ibonn/faceswap_gl.git\n```\n\nInstall required modules\n```\ncd faceswap_gl/\npip install -r requirements.txt\n```\n\n## Usage\n\nBasic usage\n```\npython swap.py -s \u003cSRC_PATH\u003e -d \u003cDST_PATH\u003e -o \u003cOUT_PATH\u003e\n```\n\nMore options:\n* **-s/--src**: Path to the source image  \n* **-d/--dst**: Path to the destination image/video\n* **-o/--output**: Output path\n* **-t/--texture**: Size of the texture. The lower the value the faster the program starts (but the source face resolution is lower). Defaults to 256px\n* **-b/--border**: Padding size. Not implemented yet\n* **-m/--mask**: Output a video with the mask\n\nExample:\n```\npython swap.py -s tomhanks.jpg -d dicaprio.mp4 -o out.mp4 -t 1024\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibonn%2Ffaceswap_gl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibonn%2Ffaceswap_gl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibonn%2Ffaceswap_gl/lists"}