Boka73 commited on
Commit
de5caa2
·
verified ·
1 Parent(s): d0e50cb

update Readme.md

Browse files
Files changed (1) hide show
  1. README.md +238 -20
README.md CHANGED
@@ -1,27 +1,245 @@
1
- # Roop-Unleashed
 
 
 
 
 
 
 
 
 
 
 
2
 
3
- Roop-Unleashed is a Gradio-powered interface for advanced face swapping and live camera experimentation.
4
- This Space makes it easy to run the app directly in your browser without local setup.
5
 
6
- ---
7
 
8
- ## 🚀 Features
9
- - **FaceSwap Tab** – Swap faces in images or videos.
10
- - **LiveCam Tab** – Real-time face swapping with your webcam.
11
- - **Face Manager** – Manage and organize faces for reuse.
12
- - **Extras** – Additional utilities and experimental tools.
13
- - **Settings** – Configure GPU/CPU provider, themes, and server options.
14
 
15
- ---
16
 
17
- ## ⚙️ Configuration
18
- The app supports several runtime options:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
- - `--share` : Enable Gradio public share link (temporary `.gradio.live` URL).
21
- - `--port` : Specify custom server port.
22
- - `--theme` : Choose UI theme.
23
- - `--provider` : Select execution provider (`cpu`, `cuda`).
 
 
 
 
 
24
 
