Klace / stable-diffusion-webui-instruct-pix2pix

Extension for webui to run instruct-pix2pix
Other
320 stars 20 forks source link

Is it possible to use with webui api? #48

Open DaveScream opened 1 year ago

DaveScream commented 1 year ago

subject

Klace commented 1 year ago

Not at this time. The plan is to move away from the extension into the img2img interface eventually. At that point it can probably be added to the API.

Klace commented 1 year ago

Of course :)

On Tue, Jan 31, 2023, 2:08 AM ChunKoo Park @.***> wrote:

Would you accept PR for API support(inside the extension) if it's implemented?

— Reply to this email directly, view it on GitHub https://github.com/Klace/stable-diffusion-webui-instruct-pix2pix/issues/48#issuecomment-1409868861, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGGO6I2RGN6RIXYQIMNYYZ3WVC27HANCNFSM6AAAAAAULTG4YE . You are receiving this because you commented.Message ID: @.*** .com>

chrisbward commented 1 year ago

Interested!

mix1009 commented 1 year ago

PR has been merged into main branch.

Please see PR for API usage:

https://github.com/Klace/stable-diffusion-webui-instruct-pix2pix/pull/57

mix1009 commented 1 year ago

webuiapi ( https://github.com/mix1009/sdwebuiapi ) now natively supports instruct-pix2pix api :)

import webuiapi

api = webuiapi.WebUIApi()
ip2p = webuiapi.InstructPix2PixInterface(api)
r = ip2p.img2img(prompt='sunset', images=[pil_img], text_cfg=7.5, image_cfg=1.5)
r.image