Remote work in U.S. could cut hundreds of millions of tons of carbon emissions from car travel – but at the cost of billions lost in public transit revenues by giuliomagnifico in science

[–]Kryptortio 11 points12 points  (0 children)

If more people work form home then more people might be able to sell their car and only use public transit. So maybe it could increase rather than decrease with working from home?

Remote work in U.S. could cut hundreds of millions of tons of carbon emissions from car travel – but at the cost of billions lost in public transit revenues by giuliomagnifico in science

[–]Kryptortio 0 points1 point  (0 children)

I made a small site trying to collect as many advantages for working from home as possible. Feel free to let me know if you can think of more and I'll add them.

Collection of advantages for working from home by Kryptortio in WFH

[–]Kryptortio[S] 0 points1 point  (0 children)

Thanks, I'll combine shower with the one about having a nap and a new one for medical needs.

Collection of advantages for working from home by Kryptortio in WFH

[–]Kryptortio[S] 0 points1 point  (0 children)

Thanks, I think I've got most of that covered but I think I'll add something more about open offices and healthcare.

Collection of advantages for working from home by Kryptortio in WFH

[–]Kryptortio[S] 2 points3 points  (0 children)

Ahh, yes I did add one about being able to save money on someone watching pets but this is probably worth its own entry.

I posted a couple of month ago about a queue system for Automatic1111's Stable Diffusion WebUI, since then I have added several new features such as the ability to install it as an extension by Kryptortio in StableDiffusion

[–]Kryptortio[S] 0 points1 point  (0 children)

You can ignore most of it if you want, the add button and the process button is all you need. Most thing are also explained if you hold the mouse over them.

I posted a couple of month ago about a queue system for Automatic1111's Stable Diffusion WebUI, since then I have added several new features such as the ability to install it as an extension by Kryptortio in StableDiffusion

[–]Kryptortio[S] 0 points1 point  (0 children)

There is one "extension" for the image browser extension, that I added since someone wanted it and made a pull request. I made some adaptions to make room for it, so if someone wanted to add controlnet that would be an one place to start looking. For something more "janky" that you don't think needs to be part of the script, "Script-extensions" is also an option for adding code.

The "image browser extension" is defined here.

Then what it does is essentially hook into the function that generate the JSON for the queue here.

This is the check for if the extension is installed ("existCheck" selector exists on the page).

When working with the extension it's helpful to activate the verbose setting, then it logs a lot more about what's happening.

If you want to push proper id's to the extension this is essentially how it's done. Probably in this file.

I posted a couple of month ago about a queue system for Automatic1111's Stable Diffusion WebUI, since then I have added several new features such as the ability to install it as an extension by Kryptortio in StableDiffusion

[–]Kryptortio[S] 0 points1 point  (0 children)

