-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added New Scheduler: Simple KES - Karras Exponential Scheduler #16598
Conversation
…l-Scheduler-2 Added New Scheduler
Update simple_karras_exponential_scheduler.py
forgot to include this in my lasst commit
Add files via upload
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I see what you trying to do
but what is in this PR is just add 3 unused files to the repo, in other words it serves no function
it's incomplete at best
if a PR is not read for review the you shoud make it a draft and not a open PR
if you are actually wish to make a PR into the repo then probably then I think it shoud at least fulfill these requirements
- it needs to be integrated webui
-
- you should be able to set those parameters through the web UI / api and not thourgh
-
-
- it should not be only accessible via editing the file manually through local means
-
-
- generation parameters should be saved to the image
-
- generation parameters should be able to be parsed back from pnginfo / infotext
- files that are meant to be edited by the user should not be stored in
modules
-
- if a template like file for user to change then that's file can never be changed by us after its initial creation
config
- if a template like file for user to change then that's file can never be changed by us after its initial creation
- correct method of installing dependency
-
- some libs such k-diffusion we don't use pip re clone the repo
this a incomplete list of the basic issues
it is not a review of or not this is useful or not
to be honest I feel like you should probably make this into an extension
You can add it to code or not. It works in stable diffusion A1111 with the modified changes I posted to my github account. |
Also, I don't know enough about SD webui to make all the changes accessible through your code. I created a new scheduler. How you integrate it with your code is up to you. |
I added the install instructions on my page for how to integrate it with A1111 on their local machines. I am suggesting that you integrate with my scheduler, Simple_KES. I've udpated the SD_schedulers.py file so that the scheduler appears on the map. That's all you need to do to get functionality to use the scheduler. You don't need to modify the config file with my adjusted file here: |
You're asking me to create an extension which adds functionality to use a new scheduler? You'd still need to add this file to the modules folder, and you'd still need to update the sd_schedulers.py file. If you want webui compatability, you'd need to look at the included config yaml file and use those variables in your code. Making it into an extension would not negate the need to add it to your modules folder and update sd_schedulers which I already did. |
no you don't I wrote some a quick example https://github.com/w-e-w/Simple_KES |
as mentioned I suggest you making this into extension the biggest advantage of having it as an extension is that I have give you a starting point on how you can make a it as an extention without requiring modification modification to webui however if you insist on wishing it to be in the main repo
moreover asking someone to patch WebUI or providing a script to do so is basically asking someone to break WebUI in most casesit's actually possible to achieving the the result you need without actually haveing to modifying WebUIs codebase but as I have demonstrated in the my example, you actually don't need any changes to the existing webui code to make your scheduler work as extension in my opinion you're trying to make a hybrid scheduler that is highly configurable I really feels this is more suited as extension for advanced users that knows what they're doing and really wants to tinker with scheduler, as opposed to something that is should be the main repo you can add your an extention to the index by makeing a PR to https://github.com/AUTOMATIC1111/stable-diffusion-webui-extensions as such I'm closing this PR |
"I doubt the mass majority of users would be able to take advantage of this feature" yea - since you called my code useless, you obviously have no understanding of schedulers. "you can add your an extention to the index by makeing a PR to https://github.com/AUTOMATIC1111/stable-diffusion-webui-extensions" and will you deny that application too because you think people won't use it? |
"I have give you a starting point on how you can make a it as an extention without requiring modification modification to webui |
to be honest at this point I'm not sure if I'm bad at writing or you just don't want to read
I didn't call your code useless, I simply called that your code is not a PR let me play completely dumb then I don't understand anything about schedules I didn't worte the code myself, nor do 99.9% of the users
that is simply a way of speaking, you're reading too much into the simple phrase, but if you really want to read into it, then what you have made is a working prototype, that you are proposing your prototype as a final product
if you made something that you wish to show others, but you're not able to represent it in a way that is understandable, that people simply don't understand you, and to them you made nothing
just to make sure I'm pretty sure that there isn't a I'm not sure what you're talking about automatic, is not and has never been a scheduler I have never asserted that your code is useless, you are the one that is putting these words into my mouth my suggestion that it be made into an extension is a suggestion of practicality
if my intention is to reject your extension because I believe it's not useful then I wouldn't even ask you to submit it
it works, I produced two images with webui 1.10 the point of that example is simply to state that yes you can add schedulers to list of schedulers that is usable by a user from an extension
not entirely sure what you mean "by you",
what do you mean by a "permanent solution", practically nothing is permanent in Python if you don't want multiple config files, create a multiple schedule entries |
I also gave you the option
as mentioned in the above reasons your code is not working code and so it is closed just in case you misunderstand the term "dead code"
the content in this Pull Request is code that is not reachable and will never be executed by webui you are welcome to open a new PR with "live working code"I've only suggest that you make it into an extension because I believe it is better |
Description
Added support for a new custom scheduler which combines Karras with Exponential with customizable options that configures the scheduler with the use of yaml config file.
Includes a bat file in root which can update the venv for required dependancies
Includes watchdog which will monitor the yaml config file and update the scheduler with new config options. Watchdog is only looking for config changes in the yaml file.
Screenshots/videos:
Checklist: