DeepFaceLab deepfake tutorial, using generic XSeg

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.ย. 2024
  • This video was made to show the current workflow to follow when you want to create a deepfake with DeepFaceLab.
    When the face is clear enough, you don't need to do manual masking, you can apply Generic XSeg and get auto mask, otherwise you have to proceed with the manual creation of XSeg masks.
    The quality of the final deepfake, of course can be much more better but for this video I trained the model for few iteration because the video is only meant to explain the workflow.
    CHAPTERS:
    0:00 Frames extraction
    1:26 Faces extraction
    4:00 XSeg masks
    5:35 Training
    10:20 Merging
    14:00 Final result
    GitHub link: github.com/ipe...

ความคิดเห็น • 142

  • @nemesis5481
    @nemesis5481 ปีที่แล้ว +5

    _You, the uploader of this video are a GOD!!!! Unfortunately, I find this software very intimidating and I know I'll get lost trying to follow the steps. Good job for showing this to the world though!!_

    • @RazorRamonElJefe
      @RazorRamonElJefe 5 หลายเดือนก่อน +2

      I've just installed it now. Super easy to follow the steps. All you have to do is basically play the video, pause, do the same thing, repeat until done. The only thing is, it takes FOREVER to process each step.

    • @nemesis5481
      @nemesis5481 5 หลายเดือนก่อน

      @@RazorRamonElJefe _There is a website where you can do this now for image or video and it's open source and it's free. :)_

  • @CreationK.
    @CreationK. 3 ปีที่แล้ว +6

    Awesome video! :) Thank you for this and God bless!

  • @androidgeeking
    @androidgeeking ปีที่แล้ว +14

    Step 1:
    extract images from video data_src
    extract images from video data_dst FULL FPS
    Step 2:
    data_src faceset extract
    data_dst faceset extract
    Step 3 (XSEG MASKS):
    .XSeg Generic) data_dst whole_face mask - apply
    .XSeg) data_dst mask - edit
    .XSeg) data_src mask - edit
    Step 4:
    train SAEHD
    Step 5:
    Train SAEHD
    Final:
    Merged to mp4

    • @ethnsec
      @ethnsec ปีที่แล้ว +1

      I don't have the folder with the files that are in the video. This is a scam.

    • @deepfakeengita2967
      @deepfakeengita2967  ปีที่แล้ว +12

      It's not a scam, it's you that you don't know how to use software. Learn before talk.

    • @ethnsec
      @ethnsec ปีที่แล้ว +1

      @@deepfakeengita2967 i found video with full tutorial...you need to create full tutorial

    • @banterhustle8674
      @banterhustle8674 9 หลายเดือนก่อน +1

      @@ethnsec please share the link

    • @PearlenEspanol-td7tm
      @PearlenEspanol-td7tm 8 หลายเดือนก่อน +1

      @@deepfakeengita2967 Hello man, is this still a relevant tool? I am so much in need of suchj a tool. Are there better alternatives now? Anyway what I would like to know is: do you think your project work faster with BIGGER VRAM? I need a tool that work fast, what do you think?

  • @Sikalafo82
    @Sikalafo82 2 ปีที่แล้ว +2

    I like your choice of music

  • @MrKomarovsky
    @MrKomarovsky 2 ปีที่แล้ว +6

    SUPER DUPER RESULT!! Please kindly advise how long does it take to do this kind of video ? As i could notice on the computer watch - couple of days?

    • @deepfakeengita2967
      @deepfakeengita2967  2 ปีที่แล้ว +6

      1 night

    • @sam1323123
      @sam1323123 ปีที่แล้ว

      @@deepfakeengita2967 Does this work well for swapping a single face within a video containing multiple faces?

  • @douglaspriester
    @douglaspriester 4 หลายเดือนก่อน +1

    any replacement app/workflow for whole head swap?

  • @n1kokay278
    @n1kokay278 2 ปีที่แล้ว +23

    Do I have to draw the outline of the mask to every frame?
    Edit: you don't have to, you only need to draw a few to give the ai an outline and it will do the rest.

    • @Adam-gh3bi
      @Adam-gh3bi ปีที่แล้ว +1

      how many would you do? maybe once every 50 frames? or just whenever there’s noticeable movements?

  • @MichasBreakdown
    @MichasBreakdown 2 ปีที่แล้ว +4

    The content is likely great, but every time I open a tutorial video and there is no voice narration, I am lost. I can't concentrate on what to do if there is only a mouse pointer circling in some area. I appreciate your work, but can't utilize it. Maybe it is just me, but I guess this is true for many auditive learners. Best wishes, though.

  • @JackoMoonwalker
    @JackoMoonwalker 2 หลายเดือนก่อน

    In the first step I got this error: ''failed to load the native TensorFlow runtime''. What shall I do?

  • @JackoMoonwalker
    @JackoMoonwalker 2 หลายเดือนก่อน

    Nice tutorial!! Does this work with any picture or video I desire? I want to use my friends' faces and mine in an action scene of a movie!

  • @gauravlokha8787
    @gauravlokha8787 8 หลายเดือนก่อน

    My process -
    2) extract images from video data_src
    3) extract images from video data_dst FULL FPS
    4) data_src faceset extract
    5) data_dst faceset extract
    5.XSeg) data_dst mask - edit
    5.XSeg) data_src mask - edit
    5.XSeg) train
    5.XSeg) data_dst trained mask - apply
    5.XSeg) data_src trained mask - apply
    7) merge SAEHD
    This is exactly what I did. Now while I started to merge, the model seems to apply the destination face itself to data_dst. What am I doing wrong?? It's not applying source face for some reason.

  • @merryHngedman
    @merryHngedman 2 ปีที่แล้ว +3

    When I run 6) train SAEHD the process stopped after «Model Summary» - it doesn't saving - and in the «model» map only one file (SAEHD_defaul_options). Any suggestions?
    I used 3000_series (GeForce RTX 3080)

    • @deepfakeengita2967
      @deepfakeengita2967  2 ปีที่แล้ว +1

      Try to increase paging file size.

    • @merryHngedman
      @merryHngedman 2 ปีที่แล้ว

      @@deepfakeengita2967 Thanx, I will try.

    • @pittstone
      @pittstone 2 ปีที่แล้ว

      @@deepfakeengita2967 How to do that?

    • @MikeAnthony1991
      @MikeAnthony1991 ปีที่แล้ว

      @@pittstone Windows + R to bring up run, type "sysdm.cpl", Advanced tab > under Performance click Settings > Advanced tab > you'll see Virtual Memory section to adjust at bottom.

  • @SuperlativeCG
    @SuperlativeCG 2 ปีที่แล้ว +7

    Future actors will have enough childhood footage on the internet that they'll be able to deepfake their childhood faces on childhood actors for flashback scenes.

  • @Rageheuuu
    @Rageheuuu 2 ปีที่แล้ว +2

    Hello !!!
    How long for 174000 frames with your config ?
    Only 21000 with my RTX 3070 since 1Hour..
    Tks and very good job !

    • @deepfakeengita2967
      @deepfakeengita2967  2 ปีที่แล้ว

      Do u mean to extract aligned image?

    • @chillsoft
      @chillsoft ปีที่แล้ว

      That's a WHOLE movie? Damn!

  • @kongsoonyee1010
    @kongsoonyee1010 2 ปีที่แล้ว

    thanks

  • @memechef7292
    @memechef7292 3 ปีที่แล้ว +1

    subscribed you🙌🙌

  • @realcarlspartacus
    @realcarlspartacus 2 ปีที่แล้ว +8

    Thank you for the video... but I found difficult to read what options that you are using due the font size, too little... Do you have a blog or website with more info, just asking?

    • @socrates_the_great6209
      @socrates_the_great6209 2 ปีที่แล้ว +11

      1) Full Screen
      2) Play in Slow Motion
      3) Zoom = Ctrl + Mouse Wheel Up or Down.
      4) Or screenshot and then zoom on the screenshot.
      5) He actually just presses ENTER all the time and then it uses the default value. Maybe 1 or 2 times where you manually have to write "0".

  • @suveniro4ka
    @suveniro4ka 5 หลายเดือนก่อน

    4 not working. Not finding any faces

  • @ToloLP
    @ToloLP 2 ปีที่แล้ว +2

    When i run train SAEHD, after it loads samples, initializes models etc. it says "Press any key to continue" and it would just sit there and do nothing.
    I already incresed the page file size to 16gb, I have 16gb physical ram and a 2070 Super on Windows 11

    • @rodrigovargas6535
      @rodrigovargas6535 2 ปีที่แล้ว

      Same, only works with CPU. I don't know if it's because of the CUDA version

    • @quattroformaggi5735
      @quattroformaggi5735 2 ปีที่แล้ว

      Had the same problem, changed build from DeepFaceLab_DirectX12 to DeepFaceLab_NVIDIA_up_to_RTX2080Ti solved problem

  • @lucas1884
    @lucas1884 4 หลายเดือนก่อน

    Can anybody tell me how to use a pre-trained model?

  • @pixiesoof
    @pixiesoof 2 ปีที่แล้ว +1

    Can you stop and resume training or is training one long wait? Lets say i did 10,000 iterations and stopped, can i add to that at a later time?

    • @GTRNTEKDSE
      @GTRNTEKDSE 2 ปีที่แล้ว +2

      you can stop it and resume everytime u want by just launching the train bat again and selecting your model

  • @Serge71100
    @Serge71100 2 ปีที่แล้ว

    I accidentaly close the training preview window, how to open it again

  • @deeber35
    @deeber35 ปีที่แล้ว

    What if you can't automatically or manually extract the majority of faces? Do you have to go with XSeg and draw polygons around them?

  • @thebrownteamcankc
    @thebrownteamcankc ปีที่แล้ว

    How did you get your keyboard on your screen like I saw instead of hitting tab?

  • @TTT-jt9zw
    @TTT-jt9zw ปีที่แล้ว

    Great vid. What track/ artist is that first (song)?

  • @yodasuki
    @yodasuki 2 ปีที่แล้ว +1

    When i run 6) train SAEHD it often just sits there after loading samples. one time i got an error about importing numpy core. no clue why it get this message. any suggestions i am running up to 2080ti and i have a 2060

    • @deepfakeengita2967
      @deepfakeengita2967  2 ปีที่แล้ว

      Try to enable paging file.

    • @yodasuki
      @yodasuki 2 ปีที่แล้ว

      @@deepfakeengita2967 windows paging file?

    • @yexiangshao7465
      @yexiangshao7465 2 ปีที่แล้ว

      is this resolved? rtx 3080 ti having the same issue

    • @yexiangshao7465
      @yexiangshao7465 2 ปีที่แล้ว

      resolved after customizing page size to 16-32gb

  • @CeroCool212004
    @CeroCool212004 ปีที่แล้ว

    Where is the pre-trained models?

    • @deepfakeengita2967
      @deepfakeengita2967  ปีที่แล้ว

      You can find the pre-trained model on the forum (link in the main page of DFL GitHub page) or even create it by yourself.

  • @tungle6962
    @tungle6962 ปีที่แล้ว

    I got the error when do [train SAEHD] :ImportError: DLL load failed: The paging file is too small for this operation to complete.
    from . import specfun
    I have 12GB 3060 card , 16GB RAM and a 12th Gen i5-12400F
    Any help pls ?

    • @deepfakeengita2967
      @deepfakeengita2967  ปีที่แล้ว

      It's even written. Enable/increase your paging file.

  • @DerVollstrecker.
    @DerVollstrecker. ปีที่แล้ว

    Computing motion vectors: 0it [00:00, ?it/s]
    No frames to merge in input_dir.
    Done.???

  • @memechef7292
    @memechef7292 3 ปีที่แล้ว +2

    awesome man can you make a tutorial on real time deep fake using using low end pc broo

  • @boerek_loerek4251
    @boerek_loerek4251 2 ปีที่แล้ว

    I had the problem that when i was running train SAEHD and after loading samples, initializing models etc. it says : press any key and it would do nothing

    • @deepfakeengita2967
      @deepfakeengita2967  2 ปีที่แล้ว

      Try to increase paging file size

    • @karuso0762
      @karuso0762 2 ปีที่แล้ว +1

      @@deepfakeengita2967 I also serched a little bit and for me it worked to make a quick Quick96 train and the SAEHD train Worked

    • @ToloLP
      @ToloLP 2 ปีที่แล้ว

      having the same issue, have you by any chance found a solution for this?

  • @manasmahanta10
    @manasmahanta10 2 ปีที่แล้ว

    Failed to allocate 2764800 bytes in function 'cv::OutOfMemoryError'

  • @patricklamontagne5711
    @patricklamontagne5711 2 ปีที่แล้ว

    when i try to train SAEHD, it says internal compiler error, idk what to do

  • @toxicshot4528
    @toxicshot4528 ปีที่แล้ว

    hi, how do you fix an alignment that looked weird because of face obstruction like "mic" obstructing the chin, making the aligned face look big

    • @deepfakeengita2967
      @deepfakeengita2967  ปีที่แล้ว +1

      The generic XSeg model should be enough, otherwise you can use the XSeg editor.

    • @toxicshot4528
      @toxicshot4528 ปีที่แล้ว

      @@deepfakeengita2967 im really new to facelab, thank you for answering my question.

  • @TanvirsTechTalk
    @TanvirsTechTalk 7 หลายเดือนก่อน

    how do you do head replacement including hair?

    • @deepfakeengita2967
      @deepfakeengita2967  7 หลายเดือนก่อน

      Hi! You have to use an head model, and manual XSegging the aligned images, creating masks that include also hair and ears

    • @TanvirsTechTalk
      @TanvirsTechTalk 7 หลายเดือนก่อน

      whats a head model?@@deepfakeengita2967

  • @DMKCSharp
    @DMKCSharp 10 หลายเดือนก่อน

    If I download the pre-trained xseg, where should I put it and how to use it?

    • @deepfakeengita2967
      @deepfakeengita2967  9 หลายเดือนก่อน

      Put it inside model folder, and start XSeg training

  • @MehmetAliMD
    @MehmetAliMD 2 ปีที่แล้ว

    After applying xseg, am I supposed to use SAEHD? Actually I wanna use Quick96

  • @Gapi505
    @Gapi505 2 ปีที่แล้ว

    Where can i download the mp4 files?

  • @hhmaniak
    @hhmaniak 2 ปีที่แล้ว +1

    06:21 this is moment where I press enter to continue and nothing happens :///

    • @asenjogonsa3868
      @asenjogonsa3868 2 ปีที่แล้ว

      did u solve it?

    • @hhmaniak
      @hhmaniak 2 ปีที่แล้ว

      @@asenjogonsa3868 no sorry 😢

  • @vbNirmal
    @vbNirmal 2 ปีที่แล้ว

    I didn't find those .bat files like you are using ! Where to find those? Please help

    • @deepfakeengita2967
      @deepfakeengita2967  2 ปีที่แล้ว

      Prolly you didn't download the package from github. Go here: mega.nz/folder/Po0nGQrA#dbbttiNWojCt8jzD4xYaPw or here: disk.yandex.ru/d/7i5XTKIKVg5UUg/DeepFaceLab

  • @shantanubineewale
    @shantanubineewale 2 ปีที่แล้ว

    i5 9th gen
    Nvidia 1650
    8gb ram
    will it work for me?

    • @Jaie55
      @Jaie55 2 ปีที่แล้ว

      yup

  • @KiuCFu1688
    @KiuCFu1688 2 ปีที่แล้ว +1

    the merger 10:48 doesnt come out

    • @KiuCFu1688
      @KiuCFu1688 2 ปีที่แล้ว

      help

    • @deepfakeengita2967
      @deepfakeengita2967  2 ปีที่แล้ว

      Maybe you didn't choose interactive merger.

    • @yoshit2434
      @yoshit2434 2 ปีที่แล้ว +1

      @@deepfakeengita2967 i have same problem

    • @bko393
      @bko393 2 ปีที่แล้ว

      help pls come not out

  • @MiltonLeite10
    @MiltonLeite10 2 ปีที่แล้ว +1

    hello, is it important to use xseg? what is the benefits to use it?

    • @deepfakeengita2967
      @deepfakeengita2967  2 ปีที่แล้ว

      Yes it is, cause you can create custom mask based on situation. Moreover, if you don't create segmentation masks, it will be used the mask created from the landmarks, which is the area inside the facial landmarks. This area doesn't cover all the face, only the zone between chin and eyebrows, so you can't use a whole face model for example. Instead for head model, xseg is mandatory.

  • @738shani
    @738shani 3 ปีที่แล้ว +1

    your GPU is GTX-1060, and you have downloaded DF version for RTX-2080? Will DeepFaceLab 2.0 for 2080 work for GTX-1060Ti?

    • @deepfakeengita2967
      @deepfakeengita2967  3 ปีที่แล้ว +3

      No I downloaded version UP TO 2080ti. It means ALL the video card of nvidia chronologically released before the series RTX 3000.

  • @Frogloveryt
    @Frogloveryt 2 ปีที่แล้ว

    I have no idea how to even install it. can you help?

  • @Funclips_studios
    @Funclips_studios 3 ปีที่แล้ว

    Hi, would you be willing to take deepfake commissions? I'm making a parody short film next summer that needs deepfakes scattered throughout small parts in the film and I havent gotten any deepfake artists to respond.

    • @deepfakeengita2967
      @deepfakeengita2967  3 ปีที่แล้ว

      Tell me more in pvt on telegram or discord. For discord search me in dfl official server while for telegram @DeepFakeEngIta

  • @ilMatty98
    @ilMatty98 3 ปีที่แล้ว +1

    Privet

  • @ahmedhendiya
    @ahmedhendiya 2 ปีที่แล้ว

    Hallo
    Asus
    Core i5 2.53GHz
    Ram 6gb - rom 600gb
    Nvidia GT 325M 1GB
    My computer specs, can deepfakes work with me?

  • @MrDebranjandutta
    @MrDebranjandutta 8 หลายเดือนก่อน

    I'm sure the processing part has been sped up by quite a bit. I was trying to run it step by step on a remote datacenter compute instance with a nVidia A40 (48g Gb) vis-a-vis the shitty GTX 1060 here and the processing time for extraction part was atleast 5x compared to the video here.

    • @deepfakeengita2967
      @deepfakeengita2967  8 หลายเดือนก่อน

      Of course it's quickened, it's not a trick to hide something and it's all out in the open. The number of iterations per second is indicated in the progress bar.

  • @guildwars3
    @guildwars3 2 ปีที่แล้ว +4

    Here is a slightly better tutorial, where the person talks you throught it, telling what settings can be left on defaults: th-cam.com/video/QSmHho1uHFM/w-d-xo.html

  • @RG-si1qz
    @RG-si1qz ปีที่แล้ว

    This wouldn't work on a GTX1080 would it?

    • @deepfakeengita2967
      @deepfakeengita2967  ปีที่แล้ว

      It works

    • @inbox0000
      @inbox0000 ปีที่แล้ว

      @@deepfakeengita2967 can do on 1050ti and just use small batches?

  • @ultimategameguy
    @ultimategameguy ปีที่แล้ว

    How long does training the AI take?

    • @deepfakeengita2967
      @deepfakeengita2967  ปีที่แล้ว

      There is not a time. Depends on when you're satisfied of the results

  • @manofmystery5709
    @manofmystery5709 2 ปีที่แล้ว +1

    I wanted to play with this but does the source data need to be video or can it be just series of photos (since photos are higher resolution and can provide more details)?

    • @deepfakeengita2967
      @deepfakeengita2967  2 ปีที่แล้ว +1

      You can put images in data_src folder and after extract faces but must be a lot

    • @SSingh-nr8qz
      @SSingh-nr8qz 2 ปีที่แล้ว +12

      Sorry but that's not how things work. When I was first starting out deepfaking, I thought "Higher resolution= better results". First thing you will realize is your GPU will determine ultimately determine the output resolution of your faces. For 4GB GPU, you will be working with 128x128 pixels to 256X256 pixels. So even if you have a 8K ultra sharp image, it will be converted to a tiny image resolution. Once your GPU is full, the program will give you and out of memory error. The program generates images by compiling multiple angles of a subject. That is MOST Important part. Think of it like paper mache. You are taking pictures of different angles and sticking it on a virtual 3D model so the Ai can map it onto a target face. Typically you need around 2000 to 3000 images to do a decent faceset. This is why video interviews are best. You can get away with 500 to 1000 images (different face angles and expressions) but the results will suck. I typically do 4,000 to 6,000 images and get very good results at 256X 256 pixels that I later upscale to 512x512 pixels. If you have a 6GB GPU you can do 512X512 pixels and double that through AI upscaling to native HD resolutions. Remember that you are not generating an entire frame (ei 1920x1080 full HD frame) but only a face within that frame that takes up only a 1/8, to 1/2 screen. Hopefully all this information helps.

    • @ath0rus
      @ath0rus ปีที่แล้ว

      @@SSingh-nr8qz What do you use to upscale the image?

  • @lufffya
    @lufffya 2 ปีที่แล้ว

    where download data_dst and data_src?

  • @fubukisophicha8831
    @fubukisophicha8831 3 ปีที่แล้ว +3

    your data_src and data_dst is too simple, you should give an example of hand obstruction or other obstruction 🙃

    • @deepfakeengita2967
      @deepfakeengita2967  3 ปีที่แล้ว +2

      This is just a workflow example. For more specific things watch other tutorials.

  • @bradstudio
    @bradstudio ปีที่แล้ว

    It would be nice to see this done on an Apple Silicon machine.

    • @deepfakeengita2967
      @deepfakeengita2967  ปีที่แล้ว

      The best hardware for this software is nvidia gpus

    • @anandcp1
      @anandcp1 9 หลายเดือนก่อน

      MAC OS Forver ! @@deepfakeengita2967

  • @ラッセル9728
    @ラッセル9728 2 ปีที่แล้ว

    how do i download it ?

  • @socrates_the_great6209
    @socrates_the_great6209 2 ปีที่แล้ว +2

    It works today December 13, 2021. But you need some brain and experience with this kind of stuff to make it work. Likely because nobody wants 15-year-old kids to abuse powerful software like this.

  • @lusibhuty768
    @lusibhuty768 11 หลายเดือนก่อน

    I Know Why Everyone Came Here😒😎

  • @superinvestiment
    @superinvestiment ปีที่แล้ว

    clone voice ou no

  • @z1ph0n3
    @z1ph0n3 2 ปีที่แล้ว +1

    a very complex workflow and a horrible result :D

  • @real5k392
    @real5k392 2 ปีที่แล้ว

    which folder should I put the "RTM WF faceset/aligned/faceset.pak"

  • @gothamc488
    @gothamc488 3 ปีที่แล้ว +1

    When I ran "train SAEHD.bat", I kept getting this error message: module 'tensorflow._api.v1.math' has no attribute 'divide_no_nan'. Do you have any idea how to fix this?

    • @deepfakeengita2967
      @deepfakeengita2967  3 ปีที่แล้ว +1

      Are you using right DFL version? Which video card do you have?

  • @TheDon_Yyds
    @TheDon_Yyds 4 หลายเดือนก่อน

    Ciao! ti posso parlare su discord?? mi servirebbe una mano , grazie