Boka73 commited on
Commit
4c35d22
·
verified ·
1 Parent(s): 5b6035c

update README.md

Browse files
Files changed (1) hide show
  1. README.md +269 -0
README.md CHANGED
@@ -1,3 +1,272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # roop-unleashed
2
 
3
  This is **unofficial** mirror of repository
 
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
+ Note: # Roop-Unleashed (Hugging Face Space)
48
+
49
+ This Space runs Roop-Unleashed with a Gradio interface.
50
+
51
+ ---
52
+
53
+ ## ⚙️ Runtime Configuration
54
+
55
+ We explicitly set the Python runtime to **3.10** using a `runtime.txt` file:
56
+
57
+ ### Why Python 3.10?
58
+ - Hugging Face Spaces default to Python 3.13.
59
+ - Several dependencies (e.g., `torch==2.1.2`, `numpy==1.26.4`) do not yet provide wheels for Python 3.13.
60
+ - For compatibility and stability, we pinned the runtime to Python 3.10, which is widely supported by ML libraries.
61
+
62
+ ---
63
+
64
+ ## 📦 Dependencies
65
+
66
+ All dependencies are pinned in `requirements.txt` to avoid conflicts:
67
+
68
+
69
+
70
+
71
+ ### Installation
72
+
73
+ Please refer to the [wiki](https://github.com/C0untFloyd/roop-unleashed/wiki).
74
+
75
+ #### macOS Installation
76
+ Simply run the following command. It will check and install all dependencies if necessary.
77
+
78
+ `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/PJF16/roop-unleashed/master/installer/macOSinstaller.sh)`
79
+
80
+
81
+
82
+ ### Usage
83
+
84
+ - Windows: run the `windows_run.bat` from the Installer.
85
+ - Linux: `python run.py`
86
+ - macOS: `sh runMacOS.sh`
87
+ - Dockerfile:
88
+ ```shell
89
+ docker build -t roop-unleashed . && docker run -t \
90
+ -p 7860:7860 \
91
+ -v ./config.yaml:/app/config.yaml \
92
+ -v ./models:/app/models \
93
+ -v ./temp:/app/temp \
94
+ -v ./output:/app/output \
95
+ roop-unleashed
96
+ ```
97
+
98
+ <a target="_blank" href="https://colab.research.google.com/github/C0untFloyd/roop-unleashed/blob/main/roop-unleashed.ipynb">
99
+ <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
100
+ </a>
101
+
102
+
103
+ Additional commandline arguments are currently unsupported and settings should be done via the UI.
104
+
105
+ > Note: When you run this program for the first time, it will download some models roughly ~2Gb in size.
106
+
107
+
108
+
109
+
110
+ ### Changelog
111
+
112
+ **28.9.2024** v4.3.1
113
+
114
+ - Bugfix: Several possible memory leaks
115
+ - Added different output modes, e.g. to virtual cam stream
116
+ - New swapping mode "All input faces"
117
+ - Average total fps displayed and setting for autorun
118
+
119
+
120
+ **16.9.2024** v4.2.8
121
+
122
+ - Bugfix: Starting roop-unleashed without NVIDIA gpu but cuda option enabled
123
+ - Bugfix: Target Faces couldn't be moved left/right
124
+ - Bugfix: Enhancement and upscaling working again in virtual cam
125
+ - Corrupt videos caught when adding to target files, displaying warning msg
126
+ - Source Files Component cleared after face detection to release temp files
127
+ - Added masking and mouth restore options to virtual cam
128
+
129
+
130
+ **9.9.2024** v4.2.3
131
+
132
+ - Hotfix for gradio pydantic issue with fastapi
133
+ - Upgraded to Gradio 4.43 hoping it will fix remaining issues
134
+ - Added new action when no face detected -> use last swapped
135
+ - Specified image format for image controls - opening new tabs on preview images possible again!
136
+ - Hardcoded image output format for livecam to jpeg - might be faster than previous webp
137
+ - Chain events to be only executed if previous was a success
138
+
139
+
140
+ **5.9.2024** v4.2.0
141
+
142
+ - Added ability to move input & target faces order
143
+ - New CLI Arguments override settings
144
+ - Small UI changes to faceswapping tab
145
+ - Added mask option and code for restoration of original mouth area
146
+ - Updated gradio to v4.42.0
147
+ - Added CLI Arguments --server_share and --cuda_device_id
148
+ - Added webp image support
149
+
150
+
151
+ **15.07.2024** v4.1.1
152
+
153
+ - Bugfix: Post-processing after swapping
154
+
155
+
156
+ **14.07.2024** v4.1.0
157
+
158
+ - Added subsample upscaling to increase swap resolution
159
+ - Upgraded gradio
160
+
161
+
162
+ **12.05.2024** v4.0.0
163
+
164
+ - Bugfix: Unnecessary init every frame in live-cam
165
+ - Bugfix: Installer downloading insightface package each run
166
+ - Added xseg masking to live-cam
167
+ - Added realesrganx2 to frame processors
168
+ - Upgraded some requirements
169
+ - Added subtypes and different model support to frame processors
170
+ - Allow frame processors to change resolutions of videos
171
+ - Different OpenCV Cap for MacOS Virtual Cam
172
+ - Added complete frame processing to extras tab
173
+ - Colorize, upscale and misc filters added
174
+
175
+
176
+ **22.04.2024** v3.9.0
177
+
178
+ - Bugfix: Face detection bounding box corrupt values at weird angles
179
+ - Rewrote mask previewing to work with every model
180
+ - Switching mask engines toggles text interactivity
181
+ - Clearing target files, resets face selection dropdown
182
+ - Massive rewrite of swapping architecture, needed for xseg implementation
183
+ - Added DFL Xseg Support for partial face occlusion
184
+ - Face masking only runs when there is a face detected
185
+ - Removed unnecessary toggle checkbox for text masking
186
+
187
+
188
+ **22.03.2024** v3.6.5
189
+
190
+ - Bugfix: Installer pulling latest update on first installation
191
+ - Bugfix: Regression issue, blurring/erosion missing from face swap
192
+ - Exposed erosion and blur amounts to UI
193
+ - Using same values for manual masking too
194
+
195
+
196
+ **20.03.2024** v3.6.3
197
+
198
+ - Bugfix: Workaround for Gradio Slider Change Bug
199
+ - Bugfix: CSS Styling to fix Gradio Image Height Bug
200
+ - Made face swapping mask offsets resolution independant
201
+ - Show offset mask as overlay
202
+ - Changed layout for masking
203
+
204
+
205
+ **18.03.2024** v3.6.0
206
+
207
+ - Updated to Gradio 4.21.0 - requiring many changes under the hood
208
+ - New manual masking (draw the mask yourself)
209
+ - Extras Tab, streamlined cutting/joining videos
210
+ - Re-added face selection by gender (on-demand loading, default turned off)
211
+ - Removed unnecessary activate live-cam option
212
+ - Added time info to preview frame and changed frame slider event to allow faster changes
213
+
214
+
215
+ **10.03.2024** v3.5.5
216
+
217
+ - Bugfix: Installer Path Env
218
+ - Bugfix: file attributes
219
+ - Video processing checks for presence of ffmpeg and displays warning if not found
220
+ - Removed gender + age detection to speed up processing. Option removed from UI
221
+ - Replaced restoreformer with restoreformer++
222
+ - Live Cam recoded to run separate from virtual cam and without blocking controls
223
+ - Swapping with only 1 target face allows selecting from several input faces
224
+
225
+
226
+
227
+ **08.01.2024** v3.5.0
228
+
229
+ - Bugfix: wrong access options when creating folders
230
+ - New auto rotation of horizontal faces, fixing bad landmark positions (expanded on ![PR 364](https://github.com/C0untFloyd/roop-unleashed/pull/364))
231
+ - Simple VR Option for stereo Images/Movies, best used in selected face mode
232
+ - Added RestoreFormer Enhancer - https://github.com/wzhouxiff/RestoreFormer
233
+ - Bumped up package versions for onnx/Torch etc.
234
+
235
+
236
+ **16.10.2023** v3.3.4
237
+
238
+ **11.8.2023** v2.7.0
239
+
240
+ Initial Gradio Version - old TkInter Version now deprecated
241
+
242
+ - Re-added unified padding to face enhancers
243
+ - Fixed DMDNet for all resolutions
244
+ - Selecting target face now automatically switches swapping mode to selected
245
+ - GPU providers are correctly set using the GUI (needs restart currently)
246
+ - Local output folder can be opened from page
247
+ - Unfinished extras functions disabled for now
248
+ - Installer checks out specific commit, allowing to go back to first install
249
+ - Updated readme for new gradio version
250
+ - Updated Colab
251
+
252
+
253
+ # Acknowledgements
254
+
255
+ Lots of ideas, code or pre-trained models borrowed from the following projects:
256
+
257
+ https://github.com/deepinsight/insightface<br />
258
+ https://github.com/s0md3v/roop<br />
259
+ https://github.com/AUTOMATIC1111/stable-diffusion-webui<br />
260
+ https://github.com/Hillobar/Rope<br />
261
+ https://github.com/TencentARC/GFPGAN<br />
262
+ https://github.com/kadirnar/codeformer-pip<br />
263
+ https://github.com/csxmli2016/DMDNet<br />
264
+ https://github.com/glucauze/sd-webui-faceswaplab<br />
265
+ https://github.com/ykk648/face_power<br />
266
+
267
+ <br />
268
+ <br />
269
+ Thanks to all developers!
270
  # roop-unleashed
271
 
272
  This is **unofficial** mirror of repository