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.

dudeuber

Tier 3 Sub
Jun 25, 2023
16
356
534
0fya082315al84db03fa9bf467e3.png
I'm getting an error when running the rope bat "modulenotfounderror: no module named cv2" any ideas?
 

dudeuber

Tier 3 Sub
Jun 25, 2023
16
356
534
0fya082315al84db03fa9bf467e3.png
ok i take it back. following the video worked. all you have to do before this is download python and anaconda prompt then follow the video instructions.
 
Last edited:

bobjeff69

Lurker
Mar 14, 2022
1
0
58
0fya082315al84db03fa9bf467e3.png
Hi, im having an issue where my Source folder will not load any of the images I put in, I have tried both png and jpg. Any help?
 

JonasMan

Bathwater Drinker
Apr 4, 2023
16
6,366
1,234
0fya082315al84db03fa9bf467e3.png
Any help with this error?

C:\Windows\System32\Rope>call venv\Scripts\activate.bat
Traceback (most recent call last):
File "C:\Windows\System32\Rope\Rope.py", line 3, in <module>
from rope import Coordinator
File "C:\Windows\System32\Rope\rope\Coordinator.py", line 4, in <module>
import torch
ModuleNotFoundError: No module named 'torch'
Press any key to continue . . .

Using pip show torch command, it shows that torch is installed.

Name: torch
Version: 2.0.1+cu118
Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration
Home-page:
Please, Log in or Register to see links and images

Author: PyTorch Team
Author-email: packages@pytorch.org
License: BSD-3
Location: c:\users\user\appdata\local\programs\python\python310\lib\site-packages
Requires: filelock, jinja2, networkx, sympy, typing-extensions
Required-by: basicsr, clip, facexlib, gfpgan, open-clip-torch, torchaudio, torchvision
 

leersfan34

Lurker
Mar 14, 2022
1
1
58
0fya082315al84db03fa9bf467e3.png
Please, Log in or Register to see links and images


I see at the start of the thread it says you do not need a Nvidia GPU. But this prompts me after I double-click the rope.bat file asking me for a Nvidia GPU. Is there another way I am missing as to how to do it with AMD GPU's? Or is it simply strictly Nvidia as of right now?
 
  • Like
Reactions: alejandro0104

tremordick

Lurker
Mar 7, 2024
1
0
6
0fya082315al84db03fa9bf467e3.png
Please help. Error in Rope opal.3 when using GPFGAN:
Traceback (most recent call last):
File "D:\laragon\bin\python\python-3.10\lib\tkinter\__init__.py", line 1921, in __call__
return self.func(*args)
File "D:\laragon\bin\python\python-3.10\lib\tkinter\__init__.py", line 839, in callit
func(*args)
File "D:\Work\Projects\STD\Rope\rope\Coordinator.py", line 55, in coordinator
vm.get_requested_video_frame(action[0][1], marker=False)
File "D:\Work\Projects\STD\Rope\rope\VideoManager.py", line 228, in get_requested_video_frame
temp = [self.swap_video(target_image, self.current_frame, marker), self.current_frame] # temp = RGB
File "D:\Work\Projects\STD\Rope\rope\VideoManager.py", line 574, in swap_video
img = self.func_w_test("swap_video", self.swap_core, img, fface[0], s_e, parameters, control)
File "D:\Work\Projects\STD\Rope\rope\VideoManager.py", line 622, in func_w_test
result = func(*args, **argsv)
File "D:\Work\Projects\STD\Rope\rope\VideoManager.py", line 749, in swap_core
swap = self.func_w_test('Restorer', self.apply_restorer, swap, parameters)
File "D:\Work\Projects\STD\Rope\rope\VideoManager.py", line 622, in func_w_test
result = func(*args, **argsv)
File "D:\Work\Projects\STD\Rope\rope\VideoManager.py", line 1105, in apply_restorer
self.models.run_GFPGAN(temp, outpred)
File "D:\Work\Projects\STD\Rope\rope\Models.py", line 152, in run_GFPGAN
io_binding.bind_output(name='output', device_type='cuda', device_id=0, element_type=np.float32, shape=(1,3,512,512), buffer_ptr=output.data_ptr())
File "D:\laragon\bin\python\python-3.10\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 582, in bind_output
self._iobinding.bind_output(
RuntimeError: Failed to find NodeArg with name: output in the def list
 

coins

Casual
Dec 3, 2022
4
32
325
0fya082315al84db03fa9bf467e3.png
sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model)
onnxruntime.capi.onnxruntime_pybind11_state.NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from .\models\det_10g.onnx failed:Load model .\models\det_10g.onnx failed. File doesn't exist

I can't find source faces

I'm using Windows 10
 
  • Like
Reactions: mattakin2020

googly3

Lurker
Dec 6, 2023
1
0
78
0fya082315al84db03fa9bf467e3.png
Will this work on Intel GPU? Installed the CUDA and keep running into "no Nvidia driver" error on Anaconda prompt. Followed the video from a previous post. Everything was good until then
 

latinaover

Lurker
Apr 3, 2024
1
0
6
0fya082315al84db03fa9bf467e3.png
which visual studio do i need for this? im installing via winget and it tells me that it can't find the native desktop package and nothing is selected so i dont know which to pick, thanks