GithubHelp home page GithubHelp logo

fuzzyfazzy / faceswap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vectorobject/faceswap

0.0 0.0 0.0 5.72 MB

A GUI for roop, supports replacing faces specified in videos

C++ 10.28% Python 9.40% C 0.41% Dart 74.18% CMake 5.62% Batchfile 0.12%

faceswap's Introduction

[English]|中文

A UI for roop

Features:

1. Support for images, gifs, videos

2. Allows swapping faces with specified faces

First run:

1. Make sure the roop project(version: 1.3.2) can run successfully.

2. Create a new folder, e.g., E:\ff (this path will be used throughout the instructions).

3. Download the faceswap release version and extract it to the folder: E:\ff\

As follows:
---E:\ff\
------faceswap\
---------faceswap.exe
------runServer.bat
------server.py

4. Move the server.py to the root directory of the roop project

5. Modify the runServer.bat according to your environment

For example, if you are using minoconda installed at G:\minoconda3\ , the content should be as follows:
chcp 65001>nul
call G:\miniconda3\Scripts\activate.bat G:\miniconda3
call conda activate roop
pushd D:\roop\roop
python -u server.py %1
You can use other methods as well as long as server.py runs correctly.

6. Run E:\ff\fceswap\fceswap.exe

If successful, a command prompt window will appear upon startup, as shown below:

If any other errors appear, check the configuration based on the provided instructions.

Usage:

1. Place your preferred images in E:\ff\images

2. Double-click to select the source and target image (or GIF/video)

3. Click [Detect Faces] for each image and wait for the faces to be marked

For GIFs or videos, clicking [Detect Faces] will capture frames at the current time point and then mark the faces. This allows extracting faces from multiple time points.

4. Double-click the faces you want to swap;they will be added to the list on the right.

5. Drag and adjust the order of faces in the list.

6. Click [Generate] to create the face-swapped result.

Debuging Python scripts:

1. Create a file: E:\ff\server_port.txt, and write a port number (53499) in the file.

2. Run server.py in debug mode using an IDE.

3. Run E:\ff\fceswap\fceswap.exe

Others

Flutter SDK Version:3.10.4

faceswap's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.