25
- Example:
26
- ```bash
27
- python app.py --share --provider cuda --port 7860
 
1
+ ---
2
+ title: Roop_unleashed4.3.2
3
+ emoji: 💩
4
+ colorFrom: green
5
+ colorTo: blue
6
+ sdk: gradio
7
+ sdk_version: 5.4.0
8
+ app_file: run.py
9
+ pinned: false
10
+ license: apache-2.0
11
+ ---
12
+ # roop-unleashed
13
 
14
+ [Changelog](#changelog) [Usage](#usage) [Wiki](https://github.com/C0untFloyd/roop-unleashed/wiki)
 
15
 
 
16
 
17
+ Uncensored Deepfakes for images and videos without training and an easy-to-use GUI.
 
 
 
 
 
18
 
 
19
 
20
+ ![Screen](https://github.com/C0untFloyd/roop-unleashed/assets/131583554/6ee6860d-efbe-4337-8c62-a67598863637)
21
+
22
+ ### Features
23
+
24
+ - Platform-independant Browser GUI
25
+ - Selection of multiple input/output faces in one go
26
+ - Many different swapping modes, first detected, face selections, by gender
27
+ - Batch processing of images/videos
28
+ - Masking of face occluders using text prompts or automatically
29
+ - Optional Face Upscaler/Restoration using different enhancers
30
+ - Preview swapping from different video frames
31
+ - Live Fake Cam using your webcam
32
+ - Extras Tab for cutting videos etc.
33
+ - Settings - storing configuration for next session
34
+ - Theme Support
35
+
36
+ and lots more...
37
+
38
+
39
+ ## Disclaimer
40
+
41
+ This project is for technical and academic use only.
42
+ Users of this software are expected to use this software responsibly while abiding the local law. If a face of a real person is being used, users are suggested to get consent from the concerned person and clearly mention that it is a deepfake when posting content online. Developers of this software will not be responsible for actions of end-users.
43
+ **Please do not apply it to illegal and unethical scenarios.**
44
+
45
+ In the event of violation of the legal and ethical requirements of the user's country or region, this code repository is exempt from liability
46
+
47
+ ### Installation
48
+
49
+ Please refer to the [wiki](https://github.com/C0untFloyd/roop-unleashed/wiki).
50
+
51
+ #### macOS Installation
52
+ Simply run the following command. It will check and install all dependencies if necessary.
53
+
54
+ `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/PJF16/roop-unleashed/master/installer/macOSinstaller.sh)`
55
+
56
+
57
+
58
+ ### Usage
59
+
60
+ - Windows: run the `windows_run.bat` from the Installer.
61
+ - Linux: `python run.py`
62
+ - macOS: `sh runMacOS.sh`
63
+ - Dockerfile:
64
+ ```shell
65
+ docker build -t roop-unleashed . && docker run -t \
66
+ -p 7860:7860 \
67
+ -v ./config.yaml:/app/config.yaml \
68
+ -v ./models:/app/models \
69
+ -v ./temp:/app/temp \
70
+ -v ./output:/app/output \
71
+ roop-unleashed
72
+ ```
73
+
74
+ <a target="_blank" href="https://colab.research.google.com/github/C0untFloyd/roop-unleashed/blob/main/roop-unleashed.ipynb">
75
+ <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
76
+ </a>
77
+
78
+
79
+ Additional commandline arguments are currently unsupported and settings should be done via the UI.
80
+
81
+ > Note: When you run this program for the first time, it will download some models roughly ~2Gb in size.
82
+
83
+
84
+
85
+
86
+ ### Changelog
87
+
88
+ **28.9.2024** v4.3.1
89
+
90
+ - Bugfix: Several possible memory leaks
91
+ - Added different output modes, e.g. to virtual cam stream
92
+ - New swapping mode "All input faces"
93
+ - Average total fps displayed and setting for autorun
94
+
95
+
96
+ **16.9.2024** v4.2.8
97
+
98
+ - Bugfix: Starting roop-unleashed without NVIDIA gpu but cuda option enabled
99
+ - Bugfix: Target Faces couldn't be moved left/right
100
+ - Bugfix: Enhancement and upscaling working again in virtual cam
101
+ - Corrupt videos caught when adding to target files, displaying warning msg
102
+ - Source Files Component cleared after face detection to release temp files
103
+ - Added masking and mouth restore options to virtual cam
104
+
105
+
106
+ **9.9.2024** v4.2.3
107
+
108
+ - Hotfix for gradio pydantic issue with fastapi
109
+ - Upgraded to Gradio 4.43 hoping it will fix remaining issues
110
+ - Added new action when no face detected -> use last swapped
111
+ - Specified image format for image controls - opening new tabs on preview images possible again!
112
+ - Hardcoded image output format for livecam to jpeg - might be faster than previous webp
113
+ - Chain events to be only executed if previous was a success
114
+
115
+
116
+ **5.9.2024** v4.2.0
117
+
118
+ - Added ability to move input & target faces order
119
+ - New CLI Arguments override settings
120
+ - Small UI changes to faceswapping tab
121
+ - Added mask option and code for restoration of original mouth area
122
+ - Updated gradio to v4.42.0
123
+ - Added CLI Arguments --server_share and --cuda_device_id
124
+ - Added webp image support
125
+
126
+
127
+ **15.07.2024** v4.1.1
128
+
129
+ - Bugfix: Post-processing after swapping
130
+
131
+
132
+ **14.07.2024** v4.1.0
133
+
134
+ - Added subsample upscaling to increase swap resolution
135
+ - Upgraded gradio
136
+
137
+
138
+ **12.05.2024** v4.0.0
139
+
140
+ - Bugfix: Unnecessary init every frame in live-cam
141
+ - Bugfix: Installer downloading insightface package each run
142
+ - Added xseg masking to live-cam
143
+ - Added realesrganx2 to frame processors
144
+ - Upgraded some requirements
145
+ - Added subtypes and different model support to frame processors
146
+ - Allow frame processors to change resolutions of videos
147
+ - Different OpenCV Cap for MacOS Virtual Cam
148
+ - Added complete frame processing to extras tab
149
+ - Colorize, upscale and misc filters added
150
+
151
+
152
+ **22.04.2024** v3.9.0
153
+
154
+ - Bugfix: Face detection bounding box corrupt values at weird angles
155
+ - Rewrote mask previewing to work with every model
156
+ - Switching mask engines toggles text interactivity
157
+ - Clearing target files, resets face selection dropdown
158
+ - Massive rewrite of swapping architecture, needed for xseg implementation
159
+ - Added DFL Xseg Support for partial face occlusion
160
+ - Face masking only runs when there is a face detected
161
+ - Removed unnecessary toggle checkbox for text masking
162
+
163
+
164
+ **22.03.2024** v3.6.5
165
+
166
+ - Bugfix: Installer pulling latest update on first installation
167
+ - Bugfix: Regression issue, blurring/erosion missing from face swap
168
+ - Exposed erosion and blur amounts to UI
169
+ - Using same values for manual masking too
170
+
171
+
172
+ **20.03.2024** v3.6.3
173
+
174
+ - Bugfix: Workaround for Gradio Slider Change Bug
175
+ - Bugfix: CSS Styling to fix Gradio Image Height Bug
176
+ - Made face swapping mask offsets resolution independant
177
+ - Show offset mask as overlay
178
+ - Changed layout for masking
179
+
180
+
181
+ **18.03.2024** v3.6.0
182
+
183
+ - Updated to Gradio 4.21.0 - requiring many changes under the hood
184
+ - New manual masking (draw the mask yourself)
185
+ - Extras Tab, streamlined cutting/joining videos
186
+ - Re-added face selection by gender (on-demand loading, default turned off)
187
+ - Removed unnecessary activate live-cam option
188
+ - Added time info to preview frame and changed frame slider event to allow faster changes
189
+
190
+
191
+ **10.03.2024** v3.5.5
192
+
193
+ - Bugfix: Installer Path Env
194
+ - Bugfix: file attributes
195
+ - Video processing checks for presence of ffmpeg and displays warning if not found
196
+ - Removed gender + age detection to speed up processing. Option removed from UI
197
+ - Replaced restoreformer with restoreformer++
198
+ - Live Cam recoded to run separate from virtual cam and without blocking controls
199
+ - Swapping with only 1 target face allows selecting from several input faces
200
+
201
+
202
+
203
+ **08.01.2024** v3.5.0
204
+
205
+ - Bugfix: wrong access options when creating folders
206
+ - New auto rotation of horizontal faces, fixing bad landmark positions (expanded on ![PR 364](https://github.com/C0untFloyd/roop-unleashed/pull/364))
207
+ - Simple VR Option for stereo Images/Movies, best used in selected face mode
208
+ - Added RestoreFormer Enhancer - https://github.com/wzhouxiff/RestoreFormer
209
+ - Bumped up package versions for onnx/Torch etc.
210
+
211
+
212
+ **16.10.2023** v3.3.4
213
+
214
+ **11.8.2023** v2.7.0
215
+
216
+ Initial Gradio Version - old TkInter Version now deprecated
217
+
218
+ - Re-added unified padding to face enhancers
219
+ - Fixed DMDNet for all resolutions
220
+ - Selecting target face now automatically switches swapping mode to selected
221
+ - GPU providers are correctly set using the GUI (needs restart currently)
222
+ - Local output folder can be opened from page
223
+ - Unfinished extras functions disabled for now
224
+ - Installer checks out specific commit, allowing to go back to first install
225
+ - Updated readme for new gradio version
226
+ - Updated Colab
227
+
228
+
229
+ # Acknowledgements
230
+
231
+ Lots of ideas, code or pre-trained models borrowed from the following projects:
232
 
233
+ https://github.com/deepinsight/insightface<br />
234
+ https://github.com/s0md3v/roop<br />
235
+ https://github.com/AUTOMATIC1111/stable-diffusion-webui<br />
236
+ https://github.com/Hillobar/Rope<br />
237
+ https://github.com/TencentARC/GFPGAN<br />
238
+ https://github.com/kadirnar/codeformer-pip<br />
239
+ https://github.com/csxmli2016/DMDNet<br />
240
+ https://github.com/glucauze/sd-webui-faceswaplab<br />
241
+ https://github.com/ykk648/face_power<br />
242
 
243
+ <br />
244
+ <br />
245
+ Thanks to all developers!