Fooocus UI - How to face swap - Stable Diffusion

Sdílet
Vložit
  • čas přidán 1. 06. 2024
  • UPDATE
    ------------------------------------
    When inpainting a face, make sure to change the inpaint "Method" dropdown to "Improve detail (face, hand, eyes, etc.)
    ------------------------------------
    How to face swap in Fooocus UI for Stable Diffusion.
    Two methods for face swapping:
    - Inpaint - change the face and don't alter the original image
    - Variation - change the face and subtly alter the original image

Komentáře • 102

  • @DrDaab
    @DrDaab Před 4 měsíci +3

    Wonderful, just what was needed. A1111 v 1.7 has messed up so many things from the prior 1.6 version when running in Stability Matrix, that I'm ready to give up on it, now that you have shown how to get things working in Fooocus, which was already far better for In and Outpainting. Thanks a Lot ! ! ! !

  • @JustinMorgan
    @JustinMorgan Před 5 měsíci +8

    Perfect! thanks... this is exactly what I was looking for!

  • @user-kk3mc3kf2f
    @user-kk3mc3kf2f Před 5 měsíci

    Thank you very much for letting me know about this feature.

  • @deltapulse
    @deltapulse Před 5 měsíci +4

    Amazing! Just what I was looking for

  • @clangsison
    @clangsison Před 2 měsíci

    thank you! may your channel continue to grow

  • @rachinter
    @rachinter Před 5 měsíci +1

    Thanx bro... Looking forward to more Fooocus vids

  • @DesignerVIsuals
    @DesignerVIsuals Před 2 měsíci +1

    This is Exactly what I was looking for. Thank You! Subbed and thumbs up..

  • @Good4love
    @Good4love Před 5 měsíci

    thank you for the 2nd tip, working well

  • @timonjanosi4219
    @timonjanosi4219 Před 5 měsíci

    the best solution so far!

  • @Gromst3rr
    @Gromst3rr Před měsícem

    thank you, this is very useful!

  • @MrAirHD21
    @MrAirHD21 Před 5 měsíci +2

    nice work - thank you

  • @Grub370
    @Grub370 Před 3 měsíci

    Great video, thanks!

  • @coofgermany
    @coofgermany Před 4 měsíci

    thank you very much! your second variety works and the rest of focus too. at the inpaint variety i get errors..do you have any clue why?

  • @jankucera8505
    @jankucera8505 Před 4 měsíci +1

    best guide on face swapping there is

    • @iangillan1296
      @iangillan1296 Před 4 měsíci

      indeed. This man knows how to use this program feature

  • @ahmetbabaninfeneri
    @ahmetbabaninfeneri Před 2 měsíci

    very thank you my friend.

  • @TheKillingPerfection
    @TheKillingPerfection Před 5 měsíci +1

    Nice job

  • @MattyMilligan
    @MattyMilligan Před 3 měsíci

    Buddy, this was so helpful.
    Exactly what I've been trying to figure.
    Appreciate this brief yet valuable tutorial.

  • @xviovx
    @xviovx Před 5 měsíci +1

    thanks for the vid. more Fooocus UI tutorials pls (like how to run LoRaS and make highly realistic images of people)

  • @basilica99
    @basilica99 Před 4 měsíci

    Thank you so much for this. It's mind blowing. Quick question for you...
    I'm trying to generate an image of me holding my company's product, which is a tea box with the brand and logo on it.
    How do I generate an image such an image?
    I know I can use the face swap for my face but for the object, I really have no clue how to do it. I know I can use the image prompt for the product but the images generated won't be have my exact product.
    Appreciate your help and thank you so much again!

  • @naveenkumar.t9830
    @naveenkumar.t9830 Před 5 měsíci +4

    Bro plzz try to upload more video about fooocus and comfyui

  • @TheAlex91fifa
    @TheAlex91fifa Před 4 měsíci

    HI! Great tutorial. I'm using it, but both by changing PC and internet connection, it remains slow in creation (even though I put speed) but the most annoying thing is that it often gives an ERROR, when creating the prompt, a red warning. Can you help me understand why?

  • @lilillllii246
    @lilillllii246 Před 2 měsíci

    Thanks. Can't I use image prompt(cpds,faceswap,pyracanny) and inpaint at the same time on foocus?

  • @AlphaTechN
    @AlphaTechN Před 5 měsíci

    How to use variation when there are multiple face in same pic?
    Can't we use variation to alter only face of one subject?

  • @SpartacusNTitusPullo
    @SpartacusNTitusPullo Před 4 měsíci

    more vieos please!!! LORAS NOW LOVE U man dammm

  • @alen7648
    @alen7648 Před 5 měsíci +2

    what would be the follow up that you mention that we can fix it ? :-)

  • @PowersVideo3D
    @PowersVideo3D Před 2 měsíci

    With face swap, what does "stop at" do, and for "weight," should you go closer to 1 or 0 to get it to reflect the face reference more?

  • @robertjag167
    @robertjag167 Před měsícem

    Is it possible to save settings in Foocus when we close it? Saves a lot of time and makes the model more consistent.

  • @keepitshort4208
    @keepitshort4208 Před 5 měsíci

    Having no connection error using fooocus
    Is there a way to fix that ?
    Im using 1660ti tho, would really appreciate the help

  • @riverrat_uk
    @riverrat_uk Před 3 měsíci

    tried this 3 times today on a a project and have to say each time it kicked out a image, was nothing like the faceswap person?

  • @phobus6047
    @phobus6047 Před 3 měsíci

    Why im always having "error" while using inpaint/image prompt mix way ? Always, while using focus colab on web. Is there a reason ?

  • @KINGLIFERISM
    @KINGLIFERISM Před 5 měsíci +1

    Will check this out later. This might be the missing link

  • @ilmondodifaxe8216
    @ilmondodifaxe8216 Před 4 měsíci

    works much better with "variation"! Ah, there's no need to post any prompts :-D

  • @Slayeahlo
    @Slayeahlo Před 5 měsíci

    Interesting to know thanks! Does it matter which model to use?

    • @k5c5
      @k5c5  Před 5 měsíci +1

      I believe different models can "favour" specific faces if they're heavily trained

  • @aidansegura935
    @aidansegura935 Před 5 měsíci +3

    This is Awesome! very very helpful, does this work for other objects as well? I'm trying to add inanimate objects to an already established image, any tips?

    • @k5c5
      @k5c5  Před 5 měsíci +3

      Good question! I imagine not using the advanced FaceSwap checkbox in the Image prompt. Crop the image prompt down to just the object. Then I'd say the inpaint will be a good option.
      Alternatively using the variation with a descriptive text prompt of the scene, including the name of the object in the image prompt.

  • @indhumanoid4928
    @indhumanoid4928 Před 4 měsíci

    How to get side view of the face or change expressions?

  • @Desleiden
    @Desleiden Před 5 měsíci +3

    Nice video!!
    Could you tell me what "Stop At" does please?

    • @k5c5
      @k5c5  Před 5 měsíci +2

      I probably should have explained in the video :D
      The stop at level is the percentage of how "complete" the face swap is before it stops. 1 = 100%, 0.9 = 9% etc.
      A lower stop at should in theory be a lower likeness, but it's kinda hard to know exactly and different per face/reference image.
      Try playing with different levels, 0.9 will be a good default.

  • @gael6290
    @gael6290 Před 5 měsíci +1

    Super video! But I have one question! What does the Stop At do exactly? I can't find any documentation about it!

    • @k5c5
      @k5c5  Před 5 měsíci

      Commented this elsewhere, I probably should have explained in the video :,)
      "The stop at level is the percentage of how "complete" the face swap is before it stops. 1 = 100%, 0.9 = 9% etc.
      A lower stop at should in theory be a lower likeness, but it's kinda hard to know exactly and different per face/reference image.
      Try playing with different levels, 0.9 will be a good default."

    • @gael6290
      @gael6290 Před 5 měsíci

      @@k5c5 I see! It makes sense after the explanation! Thanks for clarifying that! ☺️

  • @CauseOfDeath27
    @CauseOfDeath27 Před 5 měsíci +7

    nice video but, this isn't working for me. It's still an obviously different face then my reference face image. I wish they made it easy to just reference the face exactly as the referenced image...I wouldn't think it would be hard to do but 🤷‍♂

  • @necrolydevlogs3932
    @necrolydevlogs3932 Před 4 měsíci

    Do you have a tutorial how to install thaty program and how to use it ?

  • @noobicorn_gamer
    @noobicorn_gamer Před 5 měsíci

    Aaaaah shit why haven’t I known about this thx a lot

  • @gigasmb
    @gigasmb Před 5 měsíci

    What "Style" must be used for face swap?

  • @josemartins3514
    @josemartins3514 Před 2 měsíci

    Hello, i have a problema. Whem i do a faceswap i have a problema of conection, any tip?

  • @alex18731
    @alex18731 Před 5 měsíci

    hm which model and which style do you use to get this results, my replace faced doesnt look even close to the source image

    • @k5c5
      @k5c5  Před 5 měsíci

      I'm just using Stable Diffusion XL. Which method are you trying? If it's wildly wrong I sometimes try a second pass, using the result of the first try as the output.
      Maybe also try increasing the stop at, to attempt to get a more complete face.

  • @user-mb2bv9pj1z
    @user-mb2bv9pj1z Před 5 měsíci

    @k5c5 Hello Friend. Perhaps you can tell me when I click “mixing image prompt and inpaint” And then I run the generation, for a while I see something happening, and then it gives several errors, they need to start Colab again.

    • @k5c5
      @k5c5  Před 5 měsíci

      I tried to add an update comment to the description, in inpaint click on improve detail from the dropdown

  • @fitnesswind
    @fitnesswind Před měsícem

    How can I generate image like Aitana lopez
    Realistic, lighting, background,deeply realistic image

  • @TanvirsTechTalk
    @TanvirsTechTalk Před 4 měsíci

    is this fooocus or foocus MRE with all these extra options???

  • @giusparsifal
    @giusparsifal Před 2 měsíci

    Thanks but it gives me error when I try it, some hints?

  • @BabuMosae-wt7oc
    @BabuMosae-wt7oc Před 4 měsíci

    how to install controlnet in fooocus and use in Colab?

  • @williammartin4054
    @williammartin4054 Před 5 měsíci +1

    Thanks for the video! For me it doesn't work very well. Can you give me some tips? I have problems in obtaining a credible face swap

    • @k5c5
      @k5c5  Před 5 měsíci +2

      Which method did you try? I find that the variation provides a more credible overall image, but the inpaint doesn't alter the rest of the image.
      Is your reference face cropped? I found that providing a tighter crop on there helped.
      You can also do a second run, using the first pass as your reference image and keeping the same face swap.

    • @williammartin4054
      @williammartin4054 Před 5 měsíci

      I have problems with both methods, and I also tried to use a face swap and a prompt genration in the same time. For me both methods gave mediocre results and I don't know what I'm doing wrong@@k5c5

    • @DackelDelay
      @DackelDelay Před 5 měsíci

      @@k5c5 instead of using pre-croped faces, fooocus also allows for the selection of the promted images' area (i.e. the face) in the image promt directly via the pen button.

    • @k5c5
      @k5c5  Před 5 měsíci

      Yeah exactly, you're able to crop directly inside of Fooocus!

  • @jozefgallo3413
    @jozefgallo3413 Před 5 měsíci +1

    What GPU do u have please? It always takes me like 5 minutes to make an image

    • @k5c5
      @k5c5  Před 5 měsíci

      I run it in Google colab, my intel Mac isn't up to the job!

  • @ShahabEslamian
    @ShahabEslamian Před 5 měsíci

    Is it better than Roop?

  • @AjwadArham
    @AjwadArham Před 17 dny

    I want a tip for a 100% face swap, not a mixture of inpaint and input

  • @mestesso2247
    @mestesso2247 Před 5 měsíci

    Any suggestion for a good value of "stop at" and "weight"?

    • @hmm-m
      @hmm-m Před 3 měsíci

      For me 1 and 1 works best in "Vary (subtle)". Inpaint doesn't work well for me, faces don't get cloned. They are different. I don't know which model he's using etc.

    • @Designing-hc5pz
      @Designing-hc5pz Před 2 měsíci

      @@hmm-m it is not about model just put the vaues at 1 & 1.2 on face swap and ur work done

  • @AllTheClips420
    @AllTheClips420 Před 5 měsíci +1

    Can you explain what the "Stop At" value means?

    • @k5c5
      @k5c5  Před 5 měsíci

      Commented this elsewhere, I probably should have explained in the video :,)
      "The stop at level is the percentage of how "complete" the face swap is before it stops. 1 = 100%, 0.9 = 9% etc.
      A lower stop at should in theory be a lower likeness, but it's kinda hard to know exactly and different per face/reference image.
      Try playing with different levels, 0.9 will be a good default."

  • @allod9231
    @allod9231 Před 5 měsíci +1

    I don't know why but when using inpaint and faceswap, the generation process change completely the face at the half (step 30), Any idea :/ ?

    • @matiasdufey8385
      @matiasdufey8385 Před 5 měsíci

      Same here

    • @matiasdufey8385
      @matiasdufey8385 Před 5 měsíci +1

      Fixed it, in inpaint click on improve detail, I think the video skips this part

    • @k5c5
      @k5c5  Před 5 měsíci

      @@matiasdufey8385 yeah nice spot - I tried to add it as an update to the video comment but can't edit the original!

    • @hmm-m
      @hmm-m Před 3 měsíci

      @@matiasdufey8385 Then it doesn't clone the face from image input... For me only Vary (subtle) works best with face cloning.

  • @TheFlyer76
    @TheFlyer76 Před 4 měsíci

    Hi, i try the 2 methods but when i click on generate nothing work 🤔

  • @tneper
    @tneper Před 5 měsíci

    I can't get the inpaint method to work. It works up until about step 30, then every time it completely flips to a totally random face. It's as if it's ignoring the Stop At for the face swap setting.

    • @k5c5
      @k5c5  Před 5 měsíci +1

      I tried to add an update comment to the description, in inpaint click on improve detail from the dropdown

    • @tneper
      @tneper Před 5 měsíci

      @@k5c5 That did the trick, thank you!

  • @samsungnote8817
    @samsungnote8817 Před 3 měsíci

    What is the thing in promt window next to the generate button ?

  • @williammartin4054
    @williammartin4054 Před 5 měsíci

    My program stops (^C appears in the console) when I'm running the inpaint method. Any ideas?

    • @k5c5
      @k5c5  Před 5 měsíci

      For me on the free Google colab version it crashes more frequently. With the paid version I can run it ok. Have you tried running it locally?

    • @k5c5
      @k5c5  Před 5 měsíci

      I managed to fix this in my colab so it doesn't keep happening. Check out the colab linked here, the second code block installs some xtra fooocus dependency that solves the error: czcams.com/video/E37Tdcx2DyA/video.html

  • @donschannel9310
    @donschannel9310 Před 5 měsíci +1

    can you help me when i generate anything it starts to lag first then creates 1 images in minutes!

    • @k5c5
      @k5c5  Před 5 měsíci

      What is your setup? Are you running it locally or in Google Colab? The Fooocus Github issues are a good place to put things like this if it's an issue with a specific machine!

    • @donschannel9310
      @donschannel9310 Před 5 měsíci

      @@k5c5 idk i just saw a video how to download it so i guess it's running locally not in google colab

  • @shortsbysaukat3654
    @shortsbysaukat3654 Před 3 měsíci

    Where is the link to open it

  • @MH-kj9hh
    @MH-kj9hh Před 5 měsíci +1

    I keep getting the same womans face, half way through the generation the fuzzy preview looks like it is heading towards the very male mustached face I put as the face-swap and then at some point it just snaps over to a female face, the same female face every single time

    • @k5c5
      @k5c5  Před 5 měsíci

      Which model are you using?

    • @MH-kj9hh
      @MH-kj9hh Před 5 měsíci +2

      @@k5c5 the one that gets automatically downloaded when you install Fooocus. I've actually gotten it to do some non-female faces but they don't look very much like the reference photo. What's annoying is half way through while watching the preview it looks at times like it's getting verrryyy close to the reference but around step 20 out of 30 or 40 out of 60 it's starts deviating away

    • @matiasdufey8385
      @matiasdufey8385 Před 5 měsíci

      Fixed it, in inpaint click on improve detail, I think the video skips this part

  • @MartavanEckDesigns
    @MartavanEckDesigns Před 2 dny

    Thank you. YOu sound like Elon Musk :)

  • @YudikaNababan
    @YudikaNababan Před 2 měsíci

    But the lighting not blended that well.

  • @alexanderkudrin562
    @alexanderkudrin562 Před 3 měsíci

    If you take a face from a photo and paste it into the same photo, then you will no longer recognize the person. So your method is not working

  • @yelagin
    @yelagin Před 5 měsíci +1

    Неа, не работает, лицо непохоже, только общий типаж передаётся - it is not working

  • @mikerotchburns1622
    @mikerotchburns1622 Před 4 měsíci

    you kinda sound like elon musk

  • @VoodooD0g
    @VoodooD0g Před 4 měsíci

    Second was much better, the first one basically did nothing, not even the eye color, cmon man ^^

  • @gu9838
    @gu9838 Před 5 měsíci +2

    cant get this stupid f-ing thing to work. cant get it to work in stable defusion automattic 1111 too i mean seriously ...can do eveything else but this crap