Spaces:
Running
Running
Moibe
commited on
Commit
•
677afe9
1
Parent(s):
46b866d
Instrucciones agregadas
Browse files- instrucciones.md +76 -0
instrucciones.md
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Based9Based version of ROOP, No NSFW Filter, No ERRORS ;)
|
2 |
+
Google Colab Link: [Click here](https://basedbased.blogspot.com/2023/08/google-colab-for-deepfake-face-swapping.html)
|
3 |
+
|
4 |
+
# Roop
|
5 |
+
|
6 |
+
> Take a video and replace the face in it with a face of your choice. You only need one image of the desired face. No dataset, no training.
|
7 |
+
|
8 |
+
[![Build Status](https://img.shields.io/github/actions/workflow/status/s0md3v/roop/ci.yml.svg?branch=main)](https://github.com/s0md3v/roop/actions?query=workflow:ci)
|
9 |
+
|
10 |
+
## Installation
|
11 |
+
|
12 |
+
Be aware, the installation needs technical skills and is not for beginners. Please do not open platform and installation related issues on GitHub. We have a very helpful.
|
13 |
+
|
14 |
+
[Basic](https://github.com/s0md3v/roop/wiki/1.-Installation) - It is more likely to work on your computer, but will be quite slow
|
15 |
+
|
16 |
+
[Acceleration](https://github.com/s0md3v/roop/wiki/2.-Acceleration) - Unleash the full potential of your CPU and GPU
|
17 |
+
|
18 |
+
|
19 |
+
## Usage
|
20 |
+
|
21 |
+
Start the program with arguments:
|
22 |
+
|
23 |
+
```
|
24 |
+
python run.py [options]
|
25 |
+
|
26 |
+
-h, --help show this help message and exit
|
27 |
+
-s SOURCE_PATH, --source SOURCE_PATH select an source image
|
28 |
+
-t TARGET_PATH, --target TARGET_PATH select an target image or video
|
29 |
+
-o OUTPUT_PATH, --output OUTPUT_PATH select output file or directory
|
30 |
+
--frame-processor FRAME_PROCESSOR [FRAME_PROCESSOR ...] frame processors (choices: face_swapper, face_enhancer, ...)
|
31 |
+
--keep-fps keep target fps
|
32 |
+
--keep-frames keep temporary frames
|
33 |
+
--skip-audio skip target audio
|
34 |
+
--many-faces process every face
|
35 |
+
--reference-face-position REFERENCE_FACE_POSITION position of the reference face
|
36 |
+
--reference-frame-number REFERENCE_FRAME_NUMBER number of the reference frame
|
37 |
+
--similar-face-distance SIMILAR_FACE_DISTANCE face distance used for recognition
|
38 |
+
--temp-frame-format {jpg,png} image format used for frame extraction
|
39 |
+
--temp-frame-quality [0-100] image quality used for frame extraction
|
40 |
+
--output-video-encoder {libx264,libx265,libvpx-vp9,h264_nvenc,hevc_nvenc} encoder used for the output video
|
41 |
+
--output-video-quality [0-100] quality used for the output video
|
42 |
+
--max-memory MAX_MEMORY maximum amount of RAM in GB
|
43 |
+
--execution-provider {cpu} [{cpu} ...] available execution provider (choices: cpu, ...)
|
44 |
+
--execution-threads EXECUTION_THREADS number of execution threads
|
45 |
+
-v, --version show program's version number and exit
|
46 |
+
```
|
47 |
+
|
48 |
+
|
49 |
+
### Headless
|
50 |
+
|
51 |
+
Using the `-s/--source`, `-t/--target` and `-o/--output` argument will run the program in headless mode.
|
52 |
+
|
53 |
+
|
54 |
+
## Disclaimer
|
55 |
+
|
56 |
+
This software is designed to contribute positively to the AI-generated media industry, assisting artists with tasks like character animation and models for clothing.
|
57 |
+
|
58 |
+
We are aware of the potential ethical issues and have implemented measures to prevent the software from being used for inappropriate content, such as nudity.
|
59 |
+
|
60 |
+
Users are expected to follow local laws and use the software responsibly. If using real faces, get consent and clearly label deepfakes when sharing. The developers aren't liable for user actions.
|
61 |
+
|
62 |
+
|
63 |
+
## Licenses
|
64 |
+
|
65 |
+
Our software uses a lot of third party libraries as well pre-trained models. The users should keep in mind that these third party components have their own license and terms, therefore our license is not being applied.
|
66 |
+
|
67 |
+
|
68 |
+
## Credits
|
69 |
+
|
70 |
+
- [deepinsight](https://github.com/deepinsight) for their [insightface](https://github.com/deepinsight/insightface) project which provided a well-made library and models.
|
71 |
+
- all developers behind the libraries used in this project
|
72 |
+
|
73 |
+
|
74 |
+
## Documentation
|
75 |
+
|
76 |
+
Read the [documentation](https://github.com/s0md3v/roop/wiki) for a deep dive.
|