Skip to main content

Tutorial: How to use Google Colab Based9Based Roop to make Deepfakes and do Face Swapping

Tutorial: How to use Google Colab Based9Based Roop

Google Colab Based9Based Roop Link: Click here


Step 1: Run the first cell by Clicking on "[ ]" or the play button ▶️. It will take about 2 minutes to complete.



Then, it will show this error below.


You have to click on [Restart Runtime] then, click on "Yes". Wait for 10 sec.


Then Re-run the first Cell by clicking on "[ ]" or the play button ▶️.
Now it will take 5-6 seconds to complete.

Step 2: Now Upload your files. Click on the Folder Icon and then click on the Upload Files Icon.



Then, chose the Image (.jpg) and Video (.mp4) Files.

1st File you will need is a ".jpg" file which will be the Photo that you want to deepfake into the video. (ONLY ONE PHOTO IS NEEDED).

2nd File you will need is the video (in .mp4 format) that you want that person's photo to be deepfaked into. (ONLY ONE VIDEO NEEDED).

REMEMBER: Longer and heavier files take more time to Deepfake and process.

Step 3: Run the Second Cell, "Download Model" by clicking on the "[ ]" or the play button ▶️.


It will take few seconds to complete and then it will show a Green Check Mark showing the process has been completed.

Step 4: Change the file names in the last "Deepfake" cell.


Change the file name "Vid1.mp4" to your own video file name with ".mp4" at the end and Change the Photo file name from "A.jpg" to your own Photo file name.

Step 5: Click on "[ ]" or the play button ▶️ to the final "Deepfake" cell.

Now, your Deepfake process will start and it will take time in Deepfaking the video and processing it. Be patient.

REMEMBER: Don't close the tap on close the screen. Keep the tab open and don't let the Laptop/Computer to go to sleep/power saving mode/screen. You can still use other tabs and other works in the Laptop/PC just make sure the Google Colab tab is still working and process is still going on.

This message will be shown after the process is done.

To download the Deepfaked final processed video. Click on the "Files" section and you will see the video file named "swapped.mp4" which will be the Deepfaked video.

Click on the Refresh Button (as you can see below) to refresh the Files page if the "Swapped.mp4" isn't showing.



Enjoy.

Comments

  1. Please write a new tutorial on how to install it in Windows please. BTW its working great in Colab.

    ReplyDelete
  2. Bro, I've used it and it was the best Google Colab Roop for Deepfake so far.
    it was doing deepfake videos faster than the past 2 days. it started to get slower and slower while doing deepfake videos 2 days ago but still normal while making face swaping in images. may i know what's the problem? is it because some kind of updates or what?
    i hope to hear from you so soon.
    thanks.

    ReplyDelete
  3. Bro, I've used your roob and it was the best Google Colab Roop for Deepfake so far. but 2 days ago, it started to get slower and slower while working with videos unlike the images faceswap, it still narmal and good but the video are taking much time than it's supposed to do. I'm commenting cuz i wanna figure what the problem is. Is it because a recent update or some kind of error, i'm wondering. I hope to hear from you so soon.
    much love, bro.

    ReplyDelete
  4. F**k the Session google colab

    ReplyDelete
  5. Hello, I have reproduced the instruction on my linux pc and there is an error if on command line i put face_enhancer, while on colab i don't see the error. Without face_enhancer it works but there is no image optimization? can you help?

    ReplyDelete
  6. This is using CPU execution provider, but it could be much faster if it uses GPU in Google Colab

    ReplyDelete
  7. Yesterday its working but today error in roop

    ReplyDelete
  8. keeps getting timed out with collab

    ReplyDelete
  9. its not working on collab now

    ReplyDelete

Post a Comment

Popular posts from this blog

Google Colab for Deepfake, Face Swapping | Google Colab Roop

Google Colab for Deepfake, Face Swapping | Google Colab Roop Demo Features of this version: No NSFW Filter (Bypass the NSFW Filter which was in the Orignal Roop) "face_swapper.py" is updated so there will be no errors. (swapper_128.onnx error is fixed) "HTTP Error 401: Unauthorized" error is Fixed Updated the invalid links (Few HuggingFace.co links were not working) The "Face Glitching" problem is fixed. Tutorial "How-To" (includes video tutorial) : Click here (MUST READ BEFORE USING THIS GOOGLE COLAB ROOP) GitHub Link:  Click here Google Colab Link:  Click here Original Roop ( this one ) is Discontinued.