[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-589":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":38,"readmeContent":39,"aiSummary":40,"trendingCount":16,"starSnapshotCount":16,"syncStatus":41,"lastSyncTime":42,"discoverSource":43},589,"faceswap","deepfakes\u002Ffaceswap","deepfakes","Deepfakes Software For All","https:\u002F\u002Fwww.faceswap.dev",null,"Python",55268,13364,1517,6,0,9,43,1,45,"GNU General Public License v3.0",false,"master",true,[26,27,28,29,7,30,31,5,32,33,34,35,36,37],"deep-face-swap","deep-learning","deep-neural-networks","deepface","deeplearning","face-swap","fakeapp","machine-learning","myfakeapp","neural-nets","neural-networks","openfaceswap","2026-06-12 02:00:15","# deepfakes_faceswap\n\n### Important information for **Patreon** and **PayPal** supporters. Please see this forum post: https:\u002F\u002Fforum.faceswap.dev\u002Fviewtopic.php?f=14&t=3120\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Ffaceswap.dev\">\u003Cimg src=\"https:\u002F\u002Fi.imgur.com\u002FzHvjHnb.png\">\u003C\u002Fimg>\u003C\u002Fa>\n\u003Cbr \u002F>FaceSwap is a tool that utilizes deep learning to recognize and swap faces in pictures and videos.\n\u003C\u002Fp>\n\u003Cp align=\"center\">\n\u003Cimg src = \"https:\u002F\u002Fi.imgur.com\u002FnWHFLDf.jpg\">\u003C\u002Fimg>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n\u003Ca href=\"https:\u002F\u002Fwww.patreon.com\u002FbePatron?u=23238350\">\u003Cimg src=\"https:\u002F\u002Fc5.patreon.com\u002Fexternal\u002Flogo\u002Fbecome_a_patron_button.png\">\u003C\u002Fimg>\u003C\u002Fa>\n&nbsp;&nbsp;&nbsp;&nbsp;\u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002FFC54sYg\">\u003Cimg src=\"https:\u002F\u002Fi.imgur.com\u002FgIpztkv.png\">\u003C\u002Fimg>\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fwww.dailymotion.com\u002Fvideo\u002Fx810mot\">\u003Cimg src=\"https:\u002F\u002Fuser-images.githubusercontent.com\u002F36920800\u002F178301720-b69841bb-a1ca-4c20-91db-a2a10f5692ca.png\">\u003C\u002Fimg>\u003C\u002Fa>\n\u003Cbr \u002F>Emma Stone\u002FScarlett Johansson FaceSwap using the Phaze-A model\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=r1jng79a5xc\">\u003Cimg src=\"https:\u002F\u002Fimg.youtube.com\u002Fvi\u002Fr1jng79a5xc\u002F0.jpg\">\u003C\u002Fimg>\u003C\u002Fa>\n\u003Cbr \u002F>Jennifer Lawrence\u002FSteve Buscemi FaceSwap using the Villain model\n\u003C\u002Fp>\n\n\n![Build Status](https:\u002F\u002Fgithub.com\u002Fdeepfakes\u002Ffaceswap\u002Factions\u002Fworkflows\u002Fpytest.yml\u002Fbadge.svg) [![Documentation Status](https:\u002F\u002Freadthedocs.org\u002Fprojects\u002Ffaceswap\u002Fbadge\u002F?version=latest)](https:\u002F\u002Ffaceswap.readthedocs.io\u002Fen\u002Flatest\u002F?badge=latest)\n\nMake sure you check out [INSTALL.md](INSTALL.md) before getting started.\n\n- [deepfakes\\_faceswap](#deepfakes_faceswap)\n    - [Important information for **Patreon** and **PayPal** supporters. Please see this forum post: https:\u002F\u002Fforum.faceswap.dev\u002Fviewtopic.php?f=14\\&t=3120](#important-information-for-patreon-and-paypal-supporters-please-see-this-forum-post-httpsforumfaceswapdevviewtopicphpf14t3120)\n- [Manifesto](#manifesto)\n  - [FaceSwap has ethical uses.](#faceswap-has-ethical-uses)\n- [How To setup and run the project](#how-to-setup-and-run-the-project)\n- [Overview](#overview)\n  - [Extract](#extract)\n  - [Train](#train)\n  - [Convert](#convert)\n  - [GUI](#gui)\n- [General notes:](#general-notes)\n- [Help I need support!](#help-i-need-support)\n  - [Discord Server](#discord-server)\n  - [FaceSwap Forum](#faceswap-forum)\n- [Donate](#donate)\n  - [Patreon](#patreon)\n  - [One time Donations](#one-time-donations)\n    - [@torzdf](#torzdf)\n    - [@andenixa](#andenixa)\n- [How to contribute](#how-to-contribute)\n  - [For people interested in the generative models](#for-people-interested-in-the-generative-models)\n  - [For devs](#for-devs)\n  - [For non-dev advanced users](#for-non-dev-advanced-users)\n  - [For end-users](#for-end-users)\n- [About machine learning](#about-machine-learning)\n  - [How does a computer know how to recognize\u002Fshape faces? How does machine learning work? What is a neural network?](#how-does-a-computer-know-how-to-recognizeshape-faces-how-does-machine-learning-work-what-is-a-neural-network)\n\n# Manifesto\n\n## FaceSwap has ethical uses.\n\nWhen faceswapping was first developed and published, the technology was groundbreaking, it was a huge step in AI development. It was also completely ignored outside of academia because the code was confusing and fragmentary. It required a thorough understanding of complicated AI techniques and took a lot of effort to figure it out. Until one individual brought it together into a single, cohesive collection. It ran, it worked, and as is so often the way with new technology emerging on the internet, it was immediately used to create inappropriate content. Despite the inappropriate uses the software was given originally, it was the first AI code that anyone could download, run and learn by experimentation without having a Ph.D. in math, computer theory, psychology, and more. Before \"deepfakes\" these techniques were like black magic, only practiced by those who could understand all of the inner workings as described in esoteric and endlessly complicated books and papers.\n\n\"Deepfakes\" changed all that and anyone could participate in AI development. To us, developers, the release of this code opened up a fantastic learning opportunity. It allowed us to build on ideas developed by others, collaborate with a variety of skilled coders, experiment with AI whilst learning new skills and ultimately contribute towards an emerging technology which will only see more mainstream use as it progresses.\n\nAre there some out there doing horrible things with similar software? Yes. And because of this, the developers have been following strict ethical standards. Many of us don't even use it to create videos, we just tinker with the code to see what it does. Sadly, the media concentrates only on the unethical uses of this software. That is, unfortunately, the nature of how it was first exposed to the public, but it is not representative of why it was created, how we use it now, or what we see in its future. Like any technology, it can be used for good or it can be abused. It is our intention to develop FaceSwap in a way that its potential for abuse is minimized whilst maximizing its potential as a tool for learning, experimenting and, yes, for legitimate faceswapping.\n\nWe are not trying to denigrate celebrities or to demean anyone. We are programmers, we are engineers, we are Hollywood VFX artists, we are activists, we are hobbyists, we are human beings. To this end, we feel that it's time to come out with a standard statement of what this software is and isn't as far as us developers are concerned.\n\n- FaceSwap is not for creating inappropriate content.\n- FaceSwap is not for changing faces without consent or with the intent of hiding its use.\n- FaceSwap is not for any illicit, unethical, or questionable purposes.\n- FaceSwap exists to experiment and discover AI techniques, for social or political commentary, for movies, and for any number of ethical and reasonable uses.\n\nWe are very troubled by the fact that FaceSwap can be used for unethical and disreputable things. However, we support the development of tools and techniques that can be used ethically as well as provide education and experience in AI for anyone who wants to learn it hands-on. We will take a zero tolerance approach to anyone using this software for any unethical purposes and will actively discourage any such uses.\n\n# How To setup and run the project\nFaceSwap is a Python program that will run on multiple Operating Systems including Windows, Linux, and MacOS.\n\nSee [INSTALL.md](INSTALL.md) for full installation instructions. You will need a modern GPU with CUDA support for best performance. Many AMD GPUs are supported through ROCm (Linux).\n\n# Overview\nThe project has multiple entry points. You will have to:\n - Gather photos and\u002For videos\n - **Extract** faces from your raw photos\n - **Train** a model on the faces extracted from the photos\u002Fvideos\n - **Convert** your sources with the model\n\nCheck out [USAGE.md](USAGE.md) for more detailed instructions.\n\n## Extract\nFrom your setup folder, run `python faceswap.py extract`. This will take photos from `src` folder and extract faces into `extract` folder.\n\n## Train\nFrom your setup folder, run `python faceswap.py train`. This will take photos from two folders containing pictures of both faces and train a model that will be saved inside the `models` folder.\n\n## Convert\nFrom your setup folder, run `python faceswap.py convert`. This will take photos from `original` folder and apply new faces into `modified` folder.\n\n## GUI\nAlternatively, you can run the GUI by running `python faceswap.py gui`\n\n# General notes:\n- All of the scripts mentioned have `-h`\u002F`--help` options with arguments that they will accept. You're smart, you can figure out how this works, right?!\n\nNB: there is a conversion tool for video. This can be accessed by running `python tools.py effmpeg -h`. Alternatively, you can use [ffmpeg](https:\u002F\u002Fwww.ffmpeg.org) to convert video into photos, process images, and convert images back to the video.\n\n\n**Some tips:**\n\nReusing existing models will train much faster than starting from nothing.\nIf there is not enough training data, start with someone who looks similar, then switch the data.\n\n# Help I need support!\n## Discord Server\nYour best bet is to join the [FaceSwap Discord server](https:\u002F\u002Fdiscord.gg\u002FFC54sYg) where there are plenty of users willing to help. Please note that, like this repo, this is a SFW Server!\n\n## FaceSwap Forum\nAlternatively, you can post questions in the [FaceSwap Forum](https:\u002F\u002Ffaceswap.dev\u002Fforum). Please do not post general support questions in this repo as they are liable to be deleted without response.\n\n# Donate\nThe developers work tirelessly to improve and develop FaceSwap. Many hours have been put in to provide the software as it is today, but this is an extremely time-consuming process with no financial reward. If you enjoy using the software, please consider donating to the devs, so they can spend more time implementing improvements.\n\n## Patreon\nThe best way to support us is through our Patreon page:\n\n[![become-a-patron](https:\u002F\u002Fc5.patreon.com\u002Fexternal\u002Flogo\u002Fbecome_a_patron_button.png)](https:\u002F\u002Fwww.patreon.com\u002FbePatron?u=23238350)\n\n## One time Donations\nAlternatively you can give a one off donation to any of our Devs:\n### @torzdf\n There is very little FaceSwap code that hasn't been touched by torzdf. He is responsible for implementing the GUI, FAN aligner, MTCNN detector and porting the Villain, DFL-H128 and DFaker models to FaceSwap, as well as significantly improving many areas of the code.\n\n**Bitcoin:** bc1qpm22suz59ylzk0j7qk5e4c7cnkjmve2rmtrnc6\n\n**Ethereum:** 0xd3e954dC241B87C4E8E1A801ada485DC1d530F01\n\n**Monero:** 45dLrtQZ2pkHizBpt3P3yyJKkhcFHnhfNYPMSnz3yVEbdWm3Hj6Kr5TgmGAn3Far8LVaQf1th2n3DJVTRkfeB5ZkHxWozSX\n\n**Paypal:** [![torzdf](https:\u002F\u002Fwww.paypalobjects.com\u002Fen_GB\u002Fi\u002Fbtn\u002Fbtn_donate_SM.gif)](https:\u002F\u002Fwww.paypal.com\u002Fcgi-bin\u002Fwebscr?cmd=_s-xclick&hosted_button_id=JZ8PP3YE9J62L)\n\n### @andenixa\nCreator of the Unbalanced and OHR models, as well as expanding various capabilities within the training process. Andenixa is currently working on new models and will take requests for donations.\n\n**Paypal:** [![andenixa](https:\u002F\u002Fwww.paypalobjects.com\u002Fen_GB\u002Fi\u002Fbtn\u002Fbtn_donate_SM.gif)](https:\u002F\u002Fwww.paypal.com\u002Fcgi-bin\u002Fwebscr?cmd=_s-xclick&hosted_button_id=NRVLQYGS6NWTU)\n\n# How to contribute\n\n## For people interested in the generative models\n - Go to the 'faceswap-model' to discuss\u002Fsuggest\u002Fcommit alternatives to the current algorithm.\n\n## For devs\n - Read this README entirely\n - Fork the repo\n - Play with it\n - Check issues with the 'dev' tag\n - For devs more interested in computer vision and openCV, look at issues with the 'opencv' tag. Also feel free to add your own alternatives\u002Fimprovements\n\n## For non-dev advanced users\n - Read this README entirely\n - Clone the repo\n - Play with it\n - Check issues with the 'advuser' tag\n - Also go to the '[faceswap Forum](https:\u002F\u002Ffaceswap.dev\u002Fforum)' and help others.\n\n## For end-users\n - Get the code here and play with it if you can\n - You can also go to the [faceswap Forum](https:\u002F\u002Ffaceswap.dev\u002Fforum) and help or get help from others.\n - Be patient. This is a relatively new technology for developers as well. Much effort is already being put into making this program easy to use for the average user. It just takes time!\n - **Notice** Any issue related to running the code has to be opened in the [faceswap Forum](https:\u002F\u002Ffaceswap.dev\u002Fforum)!\n\n# About machine learning\n\n## How does a computer know how to recognize\u002Fshape faces? How does machine learning work? What is a neural network?\nIt's complicated. Here's a good video that makes the process understandable:\n[![How Machines Learn](https:\u002F\u002Fimg.youtube.com\u002Fvi\u002FR9OHn5ZF4Uo\u002F0.jpg)](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=R9OHn5ZF4Uo)\n\nHere's a slightly more in depth video that tries to explain the basic functioning of a neural network:\n[![How Machines Learn](https:\u002F\u002Fimg.youtube.com\u002Fvi\u002FaircAruvnKk\u002F0.jpg)](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=aircAruvnKk)\n\ntl;dr: training data + trial and error\n","FaceSwap 是一款利用深度学习技术实现图片和视频中人脸替换的软件。其核心功能包括从媒体文件中提取人脸、训练模型以及进行人脸转换，支持多种先进的深度神经网络模型以提高人脸交换的真实度与自然性。该项目采用 Python 编写，并提供图形用户界面（GUI），使得非专业用户也能较为容易地使用。FaceSwap 适用于需要进行创意内容制作、影视特效处理等场景，同时也为研究者提供了探索深度学习在图像处理领域应用的机会。请注意，在使用此类技术时应当遵守相关法律法规并考虑伦理问题。",2,"2026-06-11 02:37:52","top_all"]