22 points · by _7eg9 · 4y ago · 4 comments
Demo here: https://www.youtube.com/watch?v=maWR7dDf4SE
Although it will be improving, the codebase has a few issues
The Good
- ability to multitask within krita while generating images
- uses a queue so you can queue up multiple images without waiting for your other batches to come back
- no need for a webserver (uses sockets to communicate)
- clean code
- active development (i want to use this tool myself)
- uses stablediffusiond and stablediffusion as separate repos, these can be swapped out as desired with some hacking
The Bad - currently relies on rabbitmq and doesn't provide another option
- plugin only does txt2txt. img2img works but is disabled
- must acquire the model manually
The ugly - not all of the features work yet. in fact you can only generate an image.
- installation is somewhat involved (requires CUDA 11.3, rabbitmq and more) - there is an installation file and instructions but likely need improvement,
Krita Stable Diffusion plugin https://github.com/w4ffl35/krita_stable_diffusion
stablediffusiond (daemon / queue runners) https://github.com/w4ffl35/stablediffusiond/tree/feature/krita-plugin
stable diffusion https://github.com/w4ffl35/stable-diffusion/tree/feature/krita-plugin
---if anyone uses this and runs into problems, just open an issue in the appropriate repo and i'll do my best to help.
The code in that repo is not in great shape. It is forked from stable diffusion webui and has diverged from the parent fork (at time of this writing "This branch is 473 commits ahead, 271 commits behind sd-webui:main").
I've seen multiple complaints regarding the code. It was hard to add the NSFW filter, and even as such the maintainer never merged by pr. Streamers can't use the plug-in without a ban risk on twitch.
My code is very clean and well documented. Adding new panels etc to the krita plug-in itself is extremely easy thanks to the classes i wrote.
Furthermore the existing solution uses a webserver, whereas mine uses sockets. Existing has blocking requests (click button, wait for image for 8 seconds or more) whereas mine is non-blocking (uses threads and a queue system so you can keep working in krita while it generates).
I realize mine is still in a broken state, but it won't be much longer. If anyone wants to contribute that would also be helpful.
https://github.com/w4ffl35/krita_stable_diffusion/discussion...