Closed Norgus closed 1 year ago
This seems due to me exposing AUTO's script API. Error occurs in the logic for loading cached metadata for scripts. JSON error indicates the metadata is empty rather than corrupted. Probably means the script dropdown has a value outside of the options available.
Try clicking the "(Experimental) Scripts" and selecting an option (i.e. "None"). When I am finished with my work, I will just have it reset to the default of None if the metadata is invalid.
I'm going from memory but I don't think so, I remember testing the web interface and generating one image there, then pressing the button in Krita didn't add anything to the server log. I used my own webui-user.bat and had to remove --api and --vae-path (I don't think it liked vae-ft-mse-840000-ema-pruned.ckpt) I still had --listen and --xformers enabled.
I might just wait until the automatic1111 API matures and you adopt it, this seems like a headache. (having to switch between being up to date and branched & fiddle with my startup batch each time seems tedious)
On Sun, 30 Oct 2022, 11:51 John-Henry Lim, @.***> wrote:
Was there any error in the server console?
— Reply to this email directly, view it on GitHub https://github.com/Interpause/auto-sd-krita/issues/49#issuecomment-1296233434, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA7XGB2J3ZWZYCBURCXOG3WFZOL3ANCNFSM6AAAAAARRZPC2I . You are receiving this because you authored the thread.Message ID: @.***>
Actually, in the short term, I am looking at using the extensions API instead.
I right now have a feeling the API maturing would take quite a while longer, and probably will never support some of the features I want unless I start making pull requests I currently don't have time for...
For example, it probably is no one's priority right now to implement calling scripts or changing shared settings in the official API. I would do it myself, but there's no tracking issue to coordinate these changes, and I simply don't have time for the next week or so.
EDIT: oh i stand corrected, the official API supports changing settings already. Just that it doesn't work for things that require reloading (i.e. models). Still rewriting to use the official API is going to take quite a lot of time. At that point, it probably is better to wait for someone to create a better plugin using the official API.
https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/4005 might be very useful if it gets merged and works correctly.
I am going to update my tracking issue on this: https://github.com/Interpause/auto-sd-krita/issues/24
Just a heads-up. My PR was closed but you can extend the API using https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/3982
I set it up using git before, so I started off by opening a git console in the plugin dir, doing 'git pull' to update. I also switched my auto1111 repo using 'git switch --detach krita/master' which worked once I stashed my webui-user.bat away. However, on launching krita and trying either txt2img or img2img I get an error, an example of which I have pasted below: