{"id":18237482,"url":"https://github.com/cursedprograms/roop-faceswap","last_synced_at":"2025-04-04T05:33:30.442Z","repository":{"id":258793706,"uuid":"872188502","full_name":"CursedPrograms/Roop-FaceSwap","owner":"CursedPrograms","description":"Roop FaceSwap ","archived":false,"fork":false,"pushed_at":"2024-10-22T08:00:37.000Z","size":77,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-05T02:04:40.300Z","etag":null,"topics":["artificial-intelligence","deepfake","faceswap","faceswapai","python","roop","tensorflow"],"latest_commit_sha":null,"homepage":"https://cursedprograms.github.io/Roop-FaceSwap/","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/CursedPrograms.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":"2024-10-14T01:48:01.000Z","updated_at":"2024-10-22T08:00:41.000Z","dependencies_parsed_at":"2024-10-21T22:13:48.284Z","dependency_job_id":null,"html_url":"https://github.com/CursedPrograms/Roop-FaceSwap","commit_stats":null,"previous_names":["cursedprograms/roop-faceswap"],"tags_count":0,"template":false,"template_full_name":"CursedPrograms/Python-Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CursedPrograms%2FRoop-FaceSwap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CursedPrograms%2FRoop-FaceSwap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CursedPrograms%2FRoop-FaceSwap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CursedPrograms%2FRoop-FaceSwap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CursedPrograms","download_url":"https://codeload.github.com/CursedPrograms/Roop-FaceSwap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223100261,"owners_count":17087388,"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":["artificial-intelligence","deepfake","faceswap","faceswapai","python","roop","tensorflow"],"created_at":"2024-11-05T02:04:43.902Z","updated_at":"2024-11-05T02:04:44.626Z","avatar_url":"https://github.com/CursedPrograms.png","language":"Python","funding_links":["https://ko-fi.com/cursedentertainment"],"categories":[],"sub_categories":[],"readme":"[![Twitter: @NorowaretaGemu](https://img.shields.io/badge/X-@NorowaretaGemu-blue.svg?style=flat)](https://x.com/NorowaretaGemu)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://ko-fi.com/cursedentertainment\"\u003e\n    \u003cimg src=\"https://ko-fi.com/img/githubbutton_sm.svg\" alt=\"ko-fi\" style=\"width: 20%;\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"Python\" src=\"https://img.shields.io/badge/python%20-%23323330.svg?\u0026style=for-the-badge\u0026logo=python\u0026logoColor=white\"/\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"TensorFlow\" src=\"https://img.shields.io/badge/tensorflow%20-%23323330.svg?\u0026style=for-the-badge\u0026logo=tensorflow\u0026logoColor=white\"/\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003cimg alt=\"Git\" src=\"https://img.shields.io/badge/git%20-%23323330.svg?\u0026style=for-the-badge\u0026logo=git\u0026logoColor=white\"/\u003e\n  \u003cimg alt=\"PowerShell\" src=\"https://img.shields.io/badge/PowerShell-%23323330.svg?\u0026style=for-the-badge\u0026logo=powershell\u0026logoColor=white\"/\u003e\n  \u003cimg alt=\"Shell\" src=\"https://img.shields.io/badge/Shell-%23323330.svg?\u0026style=for-the-badge\u0026logo=gnu-bash\u0026logoColor=white\"/\u003e\n  \u003cimg alt=\"Batch\" src=\"https://img.shields.io/badge/Batch-%23323330.svg?\u0026style=for-the-badge\u0026logo=windows\u0026logoColor=white\"/\u003e\n  \u003c/div\u003e\n\u003cbr\u003e\n\n# Roop-FaceSwap\n\n## How to Run:\n\n### Install Requirements\n\nUsing Python directly:\n\n```bash\npip install -r requirements.txt\n```\nOr run: \n- `install_requirements.bat`\n\n  \n  \u003cbr\u003e\n\n### Run main.py\n\nUsing Python directly:\n\n```bash\npython main.py\n```\n\nUsing provided scripts:\n\nWindows:\n- `.\\run.bat`\nor\n- `.\\run.ps1`\n\nUnix-like systems (Linux/macOS):\n- `.\\run.sh`\n\n  \u003cbr\u003e\n\n## Requirements:\n\n```bash\n--extra-index-url https://download.pytorch.org/whl/cu118\n\nnumpy==1.24.3\nopencv-python==4.8.0.74\nonnx==1.14.0\ninsightface==0.7.3\npsutil==5.9.5\ntk==0.1.0\ncustomtkinter==5.2.0\ntkinterdnd2==0.3.0; sys_platform != 'darwin' and platform_machine != 'arm64'\ntkinterdnd2-universal==1.7.3; sys_platform == 'darwin' and platform_machine == 'arm64'\npillow==10.0.0\nonnxruntime==1.15.1; python_version != '3.9' and sys_platform == 'darwin' and platform_machine != 'arm64'\nonnxruntime-coreml==1.13.1; python_version == '3.9' and sys_platform == 'darwin' and platform_machine != 'arm64'\nonnxruntime-silicon==1.13.1; sys_platform == 'darwin' and platform_machine == 'arm64'\nonnxruntime-gpu==1.15.1; sys_platform != 'darwin'\ntensorflow==2.13.0\nopennsfw2==0.10.2\nprotobuf==4.23.4\ntqdm==4.65.0\ngfpgan==1.3.8\n```\n\n## Installation\n\n[Basic](https://github.com/s0md3v/roop/wiki/1.-Installation) - It is more likely to work on your computer, but will be quite slow\n\n[Acceleration](https://github.com/s0md3v/roop/wiki/2.-Acceleration) - Unleash the full potential of your CPU and GPU\n\n\n\u003cbr\u003e\n\n## Usage\n\nStart the program with arguments:\n\n```\npython run.py [options]\n\n-h, --help                                                                 show this help message and exit\n-s SOURCE_PATH, --source SOURCE_PATH                                       select an source image\n-t TARGET_PATH, --target TARGET_PATH                                       select an target image or video\n-o OUTPUT_PATH, --output OUTPUT_PATH                                       select output file or directory\n--frame-processor FRAME_PROCESSOR [FRAME_PROCESSOR ...]                    frame processors (choices: face_swapper, face_enhancer, ...)\n--keep-fps                                                                 keep target fps\n--keep-frames                                                              keep temporary frames\n--skip-audio                                                               skip target audio\n--many-faces                                                               process every face\n--reference-face-position REFERENCE_FACE_POSITION                          position of the reference face\n--reference-frame-number REFERENCE_FRAME_NUMBER                            number of the reference frame\n--similar-face-distance SIMILAR_FACE_DISTANCE                              face distance used for recognition\n--temp-frame-format {jpg,png}                                              image format used for frame extraction\n--temp-frame-quality [0-100]                                               image quality used for frame extraction\n--output-video-encoder {libx264,libx265,libvpx-vp9,h264_nvenc,hevc_nvenc}  encoder used for the output video\n--output-video-quality [0-100]                                             quality used for the output video\n--max-memory MAX_MEMORY                                                    maximum amount of RAM in GB\n--execution-provider {cpu} [{cpu} ...]                                     available execution provider (choices: cpu, ...)\n--execution-threads EXECUTION_THREADS                                      number of execution threads\n-v, --version                                                              show program's version number and exit\n```\n\n\u003cbr\u003e\n\n### Headless\n\nUsing the `-s/--source`, `-t/--target` and `-o/--output` argument will run the program in headless mode.\n\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n© Cursed Entertainment\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://cursed-entertainment.itch.io/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://github.com/CursedPrograms/cursedentertainment/raw/main/images/logos/logo-wide-grey.png\"\n        alt=\"CursedEntertainment Logo\" style=\"width:250px;\"\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcursedprograms%2Froop-faceswap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcursedprograms%2Froop-faceswap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcursedprograms%2Froop-faceswap/lists"}