Interpause / auto-sd-krita

AUTOMATIC1111 webUI + Krita Plugin with superb Inpainting
MIT License
88 stars 4 forks source link

UPDATE: New Extension-based version: https://github.com/Interpause/auto-sd-paint-ext #24

Closed Interpause closed 1 year ago

Interpause commented 1 year ago

Overview

UPDATE: it's done: https://github.com/Interpause/auto-sd-paint-ext

NOTE: You will have to reset the Backend URL to default as the URL changed!

See: https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/3040

The upstream official API for AUTOMATIC1111 is still far from complete, but is functional enough. If https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/4005 gets merged, it also means I can implement missing functionality as an extension first, before it eventually gets integrated into the official API.

Current Plan

Timescale

I am currently quite busy, so this might only happen 2 weeks from now.

danilw commented 1 year ago

So you are planning to replace current server with official remote-api integration? if I understand it correctly (I do need remote uploading/downloading of images, and making some workaround for current your modification, but look like this feature will come latter to this plugin with server API change)

Interpause commented 1 year ago

Yes, but right now, the official API is far from complete.

In the short run, I am still going to modify the current API to send the images instead of file paths so that remote backend works. I don't think I will move to the official API till it is sufficiently developed so that I am able to keep all the features while transitioning to it.

BTW, progress on modifying the current API (not migrating to the official API) is over here: https://github.com/Interpause/auto-sd-krita/tree/api-refactor

danilw commented 1 year ago

BTW, progress on modifying the current API (not migrating to the official API) is over here:

Look like there still read/write directly to file, so idk when it gonna work with remote API instead files. I adding simple-straight-forward get/post image by Post/Get requests(before reading obviously), just to make it work in my current environment.

Interpause commented 1 year ago

BTW, progress on modifying the current API (not migrating to the official API) is over here:

Look like there still read/write directly to file, so idk when it gonna work with remote API instead files. I adding simple-straight-forward get/post image by Post/Get requests(before reading obviously), just to make it work in my current environment.

The original API isn't mine, I am refactoring stuff before actually doing it. (aka procrastinating)

Interpause commented 1 year ago

28 Yup its done.

danilw commented 1 year ago

ow wow! thank you for effort, you save my time! il check it latter

danilw commented 1 year ago

I made this simple Colab script:

https://github.com/danilw/Krita-StableDiffusion-WebUI-Colab/

Script was updated, try to redownload and try again if old version not work.

Allows to use this StableDiffusion Krita plugin with Google Colab.

Everything works.

Sometime Krita freeze during upload/download images and only Krita restart fix it. And you have to "refresh" image in Krita UI (hide/show new uploaded image), but it works.

simcop2387 commented 1 year ago

If it helps, I'm planning to implement the model switching parts (and a few other things like it) myself on autolmatic's version. I'm going to need them for some auto-generation stuff i'm trying to do where i'll want to switch models around.

My plan is a GET request that returns all the known models currently, and then a PUT to it that selects the model to use in future operations (I'd love this to be a parameter in the txt2img and img2img requests but I believe that the whole system isn't really designed with that in mind.)

Are there any specific features/additions to that that you would want to help your work?

bamarillo commented 1 year ago

Just a heads-up. My PR was closed but you can extend the API using https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/3982

Interpause commented 1 year ago

If it helps, I'm planning to implement the model switching parts (and a few other things like it) myself on autolmatic's version. I'm going to need them for some auto-generation stuff i'm trying to do where i'll want to switch models around.

My plan is a GET request that returns all the known models currently, and then a PUT to it that selects the model to use in future operations (I'd love this to be a parameter in the txt2img and img2img requests but I believe that the whole system isn't really designed with that in mind.)

Are there any specific features/additions to that that you would want to help your work?

Besides models:

In a sense, if the entirety of shared.py could be exposed as a POST/PUT endpoint while handling all the misc tasks required after changing some settings, it would be great.

Interpause commented 1 year ago

Its done: https://github.com/Interpause/auto-sd-paint-ext

I will create an install video and new demo soon (maybe after I add outpainting)