Open DaveScream opened 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.
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>
Interested!
PR has been merged into main branch.
Please see PR for API usage:
https://github.com/Klace/stable-diffusion-webui-instruct-pix2pix/pull/57
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
subject