Stable Diffusion - Inpainting Real Photos - Add/Remove Objects - Fooocus

Поделиться
HTML-код
  • Опубликовано: 28 май 2024
  • Master Fooocus and Stable Diffusion for Creative Image Generation! 🎨 In this Stable Diffusion video I will go over editing and inpainting real photos in Fooocus. These techniques also work for generated images. Learn how to remove things from images. #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, RUclips 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...
    FaceSwap and Consistent Character TipsPart 1: • Stable Diffusion - Fac...
    FaceSwap and Consistent Character Tips - Part 2: • Stable Diffusion - Fac...
    00:00 Intro
    00:35 Remove Objects from Photos
    05:00 Adding Objects to Photos
    09:30 Working with Old Photos
  • НаукаНаука

Комментарии • 68

  • @KLEEBZTECH
    @KLEEBZTECH  Месяц назад

    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

  • @romanmakarov2021
    @romanmakarov2021 17 дней назад +1

    Absolute thank you!

  • @b.s.design
    @b.s.design 2 месяца назад +3

    Thank You!

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад

      You're welcome as always.

  • @a_vin7644
    @a_vin7644 2 месяца назад +1

    Many tnx. I'm so many years worked with PS. I will try find time to compare this method. I'm interesting if there are place for improve photos from smartphone and don't take a big camera to trip.

  • @TomiTom1234
    @TomiTom1234 2 месяца назад +2

    As always great tutorial.
    The good thing about FOOOCUS is the easy way to inpaint any picture, I find it better than A1111 and easier to use.
    I was making mistakes as you mentioned here, when I want to delete something I type "erase or delete" 😂 and it was driving me crazy.

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад +1

      Yeah I really try to avoid the others. A1111 has gotten so crowded. Comfy I never had a huge issue with. Personally I think everybody should have Fooocus as one of their tools.

  • @ragemax8852
    @ragemax8852 Месяц назад +1

    Thank you as this absolutely works, I've been using Leonardo AI to remove things, but was trying to figure out a way to do it within Fooocus for free offline. This helped as you basically enter in whatever is in the background to get rid of the object. Like this works great too for people wanting to get rid of longer hair for a shorter cut. You can enter in the shirt and the background image and it cuts it out.

    • @KLEEBZTECH
      @KLEEBZTECH  Месяц назад

      You're welcome! No need to be wasting money.

  • @danielchoritz1903
    @danielchoritz1903 2 месяца назад +2

    The styles are just prompts? this is real helpful for me, thx

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад +1

      More info ruclips.net/video/Sr2yXOSexy0/видео.html

  • @lilillllii246
    @lilillllii246 2 месяца назад

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

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад +1

      You can enable image prompt with inpainting in the debug tools.

    • @lilillllii246
      @lilillllii246 2 месяца назад

      @@KLEEBZTECH I can't see the inpainting in the debug tools? I copy yours, but I'm a beginner

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад

      Once you check off Developer Debug Tools you should see 4 new tabs. Under the Control tab you should find "Mixing Image Prompt and Inpaint"

  • @TheJwwinter
    @TheJwwinter 2 месяца назад +1

    I am using A1111. Is fooocus much different from A1111 in term of capabilities or is it just a UI over SD?
    especially for inpainting/outpainting.

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад

      A1111 is going to be more capable if you know how to use everything. They are both using SD but Fooocus does do some additional tweaks in the background. In my opinion the inpainting in Fooocus is the best and the reason I started using it. Then I realized I could do most of what I needed with it instead of A1111 or ComfyUI. And since it just runs from its own folder and no need to install stuff I see no reason not to use it when I can. Just extract and run. Plus it can be configured so you can share the same models between the different UIs. For SD 1.5 it is probably best to use the others since Fooocus only supports SD 1.5 as refiner which allows you to use 1.5 LoRAs.

  • @Radiostate101
    @Radiostate101 2 месяца назад

    I'm super stoked and bummed out at the same time. Stoked about this awesome video on a topic I really needed, but bummed 'cause I can't seem to get it to work following the recommendations. No matter what-whether it's against a wall, in a room, or any other spot-I need a person in the frame, and nothing's working. It just keeps redrawing what's already there on a loop, no matter the settings or models. It's frustrating as hell

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад

      You have a photo you are trying to generate an AI person into and it won't generate a person? You are masking an area and putting the persons description into the prompt and just gives you the exact same thing or similar?

    • @Radiostate101
      @Radiostate101 2 месяца назад

      @@KLEEBZTECH Yeah, I've got this photo where I'm trying all sorts of stuff-masking, tweaking settings, turning off styles and random, switching models-but it just keeps redrawing the same area. And even though it can remove objects like you showed in your tutorial, it can't seem to draw anything in at all. The only thing that kinda works is anime, but I need realism. Your channel's been a real find for me.

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад

      You do want to make sure you use the random seed because otherwise it will just keep doing the same thing. Usually most people have issues with removing things and not having something else put into the spot that is masked. Have you messed with any other settings in the debug section that might be causing an issue? Not sure if you have tried shutting down Fooocus and restarting to reset anything you may have changed and trying again.

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад

      Have you tried both regular inpaint and the modify content option? Depending on the image and what you are doing that can be the better option. And then just have the description of what you are adding. For example I just masked a section of an image of a woman sitting on a bed and masked the area next to her and chose Modify Content method in the dropdown menu and put "baby sitting on bed" in the additional prompt with nothing in the normal prompt and it added a baby.

    • @Radiostate101
      @Radiostate101 2 месяца назад +1

      @@KLEEBZTECH Started working in inpaint with the developer debug mode feature enabled. Outpaint only works with enabled styles. Thank you for your help!

  • @haljordan1575
    @haljordan1575 Месяц назад

    What if you want to use an image you already have? like an object or specific character that you designed and you want to place it in the image, or change one of those people's clothes without affecting the others?

    • @KLEEBZTECH
      @KLEEBZTECH  Месяц назад

      You can't really merge two images in that way. If you want to change the clothing you could just mask that and generate new clothing.

    • @haljordan1575
      @haljordan1575 Месяц назад

      @@KLEEBZTECH I know with fooocus it may be a stretch, but this guy does it almost easily in comfyUi with probably very new tools, ruclips.net/video/HE9aC8hp3VQ/видео.htmlsi=4l9IOe9FS7ZS8miz.

    • @KLEEBZTECH
      @KLEEBZTECH  Месяц назад

      Those are the types of circumstances that ComfyUI is nice. I think many of these tools will come to Fooocus eventually in some way.

  • @musicalstation101
    @musicalstation101 2 месяца назад

    Can this be used to remove color make photo like drawing

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад +1

      This might be more of what you are looking for. This is more towards anime but the same idea could be used for other styles. You will want to use only the styles that are geared towards that like maybe line drawing or pencil sketch drawing. You may need to force it more that I did with anime since the anime model is geared more towards anime which makes that easier. ruclips.net/video/PuC2AVrQXTs/видео.html

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад +1

      I just tried it with "pencil sketch drawing" style and in my prompt I said black and white pencil drawing and it worked pretty well.

  • @Doddibot
    @Doddibot 2 месяца назад +1

    This answers why I kept getting keys in the image: SAI Anime style contains 'key visual' in the prompt!

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад

      I was just thinking about making videos analyzing the styles. Nothing super scientific or anything. There are many things in these styles that may impact the results.

  • @khalilMacdonalds
    @khalilMacdonalds Месяц назад

    Thank you very much for this video. I learned things I always wondered about I have a question, please. I have a cartoon image and I would like to modify it so that I delete the face of a boy and put the face of another boy that I have. Can I do that? ❤❤

    • @KLEEBZTECH
      @KLEEBZTECH  Месяц назад +1

      Should be able to. Of course AI does not always like to cooperate. But using faceswap and inpainting you should be able to. I do have some videos on those subjects. You will need to enable Inpainting and image prompt in the debug menu. Might need to adjust styles.

    • @khalilMacdonalds
      @khalilMacdonalds Месяц назад +1

      @@KLEEBZTECH Thank you actually I use this program bass Google Collab and I cannot download it on my medium-powered computer I will search for the videos you are talking about and watch them ❤️❤️

  • @ShahriyarAli
    @ShahriyarAli 2 месяца назад

    Is there anyway to include an image object instead of generating an object using inpaint? For eg. getting my own dog into the beach image. And also, a transparent bg with an object and generate it's background?

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад +1

      You could take an image of your dog and using the replace background option in inpainting. So technically for either one you could use that option. But putting your dog on another actual photo of a beach would not really be possible. Although you might be able to use it to blend the things in better after editing in other software.

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад +1

      ruclips.net/video/fARdZK2fCPo/видео.html

    • @ShahriyarAli
      @ShahriyarAli 2 месяца назад +1

      @@KLEEBZTECH got it! Will try inpaint properly this time. Thanks for this!

  • @lorenzodecarlo9125
    @lorenzodecarlo9125 2 месяца назад

    Howesome tips! i follow u!
    What kind of models can i use in fooocus? Only SDXL LoRA? Where I can find a full list? Your hel will be appreciate.

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад +1

      As the primary model you must use SDXL. You can use a 1.5 model as a refiner which does allow for 1.5 LoRAs to be used. civitai.com/ is a good place, And if using with just SDXL make sure to grab the ones for SDXL.

    • @lorenzodecarlo9125
      @lorenzodecarlo9125 2 месяца назад

      So SDXL as primary model and a 1.5 for Refiner. And for LoRA 1,...,4? It is better to use only a primary + refiner models? I tried and now I'm in the experiment phase, but I can't see correlation and "rules of thumbs" for models combinations. Thank you for your support. 🎉

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад +1

      You can use any model as a refiner. But SDXL must be the primary model. Not sure if that was your question. When you choose a refiner you will see some more info below for instructions on where to adjust the refiner switch as recommended by Fooocus. I have not really experimented much with using 1.5 stuff in Fooocus.

  • @wernerblahota6055
    @wernerblahota6055 2 месяца назад +1

    👍👍👍👍

  • @MPCDesenvolvimentoWeb
    @MPCDesenvolvimentoWeb 2 месяца назад

    Fooocus is very slow for my PC, I use "forge", do you have "forge" tutorials?

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад

      I do not yet. I may at some point but I still have a bunch more planned for Fooocus since it is my primary tool at this time. I'd also need to spend much more time with Forge than I have.

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад

      Have you tried using any of the lightning models? I haven't dive too much into those yet and still have to figure out the best settings.

  • @masterzed1
    @masterzed1 2 месяца назад +1

    11:06 😂😂😂 gotch ya! UFOS are REAL!!!

  • @GES1985
    @GES1985 6 дней назад

    My wedding photos don't have my wifes wedding ring in them, and I want to add it in. How can I "crop" my wifes ring from one photo, and get it onto our wedding photo?

    • @KLEEBZTECH
      @KLEEBZTECH  6 дней назад +1

      That would not be easy with these sorts of tools. You could use a mix of image prompts and inpainting to get something that may look similar. But that might not work great and would be difficult to explain... But I will think about it. Off to bed at the moment.

  • @GES1985
    @GES1985 6 дней назад

    I'm having trouble using inpaint to remove a ring. Can you help?

    • @KLEEBZTECH
      @KLEEBZTECH  6 дней назад

      So you have a hand with a ring on it and want to remove? what is the prompt you are using? any styles? I would normally mask the ring and prompt for a hand I guess. Hard to say not knowing the exact image. But do not put anything about "no ring" in the prompt because that will cause you to get one.

    • @GES1985
      @GES1985 6 дней назад

      @KLEEBZTECH basically yes. But everything I do just wants to regenerate into a different ring. I don't use ring in the prompt. I try everything from bare skin to smooth skin to detailed hand, and fingers etc. Still just prints more rings

    • @KLEEBZTECH
      @KLEEBZTECH  6 дней назад

      Any styles enabled? Masterpiece style for example includes jewelry in the prompt.

  • @thedevilgames8217
    @thedevilgames8217 16 дней назад

    I'm trying to add a person but it keeps giving me empty background

    • @KLEEBZTECH
      @KLEEBZTECH  16 дней назад

      Hard to say what the issue may be but have you tried masking a larger area? What method are you using that has the issues?

  • @AxelWXChannel
    @AxelWXChannel 2 месяца назад +2

    inpaint most hardest task to complete is fixing fingers and deformed legs or hands, almost impossible 😑

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад +1

      Time and patience. And if you can't generate fast it takes much more of each.

    • @masterzed1
      @masterzed1 2 месяца назад

      I only have 4gb... i only can watch videos how others can play with this 😂😂.. i only can make 10 images each day.. 😢

  • @hicksw5687
    @hicksw5687 Месяц назад

    Excuse me:
    I just want to simply remove an object in the picture, for example, there is a cat on the ground or on the table. I don’t know how to describe the background environment. I don’t even know where the cat is. It may be very complicated. It may be a very simple background environment. I want to remove the cat. How should I write the prompt word? Every time I remove the cat, that position will be replaced by another new object. This is not what I want!

    • @KLEEBZTECH
      @KLEEBZTECH  Месяц назад

      You can try things like empty table and other things to imply there is nothing else. But don't put things like "no cat" because that will not work.

  • @HiProfileAI
    @HiProfileAI 2 месяца назад +1

    Why the hell would earrings be in the masterpiece style. I would just remove that from the style.

    • @KLEEBZTECH
      @KLEEBZTECH  2 месяца назад

      Yeah, I have been tweaking my own styles for that very reason. I do think some of that might get changed in the default soon.

  • @TheMaxvin
    @TheMaxvin 2 месяца назад

    Maybe, but Fooocus doesn't know anythg about shadow on the sand)

  • @larryerb28
    @larryerb28 2 месяца назад

    Goofy

  • @larryerb28
    @larryerb28 2 месяца назад

    Fire the programmers