Guide Fake Video Face Swap (moderate complexity, Rope)

  • Welcome to the Fakes / AI / Deepfakes category
    When posting AI generated content please include prompts used where possible.

Axelhart69

Casual
Feb 26, 2023
19
28
329
0fya082315al84db03fa9bf467e3.png
Newest version of rope has 256 and 512 upscaler included! Depending on your source and destination quality one of the four upscalers will look the best.

But i have the feeling, that face mask placement got worse, could not compare it yet but it feels like swapped faces look weird way faster if head is turning up, down or to the sides.
 

thebadbone

Tier 2 Sub
Mar 17, 2022
19
197
384
0fya082315al84db03fa9bf467e3.png
Any idea how I can improve performance? I had to install OS from scratch and ROPE is very slow now while it used to be at a decent speed prior to OS install. Running a RTX3070 + 32 GB + R7 5700x on W10 X64.
 
  • Like
Reactions: jj1888

thebadbone

Tier 2 Sub
Mar 17, 2022
19
197
384
0fya082315al84db03fa9bf467e3.png
I think I did install everything, if not I guess the command window would show errors as I can use GCFCAP and the Occluder without any issues, it's just the poor performance that bugs me. I have a 4 number of threads set there but I don't know how much should I use, is it GPU or CPU dependent?
 

edharrislives

Lurker
Dec 22, 2023
3
11
123
0fya082315al84db03fa9bf467e3.png
C:\Users\Ed\Rope>rope.bat

C:\Users\Ed\Rope>call venv\Scripts\activate.bat
Traceback (most recent call last):
File "C:\Users\Ed\Rope\Rope.py", line 5, in <module>
Coordinator.run()
File "C:\Users\Ed\Rope\rope\Coordinator.py", line 260, in run
vm = VM.VideoManager()
File "C:\Users\Ed\Rope\rope\VideoManager.py", line 139, in __init__
self.syncvec = torch.empty((1,1), dtype=torch.float32, device=device)
File "C:\Users\Ed\Rope\venv\lib\site-packages\torch\cuda\__init__.py", line 247, in _lazy_init
torch._C._cuda_init()
RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from
Please, Log in or Register to see links and images

Press any key to continue . . .

------------------------------------------------------------
Hello, thanks for sharing this method. But I get the above error. I thought this worked without a GPU? Can you please help? Thank you.
 

backuppd

Lurker
Dec 14, 2023
6
1
51
0fya082315al84db03fa9bf467e3.png
Everything works fine for me, but when it comes to recording the result after swapping faces, as soon as I press the record button, the recording stops at 0.2 or 0.5 seconds and videos with that duration are saved in the output folder. What can it be?
 

backuppd

Lurker
Dec 14, 2023
6
1
51
0fya082315al84db03fa9bf467e3.png
Does anyone know why this error happens?

C:\Users\back\Desktop\Rope-main>call venv\Scripts\activate.bat
The system cannot find the specified path.

C:\Users\back\Desktop\Rope-main>python Rope.py
Traceback (most recent call last):
File "C:\Users\back\Desktop\Rope-main\Rope.py", line 3, in <module>
from rope import Coordinator
File "C:\Users\back\Desktop\Rope-main\rope\Coordinator.py", line 6, in <module>
import rope.GUI as GUI
File "C:\Users\back\Desktop\Rope-main\rope\GUI.py", line 2, in <module>
import cv2
ModuleNotFoundError: No module named 'cv2'

C:\Users\back\Desktop\Rope-main>pause
Press any key to continue. . .
 

ghibit

Casual
Apr 14, 2022
20
40
77
0fya082315al84db03fa9bf467e3.png
Please, Log in or Register to view quotes
I kept getting the same 'no module named cv2' error. I tried installing roop on 3 different systems (win & linux) and always got the same error. In the end i installed it successfully on win using the following guide:



But since then I also tried using Pinokio and also Visions of Chaos. I have stuck with VoC as you can run Roop, facefusion, Stable diffusion, TTS and many other programs easily from it.