-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
[Feature]: How do I use the API to call this function? thanks. #42
Comments
"alwayson_scripts":{"AnimateDiff": {"args": [true,0,24,6,"mm_sd_v15.ckpt"]} |
这确实可以触发动画图片生成。但通过txt2img调用,在api/api.py的text2imgapi函数中,processed.images得到的并不是Image.Image对象,而是gif图片的路径。所以系统崩溃了。 def text2imgapi(self, txt2imgreq: models.StableDiffusionTxt2ImgProcessingAPI): def encode_path_to_base64(path): |
根據回覆 txt2img 報錯是因為得到的是 路徑列表 所以不回傳呢?
Expected behavior
payload = {
"prompt": aPrompt,
"negative_prompt": aNprompt,
"width": 512,
"height": 768,
"steps": 25,
"sampler_index": "Euler a"
}
response = requests.post(url=f'{url}/sdapi/v1/txt2img', json=payload)
This is a request to call a txt2img, but I'm not sure how to call "AnimateDiff" here to generate an animation. thanks
The text was updated successfully, but these errors were encountered: