sdwebuiapi
sdwebuiapi copied to clipboard
跑demo,默认生成的图片是jpeg,图片生成到哪里去了
use webuiapi.py from webuiapi folder
import webuiapi
api = webuiapi.WebUIApi()
api = webuiapi.WebUIApi(host='127.0.0.1', port=7860, sampler='Euler a', steps=20)
img2txt
result1 = api.txt2img(prompt="cute squirrel", negative_prompt="ugly, out of frame", seed=1003, styles=["anime"], cfg_scale=7,
sampler_index='DDIM',
steps=30,
)
result1.image
I'm not sure what you are asking. Most images from README.md are saved as "jpeg" to reduce size and enhance page load time.
you should do like this:
result1.image.save('test.png')