-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Another hr button fix #14728
Another hr button fix #14728
Conversation
I kind of don't like the more complicated implementation for txt2img_upscale and I don't understand why it's needed. The change from script classname to script name is fine but I'd rather it was a single PR. And as for addition of two other functions for settings script args, I'm not sure if they are needed too. |
this I believe is implemented what you initially tried to implement then accidentally broke the main point of this is that this makes I see this as slightly complicated it's here but reduce complications elsewhere
if you only need to update a small portion then short one by one is fine but it's totally possible that someone would want to update the entire arg for whatever reason and get_script_args is is just the counterpart to set args, they might be some cases that we should just get the arcs but not set them, if I said a script needs to know what other script args are then this will come in handy if by overcomplicating you mean that updating the entire seeds arg I could agree with that the other orgs such as resize and variable seed strength doesn't need to be updated from the infotext
I'll make it into a different po if this one is completely rejected |
theres also an issue with update_script_args is more universal in that it will work on all scripts |
Well. We create |
it could be just me thinking too much
do you want me to revert setting to the way it was previously |
For
|
use force_enable_hr to set p.enable_hr = True allow Script.setup() have access to the correct value add a comment for p.txt2img_upscale
60c8877
to
2996e43
Compare
moved to
removed for now |
Description
use
force_enable_hr
to setp.enable_hr = True
intxt2img_create_processing
allow
Script.setup()
have access to the correct valueadd a comment for p.txt2img_upscale
old
Description
class name
is problematic as currently as there's no convention to keep unique names with therescript class name
in base webui alone we have multiple scripts that are all called Scripts
not to mention lots of extensions may use the same Script name for the Script
change to using the scrip internal
name
and as opposed to returning none when there is an issue like script or element id is not found, raise runtime error
even though comparing the element ID using
>
is convenient as it allows you to ignore stuff like the prefixtxt2img_
intxt2img_seed
but this would cause a potential issue in that depending on the order of your argfor example if you have two elements args with IDs of
seed
andsubseed
if the order of the args is
['seed', 'subseed']
theneverything function as normalbut if the order is
['subseed', 'seed']
when matching forseed
it be match withsubseed
hence changed to using
==
set_named_arg
but for the entire argstxt2img_upscale
(Hr button) p create argumentScript.setup()
works with correct argsenable_hr
batch_size
... in thereScript.setup()
enable_hr
inScript.setup()
of my extension, and noticed that the value is not set properlyupdate the entire seed script arg, previously only seed and subseed were read from infotext, now everything is form about seed infotext
seed UI
is completely ignoredChecklist: