Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,269 +9,3 @@ colorFrom: indigo
|
|
| 9 |
pinned: false
|
| 10 |
short_description: R.U-CPU_4.4.1
|
| 11 |
---
|
| 12 |
-
|
| 13 |
-
# roop-unleashed
|
| 14 |
-
|
| 15 |
-
models download link
|
| 16 |
-
|
| 17 |
-
https://drive.google.com/file/d/1KJEkPCrZ1Ow9jAw43QBhL3tmL7MpqFw9/view?usp=drive_link
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
[Changelog](#changelog) • [Usage](#usage) • [Wiki](https://github.com/C0untFloyd/roop-unleashed/wiki)
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
Uncensored Deepfakes for images and videos without training and an easy-to-use GUI.
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-

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