GithubHelp home page GithubHelp logo

vectorobject / faceswap Goto Github PK

View Code? Open in Web Editor NEW
62.0 3.0 12.0 5.72 MB

A GUI for roop, supports replacing faces specified in videos

License: MIT License

Dart 74.13% Batchfile 0.12% Python 9.46% CMake 5.62% C++ 10.27% C 0.40%
faceswap roop

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

Contributors

vectorobject avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

faceswap's Issues

Not working

I couldn't get this to work. Shame its not just a simple UI rather than using servers etc.

Video Time Selection

Hi~ Is there any plan for basic selecting the range of video that would be swapped and output?

Rope UI

Can you make a UI for Rope project ?
thanks

AttributeError: module 'roop.globals' has no attribute 'temp_frame_quality'

Hi @vectorobject

I am getting this error once I click on "Generate".

Traceback (most recent call last): File "D:\roop-main\server.py", line 150, in do_POST evalResult=eval("self.func_"+post_data) File "<string>", line 1, in <module> File "D:\roop-main\server.py", line 184, in func_swap_video extract_frames(target_path,temp_output_dir,fps) File "D:\roop-main\server.py", line 20, in extract_frames temp_frame_quality = roop.globals.temp_frame_quality * 31 // 100 AttributeError: module 'roop.globals' has no attribute 'temp_frame_quality' 127.0.0.1 - - [08/Aug/2023 20:44:33] "POST / HTTP/1.1" 200 - [Response] {'code': -2, 'errMsg': "module 'roop.globals' has no attribute 'temp_frame_quality'", 'result': None} [Request] swap_video([{'file':r'D:\faceswap\faceswap_release_1.0.0\images\sisi.jpg','face':0}],[{'file':r'D:\faceswap\faceswap_release_1.0.0\temp\1691549017511.png','face':1}],r'D:\faceswap\faceswap_release_1.0.0\images\Untitled video (3).mp4',r'D:\faceswap\faceswap_release_1.0.0\output\14555.mp4',False,0.3)

Any idea?

Thanks

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.