Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

跑demo,默认生成的图片是jpeg,图片生成到哪里去了 #54

Open
stvenyin opened this issue Apr 24, 2023 · 2 comments
Open

跑demo,默认生成的图片是jpeg,图片生成到哪里去了 #54

stvenyin opened this issue Apr 24, 2023 · 2 comments

Comments

@stvenyin
Copy link

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

@mix1009
Copy link
Owner

mix1009 commented Apr 24, 2023

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.

@zhuqingsong59
Copy link
Contributor

you should do like this:

result1.image.save('test.png')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants