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