We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import webuiapi
api = webuiapi.WebUIApi(host='127.0.0.1', port=7860, sampler='Euler a', steps=20)
result1 = api.txt2img(prompt="cute squirrel", negative_prompt="ugly, out of frame", seed=1003, styles=["anime"], cfg_scale=7,
)
result1.image
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
you should do like this:
result1.image.save('test.png')
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: