Deepfake Videos Made Easy: Step-by-Step Guide with Google Colab
Вставка
- Опубліковано 6 вер 2024
- Unlock the incredible world of deepfake videos with this comprehensive tutorial! Whether you're an artist looking to experiment with face swaps or a beginner wanting to dive into AI-powered video creation, this guide has you covered. Learn how to create stunning deepfake videos using free online tools like Roop and FaceFusion, and explore step-by-step tutorials designed for both beginners and advanced users. We'll also show you how to leverage the power of Google Colab for efficient deepfake generation. Don't miss out on the latest techniques in AI deepfake video making!
All Links Used In Tutorial:
- bahaaai.bahaam...
Related Videos:
DeepFake A Face In Photos For FREE - insightFace - Google Colab
• DeepFake A Face In Pho...
UPDATED : DeepFake Videos And Photos - FaceFusion 2.6.0 - Google Colab Free
• UPDATED : DeepFake Vid...
UPDATED : DeepFake Videos For Free Using Google Colab (Roop) On Your Mobile Phone
• UPDATED : DeepFake Vid...
✅ This channel "Bahaa AI" specializes in publishing tutorial for artificial intelligence tools to create videos, photos and music using a mobile phone.
Subscribe to watch easy, simple and free tutorials about AI tools.
I am having the same problem, the run time always gives error. I did everything as he show on his video
Make sure you are connected to Google Colab with GPU t4
Getting error at step3 while uploading video it is not working
Hi, Use this code:
colab.research.google.com/drive/1dqWQHKN0HszTzkUzzPlqFipL9MiorezC?usp=sharing
no more option to swap face in photo??
You can use FaceFusion:
ua-cam.com/video/lOQnRUWEU_M/v-deo.html
Even if GPU t4 is selected, the following error occurs in step 1 and does not progress successfully afterwards. What should I do?
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
ipython 7.34.0 requires jedi>=0.16, which is not installed.
torch 2.3.0+cu121 requires nvidia-cublas-cu12==12.1.3.1; platform_system == "Linux" and platform_machine == "x86_64", which is not installed.
torch 2.3.0+cu121 requires nvidia-cuda-cupti-cu12==12.1.105; platform_system == "Linux" and platform_machine == "x86_64", which is not installed.
torch 2.3.0+cu121 requires nvidia-cuda-nvrtc-cu12==12.1.105; platform_system == "Linux" and platform_machine == "x86_64", which is not installed.
torch 2.3.0+cu121 requires nvidia-cuda-runtime-cu12==12.1.105; platform_system == "Linux" and platform_machine == "x86_64", which is not installed.
torch 2.3.0+cu121 requires nvidia-cudnn-cu12==8.9.2.26; platform_system == "Linux" and platform_machine == "x86_64", which is not installed.
torch 2.3.0+cu121 requires nvidia-cufft-cu12==11.0.2.54; platform_system == "Linux" and platform_machine == "x86_64", which is not installed.
torch 2.3.0+cu121 requires nvidia-curand-cu12==10.3.2.106; platform_system == "Linux" and platform_machine == "x86_64", which is not installed.
torch 2.3.0+cu121 requires nvidia-cusolver-cu12==11.4.5.107; platform_system == "Linux" and platform_machine == "x86_64", which is not installed.
torch 2.3.0+cu121 requires nvidia-cusparse-cu12==12.1.0.106; platform_system == "Linux" and platform_machine == "x86_64", which is not installed.
torch 2.3.0+cu121 requires nvidia-nccl-cu12==2.20.5; platform_system == "Linux" and platform_machine == "x86_64", which is not installed.
torch 2.3.0+cu121 requires nvidia-nvtx-cu12==12.1.105; platform_system == "Linux" and platform_machine == "x86_64", which is not installed.
cudf-cu12 24.4.1 requires pandas=2.0, but you have pandas 2.2.2 which is incompatible.
cudf-cu12 24.4.1 requires protobuf=3.20, but you have protobuf 5.27.2 which is incompatible.
gcsfs 2023.6.0 requires fsspec==2023.6.0, but you have fsspec 2024.6.1 which is incompatible.
google-ai-generativelanguage 0.6.4 requires protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,=3.19.5, but you have protobuf 5.27.2 which is incompatible.
google-api-core 2.11.1 requires protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,=3.19.5, but you have protobuf 5.27.2 which is incompatible.
google-cloud-aiplatform 1.56.0 requires protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,=3.19.5, but you have protobuf 5.27.2 which is incompatible.
google-cloud-bigquery-connection 1.12.1 requires protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,=3.19.5, but you have protobuf 5.27.2 which is incompatible.
google-cloud-bigquery-storage 2.25.0 requires protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,=3.19.5, but you have protobuf 5.27.2 which is incompatible.
google-cloud-datastore 2.15.2 requires protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,=3.19.5, but you have protobuf 5.27.2 which is incompatible.
google-cloud-firestore 2.11.1 requires protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,=3.19.5, but you have protobuf 5.27.2 which is incompatible.
google-cloud-functions 1.13.3 requires protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,=3.19.5, but you have protobuf 5.27.2 which is incompatible.
google-cloud-iam 2.15.0 requires protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,=3.19.5, but you have protobuf 5.27.2 which is incompatible.
google-cloud-language 2.13.3 requires protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,=3.19.5, but you have protobuf 5.27.2 which is incompatible.
google-cloud-resource-manager 1.12.3 requires protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,=3.19.5, but you have protobuf 5.27.2 which is incompatible.
google-cloud-translate 3.11.3 requires protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,=3.19.5, but you have protobuf 5.27.2 which is incompatible.
google-colab 1.0.0 requires pandas==2.0.3, but you have pandas 2.2.2 which is incompatible.
google-colab 1.0.0 requires requests==2.31.0, but you have requests 2.32.3 which is incompatible.
grpc-google-iam-v1 0.13.0 requires protobuf!=3.20.0,!=3.20.1,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,=3.19.5, but you have protobuf 5.27.2 which is incompatible.
imageio 2.31.6 requires pillow=8.3.2, but you have pillow 10.3.0 which is incompatible.
jupyter-server 1.24.0 requires anyio=3.1.0, but you have anyio 4.4.0 which is incompatible.
tensorflow 2.15.0 requires protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,=3.20.3, but you have protobuf 5.27.2 which is incompatible.
tensorflow-metadata 1.15.0 requires protobuf=3.20.3; python_version < "3.11", but you have protobuf 5.27.2 which is incompatible.
Successfully installed aiofiles-23.2.1 altair-5.3.0 annotated-types-0.7.0 anyio-4.4.0 attrs-23.2.0 certifi-2024.6.2 charset-normalizer-3.3.2 click-8.1.7 coloredlogs-15.0.1 contourpy-1.2.1 cycler-0.12.1 dnspython-2.6.1 email_validator-2.2.0 exceptiongroup-1.2.1 fastapi-0.111.0 fastapi-cli-0.0.4 ffmpy-0.3.2 filelock-3.15.4 filetype-1.2.0 flatbuffers-24.3.25 fonttools-4.53.0 fsspec-2024.6.1 gradio-3.50.2 gradio-client-0.6.1 h11-0.14.0 httpcore-1.0.5 httptools-0.6.1 httpx-0.27.0 huggingface-hub-0.23.4 humanfriendly-10.0 idna-3.7 importlib-resources-6.4.0 jinja2-3.1.4 jsonschema-4.22.0 jsonschema-specifications-2023.12.1 kiwisolver-1.4.5 markdown-it-py-3.0.0 markupsafe-2.1.5 matplotlib-3.9.0 mdurl-0.1.2 mpmath-1.3.0 numpy-1.26.4 onnx-1.16.0 onnxruntime-1.17.3 opencv-python-4.9.0.80 orjson-3.10.5 packaging-24.1 pandas-2.2.2 pillow-10.3.0 protobuf-5.27.2 psutil-5.9.8 pydantic-2.7.4 pydantic-core-2.18.4 pydub-0.25.1 pygments-2.18.0 pyparsing-3.1.2 python-dateutil-2.9.0.post0 python-dotenv-1.0.1 python-multipart-0.0.9 pytz-2024.1 pyyaml-6.0.1 referencing-0.35.1 requests-2.32.3 rich-13.7.1 rpds-py-0.18.1 scipy-1.13.0 semantic-version-2.10.0 shellingham-1.5.4 six-1.16.0 sniffio-1.3.1 starlette-0.37.2 sympy-1.12.1 toolz-0.12.1 tqdm-4.66.4 typer-0.12.3 typing-extensions-4.12.2 tzdata-2024.1 ujson-5.10.0 urllib3-2.2.2 uvicorn-0.30.1 uvloop-0.19.0 watchfiles-0.22.0 websockets-11.0.3
WARNING: Skipping onnxruntime-gpu as it is not installed.
Try using another gmail in colab
I visit your website many times. But after downloading and making Clips, all errors occur. Can you help me? Thanks you.
Hi, Use this code:
colab.research.google.com/drive/1dqWQHKN0HszTzkUzzPlqFipL9MiorezC?usp=sharing
@@BahaaAI Thank you Bro
hey bahaa
this model was working so smoothly, but there is a problem
when we start model for 2nd time or it gives erroe at step number 4 (face swapping step)
can you please fix it or tell me how it can be fixed. error it shows is file not found for swapping while i have uploaded both media correctly.
Thank you
Step 2 keeps reconnecting after first cell
Fixed 🌷
Its again not working "Error - No such file or directory" Fix this.....
Fixed 🌷
Not working (FileNotFoundError: [Errno 2] No such file or directory: '/content/face_swapped_video.mp4'), error line 57 (os.remove(input_path) # remove the weird encoded file')
Fixed 🌷
@@BahaaAI doesnt
Can You fix ero of google collab Facefusion.
it can't run on second step.
I am having the same problem, the run time always gives error. I did everything as he show on his video
what is the error message?
@@BahaaAI Can U fix this error. Please
@@tranvannam5337 what is the god dam error he asked u
@BahaaAI CONGRATS!!! Thank you for your great work, and I have a question, is there a colab to Deep Fake a batch of photos in the same processes
Hi, Thanks for your comment 🌷 . I will add this idea to my schedule 👍
@@BahaaAI Great!!!
can i know whats the problem of cant connect to gpu?if cant connect it ,whats the result we will get ?
Hi, Most of the AI colab programs require GPU to run. It is something related to required libraries and modules. Without the GPU, there will be errors.
hello Bahaa...I get error in STEP 4
same here
Hi, Use this code:
colab.research.google.com/drive/1dqWQHKN0HszTzkUzzPlqFipL9MiorezC?usp=sharing
the swapping does not work-please check and get back
Hi, What is the error message? I have tested the code and it is working
@@BahaaAI The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/content/facefusion/run.py", line 6, in
core.cli()
File "/content/facefusion/facefusion/core.py", line 112, in cli
run(program).........
after uploading video an error occurs pls fix : MessageError: RangeError: Maximum call stack size exceeded.
Sen muazzamsın kral. Bir önceki videodaki versiyonlarda hata veriyordu. Bu sürüm mükemmel olmuş. Seni takip ettim adamm. Türkiye'den selamlar ve sevgiler 🤙
You are amazing king. It was giving errors in the versions in the previous video. This version is perfect. I followed you mannn. Greetings and love from Turkey 🤙
Thanks 🌷
Its working again, god bless but its still showing runtime connect error, should I buy more compute units ?
I am not sure if buying compute units would solve this issue. This issue started a few days ago when FaceFusion was updated.
hey bahaa! thanks!
can you recommend anything when it comes to tiktok face swapping? so if there are certain pictures blended in during the videos?
does it work with your solution? if not, do you have any tips for making it run?
Hi, thanks for your comment, in this code, the face must be visible and face the camera during all the video duration. Actually I am trying to find easy free ways for face swapping but there are paid services which is a way better.
Step 4 Error
av_interleaved_write_frame(): Immediate exit requested
Error writing trailer of /content/face_swapped_video.mp4_final: Immediate exit requested
Hi, Use this code:
colab.research.google.com/drive/1dqWQHKN0HszTzkUzzPlqFipL9MiorezC?usp=sharing
hi, now not work, in the step 4, I receive error: " ... /content/face_swapped_video.mp4: No such file or directory" .. you know the problem ?? thanks
Make sure you are connected to Google Colab with GPU t4
@@BahaaAI yes, connected
how can i use this for multiple faces?
Hi, you can use FaceFusion GUI : ua-cam.com/video/lOQnRUWEU_M/v-deo.html
@@BahaaAI the link that you have sent takes huge time cause i have no Gpu. but this video content collab works really well quality is good and fast. I just want a multifaced swap version of it. or you can suggest me any other solution. thanks in advance
@@shafiahmedjohny3952 can this google colab run on a low end pc without gpu
?
Pareil .. pouvez vous corriger? Merci
Can you please keep an option to upload using direct url? I have seen a couple of your videos and subscribed to your channel, as I have found your videos helpful and to the point. But the only problem I face is uploading to colab is very very slow. So, if you keep an option to upload video/audio on your colab notebooks using url, it will be helpful.
Hi, thanks for your comment 🌷. Actually it is a good idea. I will add it ASAP 👍
Don't you have a version for Kaggle with zrok?
Hi, Unfortunately I'm not familiar with Kaggle. I don't like it as I can't make codes simple like on Colab.
Thank you so much my brother, it worked for me 🙏
Welcome 👍
It's showing an error. (/content/face_swapped_video.mp4: No such file or directory)
Hi, this issue happens because the face swapping process did not complete successfully.
Try using another face or video.
I getting so many times error in Google focus lot of times but some times it has worked but 1 video are not perfectly swapped now why are problem are coming and what is that solution
If there are no solution any other website for swap
Hi, what is the error message?
One important thing is that the face must be clear on the whole video.
Also the process will only work with human faces.
Do you know what new faceswapping tool they're using on IG that mimics mouth movement really well? Like it looks really good even when they're talking or showing their tongue. I can't find anything similar.
So now can’t we ever use face fusion for free because this thing is totally diff from our red colour interface face fusion
Make sure you are connected to Google Colab with GPU t4
File not found problem not solved please solve as soon as possible
Hi, what is the error message in the previous steps? Make sure you are connected with GPU t4 in Google colab
I already did it
Error shows in step 4
Loading Final Video Preview, Please Wait...
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
in ()
19
20 # Show video
---> 21 mp4 = open(video_path,'rb').read()
22 data_url = "data:video/mp4;base64," + b64encode(mp4).decode()
23 HTML("""
FileNotFoundError: [Errno 2] No such file or directory: '/content/roop/face_swapped_video.mp4'
@@BahaaAI Should I send screenshot to ur mail share ur mail please sir.
content/ face_Swapped_video . mp4: No such file o
Step 4 not working
Make sure you are connected to Google Colab with GPU t4
Won’t let me upload image
Code Updated, Please try again ant tell me if the issue is still happening.
Same here 😢
@@oliviaclaudia345 it’s working for me now
i did it worked but now as i do it it gives error in face swapping step. step 5 is giving me error please resolve it
Bahaa bro Thankyou so much you are a great and genius ❤❤❤❤
Thanks ❤️
Great!😍 Can you please modify an update of this to enable target video upload function directly from google drive and after final video processed automatically uploaded to the google drive. 😍 It would be great.
an error pops up in phase 4 where it says "content/face_swapped_video.mp4: No such file or directory" what should i do?
I have the same problem. Please let me know when you find a solution
Fixed 🌷
Fixed 🌷
@@BahaaAI ihace the same problem, 28/june/2024
@@BahaaAI I also experienced the same problem, a day later I tried again and it couldn't be used again like this.
It started giving an error during the face swapping phase. What is the solution?
yes same
Fixed 🌷
Fixed 🌷
@@BahaaAI not working again bro
@@BahaaAI not working again showing [Errno 2] No such file or directory: '/content/face_swapped_video.mp4'
can this run on a low end pc without any gpu?
Unfortunately no 😕
Hey buddy face fusion gardio 2.6.2 and the older versions are not working can you please fix it
Hi Baha, Any chance we can do over 20 mins video, thank you!
Hi, this will take a very long time.
Hello, I need help to set Google colab.
After the video is processed, it analyzes it and then the error occurs.
what is the error message? have you tried previewing it?
Step 4 not working 😢
What is the error message?
It has worked for one video. Then error. What to do? Use other google account? Or only one video per day allowed?
Hi, what is the error message?
Brother it's roop or facefusion(version please?)?
Or is it working 1.5 minute videos?...
it uses FaceFusion latest version, you can use 1.5 videos but it may take some time processing.
not working cuda is eror
Make sure you are connected to Google Colab with GPU t4
@BahaaAI
Sir this colab link is not working
Please fix the issue 🙏🏻🙏🏻
And please also fix the Foocus link which get exhausted by RAM
Thank you 🙏🏻🙏🏻
What is the issue with this link?
approximately 4mins and 51 seconds for the 1st step to install thank me later
Bonjour, comment fait on pour sélectionner une face? Merci
Gracias sigue actualizando
Not working anymore
Hi, what is the error message?
@@BahaaAI keep saying rerun cells And turns red
Try using another video or image
Fixed 👍
Es seguro subir los archivos? Es decir no quedan residuos de los archivos en el servidor para que otros los usen o vean?
Hi, Thank you for your comment 🌷.
When you upload any media to Google colab, you upload it temporarily to your personal Google drive account. No one can access these files, even Google itself can't.
When you disconnect the runtime, all uploaded files get deleted forever and immediately.
@@BahaaAIok, gracias por responder
Hii this is colab link without nsfw filter please
hata veriyor iletişim bilgileriniz nedir ?
What is the error message?
Fav creator 🫡
Pls bro make a video on videos speech changing and live image
will work on it 👍
Greate❤🎉
Merci bien , c'est clair et utile !
Thanks 🌷
Next tutorial convert video to animasi 3d long durasi
not working for me, i got error "/content/face_swapped_video.mp4: No such file or directory". how to fix?
Hi, make sure that the previous steps are completed successfully. Also try using another video.
Didn't work for nude videos
This is a great upgrade from the previous code (edit: it's not working)
What is the issue?
Hello - is it possible to talk to you?
Hi, contact me on Facebook page
facebook.com/profile.php?id=100094345374994&mibextid=ZbWKwL
I don’t have Facebook. Do you have telegram
Or instagram
t.me/BahaaMahmoud88
@@BahaaAI sent you a message
Jesus Chriist loves you all
This problem must be solved urgently
what is the error message? have you got any disconnects?
I would like to know if you have any method on colab to improve the quality of a video, make it truly HD, I have some videos filmed on my cell phone but they always look bad, I wanted to make them more powerful with colab google
BROTHER WHY IT SHOWING FILE NOT FOUND ERROR. IT WORK SMOOTHLY FROM PREVIOUS DAYS BUT NOW SHOWING FILE NOT FOUND ERROR. PLEASE FIX THAT ERROR SOON 🫤
Fixed 🌷
@BahaaAI we are facing this problem again please help
@@maazxzzyes me too
@@BahaaAI you fixed it 😊 you earned a subscriber 🎉
@@BahaaAIonly and best colab that Works on mobile phone❤❤