sddebz / stable-diffusion-krita-plugin

GNU Affero General Public License v3.0
423 stars 34 forks source link

support for AUTOMATIC1111 webui #30

Open 1blackbar opened 2 years ago

1blackbar commented 2 years ago

Can you add support for it so we give its address http://127.0.0.1:7860/ in settings of the plugin and it would send the image over to krita ?

sddebz commented 2 years ago

There is a problem with webui. I don't really understand how to work with gradio. That's why I went the easy way and just disabled gradio and made a simple server instead. I think it's possible to work with gradio, but I don't think I want to spend my time on it, because I don't really use webui myself.

There is another possibility. I think it should be possible to run both gradio ui and uvicorn from krita_server.py. So you can use Krita plugin just like it works now, and use version of webui from this repository at the same time. I'll look into it.

RandomLegend commented 2 years ago

Gradio has a fully functional API with code snippets you can open in your webui. Maybe this can help?

I run automatic1111 webui because i 1) like the webui very much and 2) "it just works" for me. So if i would be able to hook my krita into that gradio api that would be amazing!

I fully understand if you don't want to invest your time in it. I assum it's a ginormous amount of work. Do you know if any Krita Plugins exist that can hook into gradio? I coudln't find any sadly. maybe i don't know how to search for them properly

sddebz commented 2 years ago

I made it so webui starts too when you run krita.bat (or krita_server.py) from this repo. The version may lag behind automatic1111's, but it should work.

As for other plugins for Krita I know of these two: https://github.com/imperator-maximus/stable-diffusion-krita https://github.com/nousr/koi

Didn't use them myself. Not sure about webui support.