Stable Diffusion - FaceSwap and Consistent Character Tips - Part 1

Sdílet
Vložit
  • čas přidán 7. 06. 2024
  • Master Fooocus and Stable Diffusion for Creative Image Generation! 🎨 In this Stable Diffusion video I go over some tips on consistent character creation and how to use FaceSwap and get better results. #Fooocus #StableDiffusion #DigitalArt #ImageManipulation #CreativeTools
    This is part of my ongoing series of videos on installing and using Fooocus for Stable Diffusion. Fooocus is a great interface for using Stable Diffusion and is very easy to get started. It also will run on systems with only 4GB VRAM.
    I am running on an i5 32GB RAM Nvidia 3070 8GB VRAM
    If you find the video useful and would like to tip, CZcams does have the Super Thanks option. Those are greatly appreciated so I can have my coffee!!
    ☕ BUY ME A COFFEE: ko-fi.com/kleebztech
    Also I am a verified creator with Brave and do accept BAT for users of the Brave browser.
    Download Fooocus: github.com/lllyasviel/Fooocus
    How to install Fooocus video: • Stable Diffusion - Dow...
    Fooocus Beginners Guide: • Super Easy Stable Diff...
    Fooocus Upscales and Variations: • Stable Diffusion - Foo...
    Checkpoints and LoRAs the Basics: • Stable Diffusion - Che...
    Fooocus Poses and FaceSwap - Image Prompts: • Stable Diffusion - Pos...
    Zoom with Outpainting: • Stable Diffusion - Zoo...
    Inpainting with Fooocus - Don't Regenerate, Fix!: • Stable Diffusion - Inp...
    Background Replacement with Fooocus: • Stable Diffusion - Bac...
    Fooocus Tips and Tricks (and AI Hands) • Overlooked Fooocus Tip...
    Stable Diffusion - Styles in Fooocus - How do they work?: • Stable Diffusion - Sty...
    00:00 Intro
    00:43 Consistent Character Tips
    05:15 FaceSwap
    15:00 Inpainting with FaceSwap
    19:00 FaceSwap with Styles
    20:45 FaceSwap with Anime Model
  • Věda a technologie

