Replies: 1 comment 3 replies
-
I never used the https://github.com/mix1009/sdwebuiapi what I'm guessing is that because also assuming that default seed is I suggest you implement your client yourself and don't use a pre-built Library by others in my opinion this is a more reliable way of using the API |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I used img2img inpaint upload two of same image call "cupofwater.png"

These are my settings:
prompt: street lora:LCM_LoRA_Weights_SDXL:1
then, I got this:

I tried to copy the env value to API and I expect I can get the same result:
the cupofwater.png is the transparent background.
`import webuiapi
from PIL import Image
api = webuiapi.WebUIApi(host='127.0.0.1', port=7860)
image = Image.open("cupofwater.png")
mask = Image.open("cupofwater.png")
inpainting_result = api.img2img(images=[image],
resize_mode=0,
mask_image=mask,
inpainting_fill=0,
mask_blur=0,
sampler_index = 'DPM++ SDE Karras',
inpainting_mask_invert=1,
prompt="street lora:LCM_LoRA_Weights_SDXL:1",
cfg_scale=2,
steps = 10,
denoising_strength=1
)
inpainting_result.image
`
but I got this:

plz tell me what am I missing.
Beta Was this translation helpful? Give feedback.
All reactions