Fooocus UI - How to face swap - Stable Diffusion

Поділитися
Вставка
  • Опубліковано 2 сер 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

КОМЕНТАРІ • 104

  • @DrDaab
    @DrDaab 6 місяців тому +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 ! ! ! !

  • @deltapulse
    @deltapulse 7 місяців тому +4

    Amazing! Just what I was looking for

  • @JustinMorgan
    @JustinMorgan 7 місяців тому +8

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

  • @timonjanosi4219
    @timonjanosi4219 7 місяців тому

    the best solution so far!

  • @user-kk3mc3kf2f
    @user-kk3mc3kf2f 7 місяців тому

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

  • @rachinter
    @rachinter 7 місяців тому +1

    Thanx bro... Looking forward to more Fooocus vids

  • @clangsison
    @clangsison 4 місяці тому

    thank you! may your channel continue to grow

  • @Good4love
    @Good4love 7 місяців тому

    thank you for the 2nd tip, working well

  • @MrAirHD21
    @MrAirHD21 7 місяців тому +2

    nice work - thank you

  • @DesignerVIsuals
    @DesignerVIsuals 4 місяці тому +1

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

  • @coofgermany
    @coofgermany 7 місяців тому

    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?

  • @Grub370
    @Grub370 5 місяців тому

    Great video, thanks!

  • @TheKillingPerfection
    @TheKillingPerfection 7 місяців тому +1

    Nice job

  • @jankucera8505
    @jankucera8505 6 місяців тому +1

    best guide on face swapping there is

    • @iangillan1296
      @iangillan1296 6 місяців тому

      indeed. This man knows how to use this program feature

  • @AlphaTechN
    @AlphaTechN 7 місяців тому

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

  • @Gromst3rr
    @Gromst3rr 3 місяці тому

    thank you, this is very useful!

  • @xviovx
    @xviovx 7 місяців тому +1

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

  • @robertjag167
    @robertjag167 3 місяці тому

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

  • @basilica99
    @basilica99 6 місяців тому

    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!

  • @alen7648
    @alen7648 7 місяців тому +2

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

  • @indhumanoid4928
    @indhumanoid4928 6 місяців тому

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

  • @ahmetbabaninfeneri
    @ahmetbabaninfeneri 4 місяці тому

    very thank you my friend.

  • @lilillllii246
    @lilillllii246 4 місяці тому

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

  • @necrolydevlogs3932
    @necrolydevlogs3932 6 місяців тому

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

  • @TheAlex91fifa
    @TheAlex91fifa 6 місяців тому

    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?

  • @PowersVideo3D
    @PowersVideo3D 4 місяці тому

    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?

  • @gigasmb
    @gigasmb 7 місяців тому

    What "Style" must be used for face swap?

  • @riverrat_uk
    @riverrat_uk 5 місяців тому

    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?

  • @keepitshort4208
    @keepitshort4208 7 місяців тому

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

  • @BabuMosae-wt7oc
    @BabuMosae-wt7oc 6 місяців тому

    how to install controlnet in fooocus and use in Colab?

  • @TanvirsTechTalk
    @TanvirsTechTalk 6 місяців тому

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

  • @naveenkumar.t9830
    @naveenkumar.t9830 7 місяців тому +4

    Bro plzz try to upload more video about fooocus and comfyui

  • @giusparsifal
    @giusparsifal 4 місяці тому

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

  • @alexa.1995
    @alexa.1995 Місяць тому

    Hi, is it possible that something has changed since the last update? I've noticed that "Mixing Image Prompt and Inpaint" no longer works. The result is largely the same as the original image. Does anyone know more?

  • @josemartins3514
    @josemartins3514 4 місяці тому

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

  • @phobus6047
    @phobus6047 5 місяців тому

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

  • @drivingaroundlasvegas4273
    @drivingaroundlasvegas4273 27 днів тому

    This was helpful. Fooocus looks different now though and I cannot locate the face swap feature. There is no advanced check box anymore and now it shows a "hurt me plenty" check box. Just looks different. Today is July 6th and I'm running the latest version 1.52.0. Can you make an updated video? :)

  • @AjwadArham
    @AjwadArham 2 місяці тому

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

  • @ShahabEslamian
    @ShahabEslamian 7 місяців тому

    Is it better than Roop?

  • @fitnesswind
    @fitnesswind 3 місяці тому

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

  • @TheFlyer76
    @TheFlyer76 6 місяців тому

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

  • @shortsbysaukat3654
    @shortsbysaukat3654 5 місяців тому

    Where is the link to open it

  • @aidansegura935
    @aidansegura935 7 місяців тому +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  7 місяців тому +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.

  • @Desleiden
    @Desleiden 7 місяців тому +3

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

    • @k5c5
      @k5c5  7 місяців тому +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.

  • @KINGLIFERISM
    @KINGLIFERISM 7 місяців тому +1

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

  • @samsungnote8817
    @samsungnote8817 5 місяців тому

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

  • @SpartacusNTitusPullo
    @SpartacusNTitusPullo 6 місяців тому

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

  • @user-mb2bv9pj1z
    @user-mb2bv9pj1z 7 місяців тому

    @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  7 місяців тому

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

  • @alex18731
    @alex18731 7 місяців тому

    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  7 місяців тому

      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.

  • @AllTheClips420
    @AllTheClips420 7 місяців тому +1

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

    • @k5c5
      @k5c5  7 місяців тому

      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."

  • @Slayeahlo
    @Slayeahlo 7 місяців тому

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

    • @k5c5
      @k5c5  7 місяців тому +1

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

  • @gael6290
    @gael6290 7 місяців тому +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  7 місяців тому

      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 7 місяців тому

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

  • @jozefgallo3413
    @jozefgallo3413 7 місяців тому +1

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

    • @k5c5
      @k5c5  7 місяців тому

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

  • @CauseOfDeath27
    @CauseOfDeath27 7 місяців тому +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 🤷‍♂

  • @mestesso2247
    @mestesso2247 7 місяців тому

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

    • @hmm-m
      @hmm-m 5 місяців тому

      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 4 місяці тому

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

  • @ilmondodifaxe8216
    @ilmondodifaxe8216 6 місяців тому

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

  • @noobicorn_gamer
    @noobicorn_gamer 7 місяців тому

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

  • @MattyMilligan
    @MattyMilligan 5 місяців тому

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

  • @donschannel9310
    @donschannel9310 7 місяців тому +1

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

    • @k5c5
      @k5c5  7 місяців тому

      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 7 місяців тому

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

  • @williammartin4054
    @williammartin4054 7 місяців тому +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  7 місяців тому +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 7 місяців тому

      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 7 місяців тому

      @@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  7 місяців тому

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

  • @williammartin4054
    @williammartin4054 7 місяців тому

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

    • @k5c5
      @k5c5  7 місяців тому

      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  7 місяців тому

      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: ua-cam.com/video/E37Tdcx2DyA/v-deo.html

  • @TeamspeakUser42
    @TeamspeakUser42 7 місяців тому +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 7 місяців тому

      Same here

    • @matiasdufey8385
      @matiasdufey8385 7 місяців тому +1

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

    • @k5c5
      @k5c5  7 місяців тому

      @@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 5 місяців тому

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

  • @tneper
    @tneper 7 місяців тому

    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  7 місяців тому +1

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

    • @tneper
      @tneper 7 місяців тому

      @@k5c5 That did the trick, thank you!

  • @MH-kj9hh
    @MH-kj9hh 7 місяців тому +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  7 місяців тому

      Which model are you using?

    • @MH-kj9hh
      @MH-kj9hh 7 місяців тому +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 7 місяців тому

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

  • @YudikaNababan
    @YudikaNababan 4 місяці тому

    But the lighting not blended that well.

  • @MartavanEckDesigns
    @MartavanEckDesigns 2 місяці тому

    Thank you. YOu sound like Elon Musk :)

  • @alexanderkudrin562
    @alexanderkudrin562 5 місяців тому

    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 7 місяців тому +1

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

  • @mikerotchburns1622
    @mikerotchburns1622 6 місяців тому

    you kinda sound like elon musk

  • @VoodooD0g
    @VoodooD0g 6 місяців тому

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

  • @gu9838
    @gu9838 7 місяців тому +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