Code Monkey home page Code Monkey logo

Comments (10)

Gerschel avatar Gerschel commented on August 10, 2024 1

I figured out the sort order.
script_data = always enabled scripts, custom scripts sorted alphabetically, extensions sorted by alpha of *.py file, built-in extensions

from sd_web_ui_preset_utils.

Gerschel avatar Gerschel commented on August 10, 2024

My goal with this project is to manage presets for custom scripts, but I can't gaurantee that I can achieve that, maybe for some.
It would have a create, delete, and edit. I kind of attached the word utils because I pictured it as a utility box when others are working on their scripts, they can manage presets when testing and have a quick restart button in reach.

from sd_web_ui_preset_utils.

ClashSAN avatar ClashSAN commented on August 10, 2024

manage presets for custom scripts, but I can't gaurantee that I can achieve that, maybe for some

that's good enough, I'm happy somebody is giving it a try!

For older non-updated custom scripts in the wiki, many can work/run as an extensions.
I thought about making some of them a bundle that people can autodownload these scripts.. I don't know how it would work. I haven't done anything with the idea yet. But you might be able to.

I fully support what you're trying to do.

from sd_web_ui_preset_utils.

Gerschel avatar Gerschel commented on August 10, 2024

Is there a way I can run a function after the scripts are preloaded. I can grab the components from the custom scripts but it feels like scope of the values get locked in during my change instantiation. I'd either have to refactor so I can mutate it, or find a way for my script to act last in the stack.
From my playing, sometimes it feels like the change method locks in the width of the list comprehension.
From my save method, if I call my components container directly, I can get a length that includes the components from a custom script, but when it's sent through the change method, everything is there except the custom script components.
But I need it through the change method, because component.value isn't updated (change method pulls the correct values).

from sd_web_ui_preset_utils.

vis223 avatar vis223 commented on August 10, 2024

Well done
'utils' great! idea. You could add a great deal of value in that area, I'm sure
How hard is it to make a 'prompt history'?
Bare bones.
just a chronological list maybe?
Preferably with any dynamic prompts recorded how they were coded
ie '{medium\photography\lighting|medium\photography\lens}'
and not just the 'results' from their output
ie. For this prompt, ping info reports 'Lumen Reflections, F/2.8'
but all the hard work goes into the dynamic prompt which currently isn't saved

from sd_web_ui_preset_utils.

ClashSAN avatar ClashSAN commented on August 10, 2024

@vis223 we do have styles already for saving your prompts, did you try it?

from sd_web_ui_preset_utils.

ClashSAN avatar ClashSAN commented on August 10, 2024

find a way for my script to act last in the stack

i'm not sure, and I hadn't known about which gets loaded first.

from sd_web_ui_preset_utils.

Gerschel avatar Gerschel commented on August 10, 2024

I noticed that the order in the scripts dropdown, are the same order of filename, not title.

from sd_web_ui_preset_utils.

ClashSAN avatar ClashSAN commented on August 10, 2024

so apparently it needs to be a custom script, not extension, and named zzz.py?
that's probably not the best idea but it would be simple to automatically move the file with install.py to scripts folder. It was done over here https://github.com/dr413677671/PromptGallery-stable-diffusion-webui/blob/main/install.py

from sd_web_ui_preset_utils.

Gerschel avatar Gerschel commented on August 10, 2024

Can you check my post and give an opinion. #29 (comment)

from sd_web_ui_preset_utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.