Easy Background Cropping with Stable Diffusion 2.0 and AUTOMATIC1111

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2024
  • We walk through how to create a photorealistic image with stable diffusion 2.0 and remove the image background with the new automatic1111 depth mask cropping extension.
    Discord: / discord
    ======= Links =======
    URL for Extension: github.com/Ext...
    ======= Misc =======
    Negative prompt used:
    disfigured, kitsch, ugly, oversaturated, grain, low-res, Deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, ugly, disgusting, poorly drawn, childish, mutilated, , mangled, old, surreal
    ======= Music =======
    Music from freetousemusic...
    ‘Biscuit’ by ‘LuKremBo’: • (no copyright music) l...
    ‘Animal Friends’ by LuKremBo: • lukrembo - animal frie...
    #stablediffusion #aiart #tutorials #techtutorials #automatic1111

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

  • @cryptidsNstuff
    @cryptidsNstuff 2 года назад +5

    Man, you're up too! You're a very smart guy, and making these vids reinforces it. I've learned a bunch from you. Very cool! Now we need to make Avacado butter out of the chair next. 😀 Thank you for making these.

    • @lewingtonn
      @lewingtonn  2 года назад

      im an OZZZY, we occupy a highly gakked area of space-time

    • @2PeteShakur
      @2PeteShakur 2 года назад +2

      @@lewingtonn say hi to marty n doc for us will ya?! ;)

  • @tomthefreak9429
    @tomthefreak9429 2 года назад +3

    Sick stuff! depth mask cropping is inspired.

  • @timvangenechten5258
    @timvangenechten5258 2 года назад +5

    I try to reduce the multiple panels by using the negative prompt "collage". I have the feeling it does reduce them, but it does not eliminate them. If and how much it helps still needs to be tested.

  • @erikschiegg68
    @erikschiegg68 2 года назад +3

    negative prompt. split image collage

  • @autonomousreviews2521
    @autonomousreviews2521 2 года назад +4

    Dude, you're awesome! Thanks for the coding and vids :)

  • @KainSpero
    @KainSpero 2 года назад +3

    Great video! Really enjoy the way you explain new features!

  • @reyhan0447
    @reyhan0447 2 года назад +7

    why do you have a suspicious amount of buff joe biden in your output folder

    • @lewingtonn
      @lewingtonn  2 года назад +7

      i.... no reason...

    • @reyhan0447
      @reyhan0447 2 года назад +8

      @@lewingtonn understandable, its not like i have 1289 pictures of donald trump and joe biden in a bathtub on my txt2img-images folder haha that would never happen right

    • @lewingtonn
      @lewingtonn  2 года назад +7

      @@reyhan0447 yeah ha ha ha, and if you DID have those images, there's no way you'd reach out to me on discord and sent them to me or anything like that ha ha ha

  • @telepathytoday
    @telepathytoday Год назад

    This is also super helpful for sending straight to the img2img in-painting tab

  • @peterpui7219
    @peterpui7219 2 года назад +1

    I use Tencent ARC for background removal.

  • @daymaroke2114
    @daymaroke2114 Год назад

    So I selected the extension, and activated it and since you were telling us how FAST it's going to be, and set a timer to show how FAST it will be, and I made my image I want to use, and I hit generate, all excited, and then you say 'oh it might take half an hour to download'.
    Bruh
    But in the time I spent whining about it, it's downloaded and I didn't know about this feature, so thanks :) I do like your videos and the way you explain a bit more than the other tutorials I've seen. It's nice to know what I'm actually doing, rather than changing a bunch of settings I don't understand.

  • @JordanPetersonTech
    @JordanPetersonTech 8 месяцев назад

    There's a few different ways to remove backgrounds in the stock AUTOMATIC1111 interface. Is there a reason you downloaded an additional script? Are the stock functions not working? Just curious, because while I was previously able to change backgrounds now it seems I get a mixed bag of results, which by no means compare to your time of 11 minutes.. Would be interesting video or just a comment as to why this is the background method you're choosing. Thanks for the howto bro. Peace

  • @JWYOUTUBE2.1220
    @JWYOUTUBE2.1220 Год назад

    Hi there, lets say you have now cropped your avo archair, and want to keep the cropped chair, but change the entire background. How would you keep the cropped chair, and create an entirely new background?

  • @Bruh-wb3qw
    @Bruh-wb3qw Год назад +1

    Hi, I want to start a profession in this line of work though I’m still learning I’m pretty good at it so far. I was wondering what kind PC settup should I get? Do I need more ram, better cpu, can I used an external gpu etc.

    • @lewingtonn
      @lewingtonn  Год назад +1

      we did a video on GPU recommendations: ruclips.net/video/H-6DXU967bU/видео.html&ab_channel=koiboi and yeah, basically the GPU is the main thing you need to worry about for this.
      Good luck!

  • @constantinosschinas4503
    @constantinosschinas4503 Год назад

    You can Color Range out the foreground in any image or video editing application. What is the fuzz about white not being exactly at the foreground (which never was anyway)?

  • @johndoefpv
    @johndoefpv 2 года назад +1

    Quick question! I can't use dpt_ large, it just freezes my SD, my graphics card is an RTX 2070 Super which i think you also have, so I'm curious how you got it working

    • @johndoefpv
      @johndoefpv 2 года назад +1

      the error i get is "UnboundLocalError: local variable 'model' referenced before assignment"

    • @lewingtonn
      @lewingtonn  2 года назад

      @@johndoefpv unbound local error means there is a problem with the code, not your memory. Try updating the webui and the extension. I have the exact same card and can run dpt_large fine!

    • @johndoefpv
      @johndoefpv 2 года назад +1

      @@lewingtonn i updated both in order to use the new SD 2.1 but still cant use dpt_large 😢i guess thats just my luck lol

    • @lewingtonn
      @lewingtonn  2 года назад

      @@johndoefpv still the same error? again "UnboundLocalError" means there is some kind of code problem... one last thing you can do is go to the automatic1111 github and search your error in the "issues" tab

  • @JoseRodriguez-xu1jz
    @JoseRodriguez-xu1jz Год назад +1

    😢OpenCV(4.6.0) :-1: error: (-5:Bad argument) in function 'cvtColor' > Overload resolution failed: > - src data type = 17 is not supported > - Expected Ptr for argument 'src'

  • @serch_4090
    @serch_4090 Год назад

    Im trying to remove the background of an anime full body photo. Maybe ‘cause dont know how to. This tutorial is really good but for my drawing not working

  • @destructiveeyeofdemi
    @destructiveeyeofdemi Год назад

    Love your work Sir. Thank you. Side note: You speak really quickly at times and I find it difficult to follow and have to rewind. For your consideration. X

  • @appsgames8438
    @appsgames8438 Год назад

    Hi! Nice video, thanks! Can you tell me if there are any ideas? I generate a picture, then through "inpaint + fill + only masked" add a new object, is there any way to quickly and accurately pull the same object in a separate picture on a white background ? The main idea, to adapt SD to generate game art for the hidden objects genre.

  • @zentrans
    @zentrans Год назад +1

    launch module depends on flowdas-meta library and PYPI doesn't contain it. Where is everyone getting this lib ? You had to get it from somewhere to get this working.

    • @lewingtonn
      @lewingtonn  Год назад

      it looks like flowdas-meta has been removed from pipy for some weird reason, I have no idea where else you would find it, sorry :(

    • @lewingtonn
      @lewingtonn  Год назад

      can I say also: why the HECK are people removing depended-upon pipy packages???

    • @zentrans
      @zentrans Год назад

      @@lewingtonn well you had the extension working, so you must have it on your pc right ?

    • @zentrans
      @zentrans Год назад

      @@lewingtonn it's been there for so long, I don't think its disappearance is an accident

  • @MummyTop
    @MummyTop Год назад

    error: FileNotFoundError: [Errno 2] No such file or directory: './externals/Next_ViT/classification/nextvit.py', how fix?

    • @zentrans
      @zentrans Год назад +1

      you have to run the install_next_vit .sh in the midas directory (which just does a "git clone" ). After doing that you'll encounter the same problem I did, which apparently has no solution

    • @dustinjohnsenmedia1889
      @dustinjohnsenmedia1889 Год назад

      i have the same error

  • @roberttyler2861
    @roberttyler2861 Год назад

    I get a TypeError: argument of type 'NoneType' is not iterable

  • @Max-sq4li
    @Max-sq4li 2 года назад +1

    Why when i use dpt_ large i get an error!

    • @lewingtonn
      @lewingtonn  2 года назад

      what's the error?

    • @alecubudulecu
      @alecubudulecu Год назад

      @@lewingtonn probably same error as him... i get FileNotFoundError: [Errno 2] No such file or directory: './externals/Next_ViT/classification/nextvit.py'

    • @dustinjohnsenmedia1889
      @dustinjohnsenmedia1889 Год назад

      @@alecubudulecu same here

  • @MickDarkstar1
    @MickDarkstar1 Год назад

    Good videos, but pls! Raise or normalize your volume m8 :) Use a compressor, limiter or anything to get closer to 0db, this is like -15db

    • @lewingtonn
      @lewingtonn  Год назад +1

      the penalty for giving audio advice on this channel is DEATH, get 'im lads!

    • @MickDarkstar1
      @MickDarkstar1 Год назад

      @@lewingtonn 😅 Yelp!

  • @2PeteShakur
    @2PeteShakur Год назад +1

    love ur shirt mate, looks like p-jammies! ;)

  • @LouisGedo
    @LouisGedo 2 года назад

    👋