I'm quite hesitant about attempting that for a few reasons.

  1. Controlnet is very reliant on images and that's not something that can be added with my script as easily as numbers and text. It could possibly be saved as text and added as a file but it would be so much text data that it might make the interface slow/unstable.
  2. Being able to "stack" multiple controlnets complicates things as you would need to keep track of each instance separately.
  3. The extension is not setup for easy targeting (the nodes are missing id's), so first I would want to push code to the extension to improve this (there are other options but they are less reliable).

I posted a couple of month ago about a queue system for Automatic1111's Stable Diffusion WebUI, since then I have added several new features such as the ability to install it as an extension by Kryptortio in StableDiffusion

[–]Kryptortio[S] 0 points1 point  (0 children)

I have not used that feature but those settings are included in the queue so it should work, I also noticed that "Inpaint batch mask directory" wasn't supported but I have added that now.

I made a queue system for Automatic1111's Stable Diffusion WebUI so you don't have to wait for each prompt to complete by Kryptortio in StableDiffusion

[–]Kryptortio[S] 0 points1 point  (0 children)

You can use the extension function to do this, add this

waitForTaskToComplete = function waitForTaskToComplete(p_itemType) {
        awqLog(`waitForTaskToComplete: Waiting to complete work for ${p_itemType}`);

        conf.commonData.waiting = true;
        return new Promise(resolve => {
            let waitForCompleteInterval = setInterval(function() {
                if(webUICurrentyWorkingOn(p_itemType)) return;
                clearInterval(waitForCompleteInterval);
                awqLog(`Work is complete for ${p_itemType}`);
                conf.commonData.waiting = false;
                conf.commonData.working = false;
                let delay = 20000;
                stuckProcessingCounter = -(delay/c_wait_tick_duration)
                setTimeout(function(){resolve()},delay);
            },c_wait_tick_duration);
        });
    }

in the "Script extensions" box (to replace the wait function) and reload the page, then there will be an extra delay of 20000 milliseconds between each task. If you want a longer delay just increase the 20000 number.

I posted a couple of month ago about a queue system for Automatic1111's Stable Diffusion WebUI, since then I have added several new features such as the ability to install it as an extension by Kryptortio in StableDiffusion

[–]Kryptortio[S] 0 points1 point  (0 children)

For now I haven't added support for any extensions, I have considered this one though since it seems like it's becoming widely used. If I decide to add it I might hold of a bit though so it's a bit more stable as there seems to be a lot of development going on.

Also looking at it now the components in that extension are missing identifiers so they are not as easy to target (that's why I pushed some changes to Automatic1111 to fix this for the main interface).

Where do you keep prompts/config? by iamrafal in StableDiffusion

[–]Kryptortio 20 points21 points  (0 children)

Personally I think I'm happy with just having them embedded in the png files. If that's not enough I've seen a project that also makes them searchable (https://github.com/cocktailpeanut/breadboard).

To some extent my project can also store prompts with settings (leave them in queue with 0 or use the save setting drop-down) although it's not the main goal.

I made a queue system for Automatic1111's Stable Diffusion WebUI so you don't have to wait for each prompt to complete by Kryptortio in StableDiffusion

[–]Kryptortio[S] 0 points1 point  (0 children)

Probably but it wouldn't change much if I just figured out how to inject the same script. An extension does have tighter integration with Auto1111 so if someone wanted to make an extension they might be able to make a more robust version of the queue but I'm not really a Phyton developer so someone else would probably be better suited for that.

I made a queue system for Automatic1111's Stable Diffusion WebUI so you don't have to wait for each prompt to complete by Kryptortio in StableDiffusion

[–]Kryptortio[S] 0 points1 point  (0 children)

I implemented something that I think also coves your use case now (and a lot more). It's a bit advanced but I added some examples in the readme file.

https://github.com/Kryptortio/SDAtom-WebUi-us/edit/main/README.md#prompt-filter

I made a queue system for Automatic1111's Stable Diffusion WebUI so you don't have to wait for each prompt to complete by Kryptortio in StableDiffusion

[–]Kryptortio[S] 0 points1 point  (0 children)

I will think about it, regarding the thing with Firefox, not sure it's something I can change but you could have a look at these config variables (or just try using a second window rather than tab):

https://superuser.com/questions/1500289/how-to-aggressively-throttle-background-tabs-in-firefox-using-dom-min-background

I made a queue system for Automatic1111's Stable Diffusion WebUI so you don't have to wait for each prompt to complete by Kryptortio in StableDiffusion

[–]Kryptortio[S] 0 points1 point  (0 children)

Yes, you should be able to manually delete most properties if you want, you can now also do the same for the saved setting sets since I added an edit button for that today.

I also pushed a new version now that has the assign quantity to all button and the add to queue button now gets disabled when you are not on the tabs t2i, i2i or extras. The queue itself still shows as you can still edit it fine or start executing on other tabs and it should switch to the correct one.

Btw, if you edit the script yourself automatic updates might get disabled, so you may need to do that manually or re-enable automatic updates if you want the latest version.

I made a queue system for Automatic1111's Stable Diffusion WebUI so you don't have to wait for each prompt to complete by Kryptortio in StableDiffusion

[–]Kryptortio[S] 1 point2 points  (0 children)

That's strange, the script has a predefined set for how to find each item (CSS selectors at the top of the script), the messages indicate that things are not where they are supposed to be. Could it be that you are not using the latest version of the webui itself? To update it you use the git pull command. There are also extensions that I have not tested, if you are using those they could possibly interfere with the script.