[vc_row][vc_column][vc_headings linewidth=”0″ borderwidth=”1″ borderclr=”#000000″ title=”Roop” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” titlesize=”60″ titleclr=”#000000″]One-Click DeepFake[/vc_headings][vc_single_image image=”3056″ alignment=”center”][vc_column_text]Roop Deepfake is a tool that lets you swap faces in videos with just one image of the desired face. You don’t need to collect many images or train a model to do this. You need to run a Python script and select the face and the target video. Roop Deepfake will do the rest for you. It uses a library called insightface and some models to detect and replace faces. You can also use GPU acceleration to speed up the process. Roop Deepfake is an experimental project that aims to make deepfake technology more accessible and easy to use.[/vc_column_text][vc_separator color=”turquoise”][/vc_column][/vc_row][vc_row][vc_column][vc_headings style=”theme4″ borderclr=”#000000″ style2=”image” title=”How To Install Roop Deepkafe” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” lineheight=”3″ titlesize=”40″ titleclr=”#000000″ image_id=”2854″][/vc_headings][vc_column_text]
1- Basic Installation
- install
python(ifneed, installpiptoo) - install
git - install
ffmpeg - If you are using Windows, you have to install Visual Studio 2022 (with desktop development C++).
git clone https://github.com/s0md3v/roopcd roop && pip install -r requirements.txt- Download this file and keep it in roop directory. Mirror #1, Mirror #2, Mirror #3, Mirror #4. Rename the downloaded file to
inswapper_128.onnxif it isn’t already named.
Done. You should be able to use this tool with the command: python run.py.[/vc_column_text][vc_column_text]
1- GPU Acceleration Installation
AMD
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.4.2pip uninstall onnxruntimegit clone https://github.com/microsoft/onnxruntime && cd onnxruntime./build.sh --config Release --build_wheel --update --build --parallel --cmake_extra_defines CMAKE_PREFIX_PATH=/opt/rocm/lib/cmake ONNXRUNTIME_VERSION=$ONNXRUNTIME_VERSION onnxruntime_BUILD_UNIT_TESTS=off --use_rocm --rocm_home=/opt/rocmpip install build/Linux/Release/dist/*.whl
[/vc_column_text][vc_message]This guide is for linux users only. Windows does not support AMD GPUs.[/vc_message][vc_column_text]
NVIDIA
Linux
- install CUDA toolkit from here
- install CUDNN from here
pip uninstall onnxruntime onnxruntime-gpupip install torch torchvision torchaudio --force-reinstall --index-url https://download.pytorch.org/whl/cu118pip install onnxruntime-gpu
Mac
brew install wget cmake protobuf git git-lfsgit clone https://github.com/cansik/onnxruntime-silicon && cd onnxruntime-silicon./build-macos.shpip install dist/*whl(Depending on the situation, you may have to adapt this step accordingly.)
[/vc_column_text][vc_column_text]
Intel
pip uninstall onnxruntime- install the intel-specific onnxruntime called OpenVINO
[/vc_column_text][vc_separator color=”peacoc” border_width=”2″][/vc_column][/vc_row][vc_row][vc_column][vc_headings style=”theme4″ borderclr=”#000000″ style2=”image” title=”How Roop Works” google_fonts=”font_family:Comfortaa%3A300%2Cregular%2C700|font_style:700%20bold%20regular%3A700%3Anormal” lineheight=”3″ titlesize=”40″ titleclr=”#000000″ image_id=”2854″][/vc_headings][vc_column_text]To start this window, run the command: python run.py
[/vc_column_text][vc_column_text]To swap faces on photos or videos, follow these steps:
- Select a face photo (the one you want to use as a replacement) and a target photo or video (the one you want to change the face on).
- Click on Start and wait for the AI to process your request.
- Find the output file in the folder you chose. The folder name will be the same as the target file name.
- Enjoy your face-swapped result!
[/vc_column_text][vc_message message_box_color=”warning” icon_fontawesome=”fas fa-exclamation-triangle”]Changing the FPS option can cause problems if you are not familiar with it.[/vc_message][vc_column_text]
Some of the additional command-line arguments that you can use are::
options:
-h, --help show this help message and exit
-f SOURCE_IMG, --face SOURCE_IMG
use this face
-t TARGET_PATH, --target TARGET_PATH
replace this face
-o OUTPUT_FILE, --output OUTPUT_FILE
save output to this file
--gpu use gpu
--keep-fps maintain original fps
--keep-frames keep frames directory
--max-memory MAX_MEMORY
maximum amount of RAM in GB to be used
--max-cores CORES_COUNT
number of cores to be use for CPU mode
To run the program without a graphical interface, you can use the -f or –face argument. This will enable the CLI mode.
[/vc_column_text][vc_message]The Roop AI requires some models to function properly. They will be downloaded automatically the first time you execute Roop tool. The total size of the models is about 300MB.[/vc_message][vc_btn title=”Project Page” color=”inverse” align=”center” i_align=”right” i_icon_fontawesome=”fab fa-github” add_icon=”true” link=”url:https%3A%2F%2Fgithub.com%2Fs0md3v%2Froop”][vc_btn title=”Project Demos” color=”danger” align=”center” i_align=”right” i_icon_fontawesome=”far fa-play-circle” add_icon=”true” link=”url:https%3A%2F%2Fdrive.google.com%2Fdrive%2Ffolders%2F1KHv8n_rd3Lcr2v7jBq1yPSTWM554Gq8e%3Fusp%3Dsharing”][/vc_column][/vc_row]



how to unistall it?