Komentáře • 76

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

    If you find the video useful and would like to tip you can buy me some electricity for all these image generations. It is greatly appreciated! ko-fi.com/kleebztech

  • @Bamigaru
    @Bamigaru Před 3 měsíci +1

    super good video as always! thanks!

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

    Very nice. Thank you! I would love to see a full workflow to create constent characters in where the person is not looking at the camera

  • @mohanish35
    @mohanish35 Před 3 měsíci +1

    Amazing!! Your videos are God sent

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

      Thank you! Always love to hear that they help someone with ideas.

  • @dussio22
    @dussio22 Před 3 měsíci +1

    pretty good video! very useful tips

  • @asheshsrivastava8921
    @asheshsrivastava8921 Před 3 měsíci +1

    Hey great video, please also make a video about swapping products/ consistent products

  • @marcusfonseca6673
    @marcusfonseca6673 Před 3 měsíci +1

    Very well done video.

  • @zraieee
    @zraieee Před 3 měsíci +1

    wonderful, thanks

  • @MeMine-zu1mg
    @MeMine-zu1mg Před 3 měsíci +1

    I used a 2x2 grid, I went and had a reference pack i bought of photos of people from all different angles. Yiu viuld just as easily use a video or movie to get several angles of a person. Then I used ComfyUI to create a depth pass for the angles I wanted to use.

  • @zoezerbrasilio2419
    @zoezerbrasilio2419 Před 3 měsíci +2

    Weak variation (subtle) can give you the smile, keep the image reference, mix with variation and it will replace, use the prompt to direct the change, mouth and eyes, I could get other expressions doing the same trick

    • @KLEEBZTECH
      @KLEEBZTECH  Před 3 měsíci +1

      Yes in further testing I have been able to get decent results. You do have to lower the weight and stop at a little and it may not look exactly the same but very close.

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

    HI. Can you make a full body texture video to use the same characters but with full body, like in artflow? Thank you

  • @nikosmanolopoulos3711
    @nikosmanolopoulos3711 Před 3 měsíci +1

    Thank you a lot for your help. Could you please make a video for body consistency?

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

      If I find a good way I will but I really have not. I do find that using celebrities names like I mention for the face also helps with the body. Although not as well.

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

      Exactly this is important as well

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

      @@KLEEBZTECH that would be great! :)

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

    👍👍😍😍

  • @wernerblahota6055
    @wernerblahota6055 Před 3 měsíci +1

    👍👍👍👍

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

    to be honest when I do the grid the faces are get actually be significantly different. Also in the video, I think the size of the lips is rather different from one picture to the next.

  • @GES1985
    @GES1985 Před měsícem +1

    I might have figured it out. Although, still semi time consuming, but with great results.. Go create a MetaHuman, for Unreal Engine 5. Problem solved.

  • @johannseifert8300
    @johannseifert8300 Před 3 měsíci +1

    I ran into the Problem, that the face swap messes up my hair. To be specific the orginal has long hair but it always crops some weird hairstyle around the face thats rather short. Any tipps?

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

      Have you tried masking more or less of the area?

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

    I have issue with high ram usage with fooocus, i have 16gb ram and rtx 3060. As soon as i run webui my ram will go to 80, while generating image it will use almost 100% of ram but vram will use about 18%.

    • @KLEEBZTECH
      @KLEEBZTECH  Před 3 měsíci +1

      Have you looked over this? Check out the stuff on System Swap. I have 32GB and when I run Fooocus it uses about 9-10 GB of RAM it seems since mine will go up to 16GB total used. github.com/lllyasviel/Fooocus/blob/main/troubleshoot.md

    • @StoryFBMizostory
      @StoryFBMizostory Před 3 měsíci +1

      @@KLEEBZTECH already checked it but it doesnt seems to work, on my system how much does your vram memory goes up. For mw it looks like my ram do all the works and vram do a little work, since vram usage is about 20-30% only

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

      Yeah mine uses 100% of my VRAM when generating. I assume you have looked at the CMD window to see if anything in there that might give you a clue? Any errors?

    • @KLEEBZTECH
      @KLEEBZTECH  Před 3 měsíci +1

      Is this a new download of Fooocus or something you may have made some changes to settings? Because another thing to try is a fresh download and see if it still does it. I have multiple instances of Fooocus downloaded myself since I do tend to mess around with things.

    • @StoryFBMizostory
      @StoryFBMizostory Před 3 měsíci +1

      @@KLEEBZTECH i dnt change anything, i just dnt install on my c drive. I will check cmd if there is some erro or code not

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

    what if i already have the face made and want to do a grid

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

      Could try Faceswap to see how it does.

  • @onlineispections
    @onlineispections Před 3 měsíci +2

    HI. How do you get a grid with the same face but different angles (frontal, left profile, right profile, three quarters) to use them to create storyboards with other characters with the mix image prompt and impaint,Because when I use them, they always look into the camera, they're all frontal, okay?

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

      I have not found a great way yet. You can also try terms like character sheet.

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

      @@KLEEBZTECH ok, can you tell me which prompt I need to write to have a grid with four photographs for four different face angles? thank

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

      Using a grid reference and putting Canny can do it, but you will have to inpaint each face separetelly for the consistency after the first grid generation

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

      @@zoezerbrasilio2419 We know that. With the mix, the question was another: what is the prompt to create a grid with different angles?

    • @KLEEBZTECH
      @KLEEBZTECH  Před 3 měsíci +1

      I recorded this which should help you get different angles. There is not a set prompt but the first part of this video will show how to get them. czcams.com/video/MntZa4qLwn8/video.html@@onlineispections

  • @furchidc7249
    @furchidc7249 Před 3 měsíci +1

    Amazing video. Just a question. When i use image prompt faceswap with inpaint together fooocus gives me an error. I use fooocus_colab ipynb with google, free version. If I pay 100 will I be able to do it without the error? My PC has a Ryzen 5 5600 and an RX 6650 XT, 16 gb ram 3200, solid disc, etc.

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

      I would suggest looking on the GitHub discussions for fooocus. I haven't used it yet on colab. I just never had great luck with anything on there when I've used things in the past. I think I saw a discussion there or on Reddit about that very subject recently.

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

      @@KLEEBZTECH There is another way to use fooocus without google colab? Thanks for the answer

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

      @@KLEEBZTECH Another question, my graphic card isnt Nvidia, can I use it anyways or it has to be Nvidia?

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

      rundiffusion.com and diffusionhub.io are places that you can run Fooocus online but I am not familiar with them. I do know some people use the paid Colab with good results but I really don't know a ton on that. You can run it without Nvidia but I have not tested to see how big of a performance difference there is but from reading on the Github page it will likely be about 3x slower than with Nvidia. There are instructions on the main GitHub page when you scroll down explaining what to do for AMD GPUs. Looks like you just need to edit the run.bat file. I actually just got access to an AMD card but have not been motivated to swap it out and try it yet to compare.

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

      @@KLEEBZTECH Thanks!

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

    Which is the best base model we can use for face swap? Can we achieve better results by combining two base models at the same time?

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

      I have not done enough testing to determine if one is better than another when it comes to the checkpoints.

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

    faceswap doesn't work if the image source is external, not an image generated from fooocus..?

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

      It can but it might not work as well. Depends on the source image.

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

    Can't seem to get an actual grid. I gave the same prompt

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

      Check out the second video. I have more tips. czcams.com/video/MntZa4qLwn8/video.html

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

    1:36 It still don't get clear to me what the seed really does... I guess keeping the same it goes to the log file and takes the same config as the other? It's like an ID? But what happens if you also put an input image? My principal issue e.g. is when I try to keep my face on images with other people and make an upscale (I already tried mixing upscale with face swap in debug options). I had one result that it seemed a little bit to my face but I can't keep the same face :(. Now I'm downloading Fooocus MRE to try image-2-image and more...

    • @KLEEBZTECH
      @KLEEBZTECH  Před 3 měsíci +1

      The "seed" in AI image generation acts as an initial starting point for the algorithm to generate images. Think of it as a unique key that determines the randomness of the output. It is just a number used to create the randomness. The same seed is useful for testing but otherwise random is usually what you want.

    • @KLEEBZTECH
      @KLEEBZTECH  Před 3 měsíci +1

      And for faceswap I find .9 or above and weight of .9 of above work better.

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

      I just tried upscale fast 2x and worked! Using the same seed. But some errors in the eyes (like anime styled). I will try fixing it with inpaint...@@KLEEBZTECH

    • @KLEEBZTECH
      @KLEEBZTECH  Před 3 měsíci +1

      Yes fast upscale will not change the image since it is more of a traditional upscale.

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

    What seed actually mean? Why u wanna keep it stable and when

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

      The "seed" in AI image generation acts as an initial starting point for the algorithm to generate images. Think of it as a unique key that determines the randomness of the output. Using the same seed with the same generation parameters will produce the exact same image every time.

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

      Same seed I find gives more similar face I find in this case.

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

    how do i ask AI to remove something, sometimes he generates bunch of objects that were not in the promt, how to remove them? 🥺

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

      Inpainting can be used for that. Depending on what you are trying to remove it can be a little hit or miss. You can't really just tell it to remove something though and need it to generate the area again. You can alter the prompts when doing it to help remove the items. I might make a separate video on that sort of thing soon. I do have videos that cover different aspects of inpainting but not specifically that.

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

      To give an example, I created an image of a woman having coffee and it put two cups in front of her. I masked out one with inpainting to regenerate that area. Of course it usually added another cup in the same place. So I change the prompt to say empty table and with a few attempts it removed the item and generated an empty area in that spot.

    • @viktoriialavrenova911
      @viktoriialavrenova911 Před 3 měsíci +1

      @@KLEEBZTECH got it, thanks a lot!

  • @smuki196
    @smuki196 Před 3 měsíci +1

    I believe I've seen that if you use the inpainting faceswap you need to select "improve details" not "inpaint/outpaint". To me it seems that it creates more similar results. The "inpaint/outpaint" even produced garbage.

    • @KLEEBZTECH
      @KLEEBZTECH  Před 3 měsíci +1

      I get much worse results that way in all the testing I did. But I am always looking for a better way. When I would do it that way it did not blend things very well and was always obvious that the face was swapped.

    • @KLEEBZTECH
      @KLEEBZTECH  Před 3 měsíci +1

      But you got me looking into better ways of doing it. I did find that if you use the vary subtle after, it blends things in decently and maintains the look for the most part...

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

      @@KLEEBZTECH good point, I'll try that, too

  • @slaznum1
    @slaznum1 Před 3 měsíci +2

    ANOTHER WAY.....is train a LoRa. But more work for sure....

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

      That is for sure a good way if you can. Although I have one trained and don't get the best results. Of course the way it was trained has a big part of that. I have found a LoRA and FaceSwap can be a good mix.