The bug that's a feature in ComfyUI - batching and Ksampler noise!

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ก.พ. 2024
  • Wouldn't it be nice if you could break down your comfyui workflow into two parts, so you can 'pick' the images you prefer for postprocessing using an image picker? Well, you can't. Here's why. / discord
    🤗Help keep this channel brutally honest: ko-fi.com/stephantual
    ▬ LINKS REFERENCED ▬▬▬▬▬▬▬▬▬▬▬▬
    github.com/chrisgoringe/cg-im...
    ▬ SOCIALS/CONTACT/HIRE ▬▬▬▬▬▬▬▬▬▬▬▬
    Discord: / discord
    All Socials: linktr.ee/stephantual
    Hire Actual Aliens: www.ursium.ai/
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @mithrillis
    @mithrillis 3 หลายเดือนก่อน

    I don't really think it's a bug though, just something to be aware of. If you pass a batch to a ksampler and every image receives the exact same random noise at each step, you will get a batch of the same image, so of course we want each image in a batch to follow a different diffusion path. This is implicit when batching because the RNG gives you different results when you ask for a larger random tensor vs a small one even with the same seed. This also means that if you want to recreate the same image, you also have to recreate the whole batch with the same seed. You can still use an image chooser, but only let through one image (or a fixed number of images) at a time, which will ensure the workflow after the chooser is deterministic.

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

    sadly I discovered this in a harder way, a month ago I was doing 16 batch images per queue (+10 minutes run time) looking for good results and saving the seed numbers to be used in later processes, then I discovered that the 16 images got the same seed and you need to run the whole 16 batch queue with batch selector node if you want to upscale one image of them
    I tried using a lower batch number when I was targeting the second batch image, but it didn't work, cuz changing the batch number will change all the results
    I think they should fix this by making Comfyui generate a unique random seed number for each image in the batch

    • @stephantual
      @stephantual  5 หลายเดือนก่อน

      Oh dang I hadn't thought of that possibility, you're absolutely right. I hope they change it, too, especially for people using this for work, where determinism is key. Thank you for sharing your experience! 👽

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

    Could you please post a link to the bug report?

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

      You got it! Here you go: github.com/comfyanonymous/ComfyUI/issues/2799
      Just between you and me (and 8 billion youtube viewers) - I believe there are some deep seated emotions about this 'feature' :)

    • @matthewharrison3813
      @matthewharrison3813 5 หลายเดือนก่อน

      Thanks! @@stephantual

  • @boricuapabaiartist
    @boricuapabaiartist 5 หลายเดือนก่อน

    Good find, if you use the basic SD clip text encoders instead of the sdxl ones does the same difference also occur?

    • @stephantual
      @stephantual  5 หลายเดือนก่อน

      Yes - i also tried to pass ----deterministic to the command line, no dice. Also tried to switch the ksamplers to the ones from inspire pack, same outcome. I'm afraid there's no fix - and it's a 'hot topic' amongst the contributers to the comfy repo :)

  • @dogvandog
    @dogvandog 5 หลายเดือนก่อน

    What a extension allow you to see extension name above every custom node? and what extension allow you to see gpu load too. Looks really useful.

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

      oh i found (accidentally). this is in comfyui manager - badge dropdown menu.

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

      Yup and crystools for the monitor - all in the workflow :)

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

    I visited your youtube channel, your videos are awesome. Your video SEO errors. Your channel is not growing at all. I offer you SEO and monetization of your channel. If you do SEO, your video will get lifetime views.

    • @stephantual
      @stephantual  5 หลายเดือนก่อน +4

      Aliens don't need SEO, because they can't handle money due to their tentacle appendage. It's very sad to watch them try to fold the 500$ bills we get from TH-cam every day. Makes me cry a little deep inside 😢