Stable diffusion up to 50% faster? I'll show you.

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2022
  • In this Stable diffusion tutorial we'll speed up your Stable diffusion installation with xformers without it impacting your hardware at all! Make sure you're running Python 3.10.x
    Support me on Patreon to get access to unique perks!
    / sebastiankamph
    Ultimate Stable diffusion guide:
    • Stable diffusion tutor...
    Ultimate Animation guide in Stable diffusion:
    • Stable diffusion anima...

ความคิดเห็น • 252

  • @sebastiankamph
    @sebastiankamph  ปีที่แล้ว

    The FREE Prompt styles I use here:
    www.patreon.com/posts/sebs-hilis-79649068

  • @danfox7356
    @danfox7356 ปีที่แล้ว +33

    You’re doing awesome work! I am not only able to learn all this stuff at lightning speed because of videos like yours but we are creating something beautiful as a community.
    Keep it up 🎉

    • @sebastiankamph
      @sebastiankamph  ปีที่แล้ว +1

      Thank you for the kind words. Truly appreciated! 😊🌟

    • @alantoy4628
      @alantoy4628 11 หลายเดือนก่อน

      @@sebastiankamph I really hate such people, he explains ordinary things and trying to sell it like a top secret and something extraordinary. Of course most of people knows about xformers option and how to activate it. An ordinary a$$h0le, who tryies to get more viewers for his channel.

    • @Raketenclub
      @Raketenclub 10 หลายเดือนก่อน

      i just subcribed because of your comment 🎉

  • @KalebWyman
    @KalebWyman ปีที่แล้ว +20

    --xformers FTW!
    NOTE: Visions of Chaos has a checkbox to enable/disable xformers for Automatic1111 WebUI before starting it up...
    It also has a word of caution:
    "When xformers is enabled image generation can be faster, but can also lead to image generation no longer being deterministic.
    That means if you generate an image with the exact same settings as before the new image may be slightly different."

    • @sebastiankamph
      @sebastiankamph  ปีที่แล้ว +5

      I was checking out VoC but really need to delve deeper. Thanks for reminding me!

    • @TheAiConqueror
      @TheAiConqueror ปีที่แล้ว +1

      What is "Visions of Chaos" i dont know? I'm interested 🤔👀

    • @HER0S0L
      @HER0S0L ปีที่แล้ว +2

      @@TheAiConqueror I think that's a fractal generator, visualisations based on Chaos Theory and Machine Learning

  • @ayrtonmenzel3741
    @ayrtonmenzel3741 ปีที่แล้ว +2

    im try to istall xformers on mi mac m1 , but i haven't been able, is there a page or a tutorial for macos users to istall xformers?

  • @stephancam91
    @stephancam91 ปีที่แล้ว +7

    Thanks so much for taking the time to make the video! I personally prefer deterministic results, but this could speed up times for a lot of people.

    • @LoneChipmunk
      @LoneChipmunk ปีที่แล้ว

      What does deterministic mean in this context? Are you saying it's technically lower quality or it might negatively affect the results in some way?

    • @NineSeptims
      @NineSeptims 10 หลายเดือนก่อน

      It means it can reduce quality slightly and makes it harder to reproduce an image even with the same prompts used.@@LoneChipmunk

    • @LoneChipmunk
      @LoneChipmunk 10 หลายเดือนก่อน

      @@NineSeptims Does it matter if I don't care about reproducability? How much of a quality dip are we talking?

    • @NineSeptims
      @NineSeptims 10 หลายเดือนก่อน

      the quality dip is noticed at higher resolutions, its around a 10% drop@@LoneChipmunk

  • @ChaseEverything
    @ChaseEverything 9 หลายเดือนก่อน +2

    It worked the first time I ran it but now I open it again and it says "No module 'Xformers". Proceeding without it... I'm confused.

  • @streamtabulous
    @streamtabulous 10 หลายเดือนก่อน

    can this be done with easy diffusion and if so where and how 🙏

  • @PlayerGamesOtaku
    @PlayerGamesOtaku 7 หลายเดือนก่อน

    hi, I have an RTX 4070 OC, what settings should I enter?

  • @16-dharmawankusumahumarput73
    @16-dharmawankusumahumarput73 ปีที่แล้ว +2

    i still don't understand how the generate speed work, i have about 87it/s but it takes about 2 hour to generate one images with 720*1024 size, can you help me?

  • @genin69
    @genin69 ปีที่แล้ว

    Pls tell me there is a way to cure out of memory errors or to refresh it all without having to do a system restart?

  • @KalebWyman
    @KalebWyman ปีที่แล้ว +45

    "When xformers is enabled image generation can be faster, but can also lead to image generation no longer being deterministic.
    That means if you generate an image with the exact same settings as before the new image may be slightly different."

    • @knoopx
      @knoopx ปีที่แล้ว +3

      That's not accurate, it's actually deterministic within your environment. Also not sure this is a past bug because I haven't been able to reproduce myself on multiple environments.

    • @Aeloi
      @Aeloi ปีที่แล้ว +6

      @@knoopx maybe it's been resolved, but last I knew it was left as a consequence of the increased parallelism used by xformers which contributes to the faster generation. When it was an issue, I definitely noticed it and was one of the first people to alert others in various discord channels about something breaking determinate results. At the time, I didn't realize it was xformers. It was made worse if one used the AND feature in automatic1111's repo. Xformers was patched a couple times since then, but to my knowledge, which is possibly outdated, the breaking of perfect determinism was never fully resolved. The speed boost, however, is significant enough for me that I stopped caring about it and decided if the art I produce isn't perfectly reproducible, it's actually a little more valuable.

    • @---Nikita--
      @---Nikita-- ปีที่แล้ว

      @@Aeloi Насколько вы бы оценили "ухудшение картинки" по сравнению с точностью ? Новичку это может помешать? Я пока учусь формулировать подсказки и всё ещё получаю странные результаты без ускорителей.

    • @Aeloi
      @Aeloi ปีที่แล้ว +4

      @@---Nikita-- xformers shouldn't have any effect on quality.. Though at first it reportedly did. It just makes it such that with the same set of parameters and prompt, you can click generate multiple times and get slightly different results each time

  • @XMCRacing
    @XMCRacing 9 หลายเดือนก่อน +1

    I am getting "No module 'xformers'. Proceeding without it." after adding cmd argument?

  • @lookimnotracistbut5695
    @lookimnotracistbut5695 ปีที่แล้ว +1

    My 4070 suddenly got a random performance drop and only generated highrex fix images at 10 seconds per iteration. Thanks to xformers it now generates the highres images at 5it/s but I am still wondering my it is so slow. Any further help is much appreciated
    Edit 3: Normal images generate at 1it/s
    Edit 1: I don't have any info on the speed before but it generated the images probably twice as fast. Also using an I7 12th gen but I didn't change that
    Edit 2: I belive it had gotten slower after a git pull

  • @menscherde
    @menscherde 4 หลายเดือนก่อน

    Does this also work with fooocus instead of A1111? I can't find a file like that in the fooocus folders.

  • @mrtmtn44
    @mrtmtn44 ปีที่แล้ว

    Hello, recently whenever I try to train a model in Stable Diffusion Dreambooth I get this error. "import of xformers halted; None in sys.modules." but I'm unsure how to fix was wondering if anyone could help?
    Xformers has been installed and has worked as I've trained successfully in the past. I also have --xformers in the command line in the webui-user.bat file.
    Any help would be appreciated.

  • @IcarusHollow
    @IcarusHollow ปีที่แล้ว

    nothing is changing when i add --xformers to the file. I don't get the "running with arguements: --xformers" either it is just empty space after 'arguments:' am i missing something?

  • @undef1n3d_
    @undef1n3d_ 11 หลายเดือนก่อน +1

    Thanks for the straightforward tutorial. I've seen other channels showing how you need to install and edit a whole bunch of programs in order to enable xformers. Does that make a difference?🤔

  • @dorotikdaniel
    @dorotikdaniel ปีที่แล้ว +16

    You will also get a noticeable speedup by increasing the batch size (to about 4, for a larger the performance benefit starts to flat out) and by setting the "Show image creation progress every N sampling steps" option to -1. The former increases VRAM demands, and the latter decreases.

    • @sebastiankamph
      @sebastiankamph  ปีที่แล้ว +6

      Good tips! Yes, I usually use batch count to make the vram dump between each image.

    • @savekillqqpsounds8473
      @savekillqqpsounds8473 ปีที่แล้ว

      thanks mate appreciate it

  • @Inkiplier
    @Inkiplier 6 หลายเดือนก่อน

    How is this gona work on amd radoen rx 6650m(8gb)?

  • @Einstien-gj5uc
    @Einstien-gj5uc ปีที่แล้ว

    Can we do hardware acceleration for this? TensorRT?

  • @cuteguy-2001
    @cuteguy-2001 ปีที่แล้ว

    doest not work on my rog flow x 13 1060 series any suggest

  • @rathodmukendra8924
    @rathodmukendra8924 ปีที่แล้ว

    xformer giving error of python 3.10.6 version and torch 1.12.1+cu113 version its tested on higher like 3.10.9 and 1.13.1+cu117 what to do i dont want to install that and ruin the setup without knowing it will work or not!

  • @ORGANICMINDART
    @ORGANICMINDART ปีที่แล้ว +1

    Any chances this tips on Mac M1 .. ?

  • @stanislavsidorovich6242
    @stanislavsidorovich6242 11 หลายเดือนก่อน

    thanks for clear guides

  • @koningsbruggen
    @koningsbruggen ปีที่แล้ว

    If A111 is set to automatically update should this already be installed? Why does it work so well? Is it lossless?

  • @sub-jec-tiv
    @sub-jec-tiv ปีที่แล้ว +2

    Super helpful thanks! Enjoying your videos (and dad jokes!) ✨

    • @sebastiankamph
      @sebastiankamph  ปีที่แล้ว

      Thank you very much! You're a real superstar, you! 🤩

  • @TheSickness
    @TheSickness 8 หลายเดือนก่อน

    Great and easy info vid, thanks 👍

  • @irambunctious
    @irambunctious ปีที่แล้ว +2

    Could you do a video on hypernetworks? I'd like to be able to add images of myself to generate but don't want to do a full dreambooth model to have to merge with more checkpoints im using.

    • @KalebWyman
      @KalebWyman ปีที่แล้ว +1

      There's a Dreambooth extension for Automatic1111 WebUI that you can enable.
      Here's an old video on hypernetworks: th-cam.com/video/1mEggRgRgfg/w-d-xo.html

    • @KalebWyman
      @KalebWyman ปีที่แล้ว +1

      Seb also has this video on setting up the Dreambooth extension:
      th-cam.com/video/_GmGnMO8aGs/w-d-xo.html

  • @hiddensamurai
    @hiddensamurai ปีที่แล้ว +1

    Would this work on an M1 Mac?

  • @vegacosphoto
    @vegacosphoto ปีที่แล้ว +1

    does this work with Invoke AI?

  • @DJ_K0D4
    @DJ_K0D4 ปีที่แล้ว +12

    RTX 3090 reference/founders, slight underclock of 100 (for overall temps and power draw lowering), improved my testing run by 61%. Settings for test was LMS @ 150 sample steps, 1024x1024, 38/75 prompt size used. Something else interesting to note, the first test without xformers used around 18.5gb vram, and the test with xformers on only used 10.2gb.

    • @sebastiankamph
      @sebastiankamph  ปีที่แล้ว +4

      Those are some great results!

    • @DJ_K0D4
      @DJ_K0D4 ปีที่แล้ว +1

      @@sebastiankamph yeah it's been great. Really helping save time with hypernetwork learning and outpainting.

    • @kayteetunna
      @kayteetunna ปีที่แล้ว

      Wats your vram?

    • @ratside9485
      @ratside9485 ปีที่แล้ว

      So I often get an error message on SD when I have undervolted my graphics card. It runs stably in games. It also says something about graphics card cuda manipulation.

    • @afos88
      @afos88 ปีที่แล้ว

      @@kayteetunna 3090 has 24GB

  • @user-tw2ut4ku7p
    @user-tw2ut4ku7p 7 หลายเดือนก่อน

    Thank you!

  • @matheusmendes3180
    @matheusmendes3180 ปีที่แล้ว

    can you tell me if putting the --medvram or --lowvram commands can decrease the quality of the images?

    • @kendarr
      @kendarr ปีที่แล้ว +1

      I don't think so, these commands are for people who don't have 8gbs of vram or more (like me lol)

    • @theoc1009
      @theoc1009 ปีที่แล้ว +1

      It only affect speed negatively (medvram) not by a lot. But (lowvram) by a lot.

  • @cobwebblocks
    @cobwebblocks 11 หลายเดือนก่อน +1

    Just errors, have to start it with --disable-nan-check now for it to work at all.
    If I use both --xformers and --disable-nan-check i get black pictures.
    i5-10400F, 16GB ram, GTX 1660S 6GB, gpu driver version 31.0.15.3130

  • @SteveRayDarrell
    @SteveRayDarrell ปีที่แล้ว

    does it work with 1600 series cards?

  • @OolTube02
    @OolTube02 หลายเดือนก่อน +1

    I'm getting those three lines fairly early on:
    no module 'xformers'. Processing without...
    no module 'xformers'. Processing without...
    No module 'xformers'. Proceeding without it.
    So what's wrong?

    • @Yoshi92
      @Yoshi92 27 วันที่ผ่านมา

      found a fix yet? :)

  • @zcjrz
    @zcjrz ปีที่แล้ว

    Do we need Cuda? Thank you

  • @kenmorris2858
    @kenmorris2858 ปีที่แล้ว

    Thanks very much, I did edit my bat file and I did see an improvement in performance, however it interfered with the Blender plugin for Stable Diffusion, causing it to only run once as the bat file line "set COMMANDLINE_ARGS=--api " already has it set to =-api. I tried adding "set COMMANDLINE_ARGS=--api --xformers" which did load xformers but caused the issue with the Blender plugin.

    • @benedict3736
      @benedict3736 ปีที่แล้ว

      did u got an solution?

  • @Statvar
    @Statvar ปีที่แล้ว +1

    I keep getting an error when I try to increase my batch count, "modules.devices.NansException: A tensor with all NaNs was produced in VAE. This could be because there's not enough precision to represent the picture. Try adding --no-half-vae commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check."
    Other than that I think it helped, thanks

  • @largelouie5400
    @largelouie5400 ปีที่แล้ว

    this also helped me fix my cuda memory errors i've been getting, thanks!

  • @fernandoberrocal387
    @fernandoberrocal387 ปีที่แล้ว +1

    Why when I put prompts to create an imagine in Stable Difussion, it takes time to create but when it reaches 100% , it just dissapear and I don't even see it

    • @iREM0015
      @iREM0015 ปีที่แล้ว

      I have read that because of the VRAM , if it is full, you will not be able to see the pictures

  • @KoiAquaponics
    @KoiAquaponics ปีที่แล้ว

    weird mine says no module 'xforemers' proceeding without it

  • @serenaquaranta6673
    @serenaquaranta6673 7 หลายเดือนก่อน

    Hello Sebastian, I really appreciate your videos. I wanted to share with you my current bitter problem regarding graphics card upgrades. I finally purchased an RTX 3060 12g to replace a GTX 1050ti 4g. After running all the tests, the second thing I do is to remove the midvram entry, leaving the --xformers --opt-split-attention entries. The prompt is definitely improved but the results are crying. It doesn't read the prompt, gives me only deformed, multiple artefacts, and above all with the same info settings used in previous jobs it brings out almost cardboard monsters. It almost seems as if the negatives read them as positives. I read on Reddit that this has already happened to someone and that someone in desperation put the old card back in. Can you give me some information on this? Have any of you recently upgraded? Thank you very much. (I'm desperate)

  • @shortsbetacompil5523
    @shortsbetacompil5523 ปีที่แล้ว

    my set COMMANDLINE_ARGS already have =--skip-torch-cuda-test --precision full --no-half
    where should i add the xformers ?

    • @sebastiankamph
      @sebastiankamph  ปีที่แล้ว +1

      Before, after, in between. Doesn't matter

    • @shortsbetacompil5523
      @shortsbetacompil5523 ปีที่แล้ว

      @@sebastiankamph thanks Seb, i tried but gave me an error message, i gave up.

  • @Pardony
    @Pardony 11 หลายเดือนก่อน +1

    I'm on a 3070 and this sped up my Deforum videos from 12 hours to 1 hour.

  • @ArmoredAnubis
    @ArmoredAnubis ปีที่แล้ว

    How to get dark background?

  • @kallamamran
    @kallamamran ปีที่แล้ว +5

    If you're running old python 3.9.x I'd recommend reinstalling A1111 after uninstalling 3.9.x and installing 3.10.x. I had some problems when trying to just update python since it kept the old version as well and the venv-version was different.

    • @sebastiankamph
      @sebastiankamph  ปีที่แล้ว +1

      Good informative comment that I hope can help someone else out there 🌟

    • @Aeloi
      @Aeloi ปีที่แล้ว +2

      If anyone has this issue, just get the correct version of python installed(ideally removing all others to be certain) with the add to path option checked from the first page of the installer, then delete your venv folder in SD and start your webui. It will rebuild your venv folder with the current and correct version of python.

  • @darsh.joshi_10
    @darsh.joshi_10 ปีที่แล้ว

    Hii! i am running stable diffusion on my laptop and it is super laggy... my whole system just lags and freezes...
    laptop specs :
    8GB RAM
    GPU : nvidia gtx geforce 1650ti
    CPU : intel core i7 10th gen
    also, i was running it using python 3.11.4 how do i downgrade it without anything else getting affected?
    thanks to anyone that answers

  • @IntricateMoon
    @IntricateMoon ปีที่แล้ว

    THANK YOU SEB!!! 😍

  • @hplovecraftmacncheese
    @hplovecraftmacncheese 10 หลายเดือนก่อน

    I didn't know about this until I installed Deforum with 6GB vram. Everything runs way better, and I can create 768x1024 images on still images also. It's a really essential tip.

  • @Mr.MoustacheMan
    @Mr.MoustacheMan ปีที่แล้ว +2

    Great stuff! I was struggling and downloading libraries and and getting files I didn't need, and this solved it in seconds, definitely earned a like!
    I found my progress on an MSI 2070 ARMOR went from 3.78 with no preview to 4.54 it/s with preview every 0 steps. With no steps, I reached 4.67 at peak.

  • @hornyj1
    @hornyj1 11 หลายเดือนก่อน +1

    Note the use of xformers should also enable decrease of VRAM requirements/consumption. Very handy for all of us with 8 or less GB of VRAM...

  • @marjolein_pas
    @marjolein_pas ปีที่แล้ว

    Thank you very very much!

  • @AIModels111
    @AIModels111 ปีที่แล้ว

    Thank you so much. was taking forever for 4 images

  • @12MANY
    @12MANY ปีที่แล้ว

    Super thnx Sebastian

  • @sorijin
    @sorijin ปีที่แล้ว +2

    This gave me like .3 as a GTX 1080TI user 👍 can't believe I'm upscaling rendering giant deforum animations at this speed and having a great time then I see this video and HOURS OF MY LIFE GONE FOREVER inside of a weeks time. Used Amazon RTX is a new muuuuuust for me 🐢

  • @Neural.Academy
    @Neural.Academy ปีที่แล้ว

    Why my 3080 give me only 5.71it/s? With xformers

  • @ndiagnetoure
    @ndiagnetoure ปีที่แล้ว

    hi everyone
    i am not able to install sd on my 2gb nvidia. what can i do
    thanks for help

    • @iREM0015
      @iREM0015 ปีที่แล้ว

      Of course, you need NVIDIA 12 or higher to work

  • @content1
    @content1 3 หลายเดือนก่อน +1

    MAC USERS:
    No, the graphics cards in MacBook Pros are not user-replaceable or upgradable. They are soldered onto the motherboard, and there is no way to swap them out for different models like you can with some desktop PCs.
    Furthermore, Apple does not support Nvidia graphics cards in its newer MacBook models due to driver support and compatibility issues between Apple and Nvidia. Apple primarily uses integrated Intel graphics or dedicated AMD graphics in their laptops.
    If you require Nvidia graphics for specific applications, you might consider using an external GPU (eGPU) setup with a compatible Thunderbolt 3 enclosure and an Nvidia card, provided you have the necessary software drivers that support MacOS. However, keep in mind that Apple's support for Nvidia cards can be limited, and you should check for compatibility before making any purchases.

  • @highcommander2007
    @highcommander2007 9 หลายเดือนก่อน

    THANK YOU! I didn't know anything about this, I have series 3 RTX so it worked for me. Only reason I even found this video was because I kept seeing xformers missing when client started lol.

  • @user-sm2pu7jv3p
    @user-sm2pu7jv3p ปีที่แล้ว

    thanks you very much from my deepest heart

  • @musicandhappinessbyjo795
    @musicandhappinessbyjo795 ปีที่แล้ว

    I am getting a entry point not found error

  • @dromeda6066
    @dromeda6066 10 หลายเดือนก่อน

    wow u weren't lying there's a major difference now

  • @lyricsdepicted5628
    @lyricsdepicted5628 ปีที่แล้ว

    Confirmation that it didn't do anything with my Quadro M4000 (Maxwell). I also have a Testla P4 (Pascal) installed, but I don't know how to tell SD about it. Blender sometimes recognizes it, but after running automatic1111 it usually disappears as an option.

  • @iREM0015
    @iREM0015 ปีที่แล้ว

    Why did you drag the words into the notepad, even though there are already these words, but without a word
    XFormers

  • @SAVONASOTTERRANEASEGRETA
    @SAVONASOTTERRANEASEGRETA 11 หลายเดือนก่อน +1

    It was fine with me. Then now with sdxl 1 it takes me 10 min to image. Yet I have a gtx3050 8gb and 32di ram

  • @gabrielrocha7547
    @gabrielrocha7547 ปีที่แล้ว

    How do I uninstall it? I forgot to make the comparison of the before and after

    • @sebastiankamph
      @sebastiankamph  ปีที่แล้ว +1

      Just remove --xformers in the file and restart.

    • @gabrielrocha7547
      @gabrielrocha7547 ปีที่แล้ว

      ​@@sebastiankamph ah, that was simpler than I thought, thanks :D

  • @doccloudacnh
    @doccloudacnh 6 หลายเดือนก่อน

    But what about Easy Diffusion?
    I don't see web-ui for me.

  • @ChrisMattar
    @ChrisMattar ปีที่แล้ว

    Hi Seb, question, how do you get it to show you the rendering in real-time? It doesnt pop up the results until its done for me. Took a quick look in settings didnt find what Im looking for.

    • @sebastiankamph
      @sebastiankamph  ปีที่แล้ว +1

      Check video description. Link in bottom.

    • @ChrisMattar
      @ChrisMattar ปีที่แล้ว

      @@sebastiankamph You the man, thanks brother.

  • @BxPanda7
    @BxPanda7 ปีที่แล้ว +5

    Don't do this with a 900 series card or below it will brick your installation, you'll need to build xformers manually !
    Also don't use the live preview thing for images, it slows down generation speed quite a bit, very noticeable on older cards.

    • @dinokurkutovic
      @dinokurkutovic ปีที่แล้ว +1

      @@neeil634go to settings, then on the left side closer towards the bottom you will see Live previews and then when you click on it you will see on the left Show live previews of the created images. Hope this helps!

  • @carlingram1003
    @carlingram1003 ปีที่แล้ว

    I was wondering what that little xformers warning at the start meant. Thanks for the tip!

  • @constructiveguy3973
    @constructiveguy3973 ปีที่แล้ว

    [ZeroDivisionError: division by zero] if run with DDIM and active Highres fix. since installed xformers. My favorite samplig for faces is not working anymore. Hoppefully it will fixed soon

  • @playboxlimited.
    @playboxlimited. ปีที่แล้ว

    thank you!!

  • @niemamnicka
    @niemamnicka 5 หลายเดือนก่อน +1

    I guess performance depends on many variables.
    I tested RTX 4090 using (version: v1.7.0  •  python: 3.10.10  •  torch: 2.0.1+cu118) on Windows 11, Chrome browser.
    SDXL model, 1216 x 832 image generation (Batch size = 4) and here are my results:
    (no arguments)
    [00:44

  • @kazaream
    @kazaream ปีที่แล้ว

    How can you uninstall it after it's installed?

    • @sebastiankamph
      @sebastiankamph  ปีที่แล้ว

      Just remove the --xformers text in the textfile.

  • @dakkx
    @dakkx 11 หลายเดือนก่อน

    Gained a solid .6 it/s on a 3060 12g. Thanks for the tip

  • @sorijin
    @sorijin ปีที่แล้ว

    Homie your videos are the best, I started an ig acct to share deforum vids!

    • @sebastiankamph
      @sebastiankamph  ปีที่แล้ว

      Legend! Join us in Discord and share them in our art-share channel. See link in channel description. 🌟

  • @parsley8188
    @parsley8188 ปีที่แล้ว

    Wow! Speeding up renders will be awesome for me since my card isn’t great

  • @lujoviste
    @lujoviste ปีที่แล้ว

    says no module xformers?

  • @pixelatedbeatz
    @pixelatedbeatz 10 หลายเดือนก่อน

    THANKS!

  • @shikimori85
    @shikimori85 ปีที่แล้ว

    does this work with 1060 3gb? my card kinda old 😅

    • @NewPipeFTW
      @NewPipeFTW 10 หลายเดือนก่อน +1

      You need to run it with lowvram settings and maybe half the render resolution. But it might work.
      Dont expect large or high res pictures tho😅

  • @TheKamrenB
    @TheKamrenB ปีที่แล้ว

    Stable Diffusion fails to start after xformers are installed (GTX 1660 Ti)

  • @Warzak77
    @Warzak77 ปีที่แล้ว

    is that compatible with --medvram ?

  • @_A_lex_K_
    @_A_lex_K_ ปีที่แล้ว

    Nice!!! 1.02 -> 1.42it/s on GTX 1080: ~40% faster!!! Big Thx!

  • @HyperUpscale
    @HyperUpscale ปีที่แล้ว

    (with random settings on 3080) From 11,5, adding the --xformers, now it is 13.8 it/s. It worked :) :) :)

    • @sebastiankamph
      @sebastiankamph  ปีที่แล้ว +1

      Boom! 💥

    • @aufdenarmgenommen8832
      @aufdenarmgenommen8832 ปีที่แล้ว

      How do you get more than 5 or 6 it/s...or even 13.8??? How is that even possible???😵😵😵

  • @PopTartNeko
    @PopTartNeko ปีที่แล้ว

    Does this actually reduce VRAM usage?

  • @arobotsartificialdreams7017
    @arobotsartificialdreams7017 ปีที่แล้ว

    Great ! That worked for me i have a 2080ti and i got a pref increase of ~15%

  • @VIpown3d
    @VIpown3d ปีที่แล้ว

    Ok this is impressive af

  • @aufdenarmgenommen8832
    @aufdenarmgenommen8832 ปีที่แล้ว

    Hello Sebastian Kamph, I like your video, you help me so much, to make better art. Thank you for that!!! :)
    I got a question, I got a Ryzeb 5 5600 with 6 cores, 32 GB Ram and a Nvidia GForce RTX 3060, I used your xformers change. But I only get 1.5-2 It per seconds. Is there anything I can do, to get more Iterations per second???
    Thank you, in advance, for your answer. :)
    Keep up your great work! :)

    • @sebastiankamph
      @sebastiankamph  ปีที่แล้ว

      There's a few things you can do to speed it up, but not alot except xformers. You can install torch2 (or try Vlad diffusion) and see if that runs faster for you. Also try faster samplers like euler_a and ddim. Keep the resolutions lower and then only go higher when you found a composition you like.

    • @aufdenarmgenommen8832
      @aufdenarmgenommen8832 ปีที่แล้ว

      @@sebastiankamph Hello Sebastian! Thank you very much for your answer! :) I appreciate it a lot! :)I will try the things you mentioned. And give you the results. :) Wish you a nice weekend! :)

    • @aufdenarmgenommen8832
      @aufdenarmgenommen8832 ปีที่แล้ว

      @@Visquint Hello Visquint, I looked up my Stable Diffusion installation, and the stuff was already installed. So I used his tips with lower resolution and the sampler. That fasten up my work process. :)

  • @UniqAlexandr
    @UniqAlexandr ปีที่แล้ว +1

    Thanks, tell please, what better, more ram in graphic card or more cuda core ?
    Example 3060-12gb or 3070ti-8gb
    For sd deforum

  • @elreydelanime12
    @elreydelanime12 ปีที่แล้ว

    gracias!!!!

  • @Alm209
    @Alm209 7 หลายเดือนก่อน

    Thank you, I saw a 50% improvement on my 3090

  • @wolfai_
    @wolfai_ ปีที่แล้ว +1

    Can this combined with --medvram?

    • @KillFrenzy96
      @KillFrenzy96 ปีที่แล้ว +1

      I think you can, but I don't think you'll need it. Xformers uses so much less VRAM that I'm able to increase the batch size to 8 on 512x512, or generate a 2048x2048 image on my RTX 3080 10GB.

    • @wolfai_
      @wolfai_ ปีที่แล้ว

      @@KillFrenzy96 Ah is that so, thanks. Is there any degradation in the finished processed?

    • @KillFrenzy96
      @KillFrenzy96 ปีที่แล้ว +1

      @@wolfai_ I don't think the images necessarily worse. When comparing xformers with the original, the images have very slight differences but it doesn't really make the image look worse - more like looks slightly different.

    • @wolfai_
      @wolfai_ ปีที่แล้ว

      @@KillFrenzy96 Alrighty. Ive known medvram for awhile but I never use it because someone said it reduces the overall quality. I forget where I read it, will try it maybe

  • @eritulizx
    @eritulizx ปีที่แล้ว

    From 3:40 to 2:08 with a 4090. Thanks! 💁🏻‍♂👑

  • @shoberino3898
    @shoberino3898 ปีที่แล้ว

    lol i get 6.08 s/it... on 300x300...
    I cant even use the -xformers command
    maybe i should stick to dalle 2

  • @erikschiegg68
    @erikschiegg68 ปีที่แล้ว +1

    Already activated in the colab version of dreambooth automatic1111 and others.

  • @asefsag4t3436
    @asefsag4t3436 ปีที่แล้ว

    wow thanks

  • @Rasukix
    @Rasukix ปีที่แล้ว

    hoping this helps with my 11gb gpu, was bottling out saying ran out of vram

  • @teddyxz5182
    @teddyxz5182 ปีที่แล้ว

    Thx

  • @HikingWithCooper
    @HikingWithCooper ปีที่แล้ว

    Thanks for YET another amazing tip. You are my go-to. Tried this on my 1070 w/ 8GB. First run averaged about 1.15 (LOL.) Unfortunately got an 'error completing request' so it doesn't work for me. Going to get that 3080ti....

    • @sebastiankamph
      @sebastiankamph  ปีที่แล้ว

      Glad to have you around! 🥰 3080ti will serve you well

    • @HikingWithCooper
      @HikingWithCooper ปีที่แล้ว

      Got the 3080ti. Just over 7 w/o xformers, just under 9 with. I'll take it! Thanks again :)