ljleb

Results 256 comments of ljleb

Just a kind reminder to keep a friendly tone. I know everyone wants this extension to be the best, this is why we're talking about these features right now. I...

One thing we need to take into consideration is multi-controlnet batch. To handle the controlnet batch feature, we could add a batch input directory field for each controlnet unit, and...

Here are 3 image to illustrate what I had in mind for this feature earlier. I don't mean to say that I think this is the only way it should...

I'm kind of confused because the value of `__name__` is never going to be `'__main__'`, since this is a webui extension. So the callback will simply never be registered with...

Thanks for the info. > This PR solves it. But it creates issues for webui use-cases that do not rely on the API, namely the callback will never be registered...

@stassius Can you try with `if __name__ == 'controlnet.py'` instead? IIUC `__name__` is `'scripts.controlnet'` when imported by the API. I have not tested using all webui versions but on latest...

I allowed myself to update this PR with the proposed fix. Feel free to revert my changes if it does not work on your side @stassius.

As some people have had problems using the `__file__` global for some reason (see #446), maybe hardcoding `'controlnet.py'` will be a better idea. Not sure why though? It isn't defined...

I checked and the default value for `p.script_args` is `None`. I'll look into how the ui calls the code for its own `/*2img` routes.