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_hrto setp.enable_hr = Trueintxt2img_create_processingallow
Script.setup()have access to the correct valueadd a comment for p.txt2img_upscale
old
Description
class nameis problematic as currently as there's no convention to keep unique names with therescript class namein 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
nameand 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_seedbut 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
seedandsubseedif the order of the args is
['seed', 'subseed']theneverything function as normalbut if the order is
['subseed', 'seed']when matching forseedit be match withsubseedhence changed to using
==set_named_argbut for the entire argstxt2img_upscale(Hr button) p create argumentScript.setup()works with correct argsenable_hrbatch_size... in thereScript.setup()enable_hrinScript.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 UIis completely ignoredChecklist: