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

这是个特别牛的项目,请问SD那边能用api调用吗? #251

Open
baojuqiang opened this issue Apr 27, 2023 · 10 comments
Open

这是个特别牛的项目,请问SD那边能用api调用吗? #251

baojuqiang opened this issue Apr 27, 2023 · 10 comments

Comments

@baojuqiang
Copy link

目前SD的速度其实还可以接受,比大部分绘画要快了。
请问如何实现在SD里API调用呢?传入图片+声音得到一个video就好,谢谢哦

@muchenlou
Copy link

这个是ST 不是SD,如何实现在SD里调用API的话,你要个国内大佬搞的哪个webUI 版本,我记得上面是有这个功能的;
如果是ST调用API的话,使用python 新增加一个API就可以了,如果需要协助,可以联系我:[email protected] 或者 VX: muchenlou

@baojuqiang
Copy link
Author

谢谢大牛,我是自己用标准的 webui里部署了sadtalker,然后用webui在前端调用。朋友了解国内哪个大佬的webui吗?不行我研究下python怎么调用哈,谢谢哦

@qq515114557
Copy link

问题解决了吗,也正在研究这个问题

@vinthony
Copy link
Collaborator

这里有一个API的版本,不知道是不是你们需要的:https://replicate.com/cjwbw/sadtalker/api

@whyCanNotKK
Copy link

这里有一个API的版本,不知道是不是你们需要的:https://replicate.com/cjwbw/sadtalker/api

意思不是部署起来当API调用,意思应该是作为SD的extentions,如何通过SD的API调用作为额外插件的SadTalker、

@whyCanNotKK
Copy link

whyCanNotKK commented May 25, 2023

我想增加下这个功能,让SD能够通过API调用,请问这个项目接受非官方人员代码咩? @vinthony

@baojuqiang
Copy link
Author

baojuqiang commented May 25, 2023 via email

@qq515114557
Copy link

qq515114557 commented May 26, 2023

在SadTalker文件夹下创建api.py,api_models.py,./scripts/sadtalker.py
api.txt
sadtalker.txt
api_models.txt

@whyCanNotKK
Copy link

在SadTalker文件夹下创建api.py,api_models.py,./scripts/sadtalker.py api.txt sadtalker.txt api_models.txt

确实可以实现api功能,但是这样不是SD能调用的方式,我正在修改代码使得SD能调用。
顺便请教一下:从代码来看,用来执行视频生成的对象sadtalker在ui页面中似乎只在init阶段生成了一个对象,后续的使用都只用这一个对象去生成视频,而且生成视频的函数并不是异步的。那么为了能异步使用,是否要再每次调用的时候生成一个新的sadtalker对象比较好?
@vinthony

@yonggangy
Copy link

yonggangy commented Jun 14, 2023

@qq515114557 > 在SadTalker文件夹下创建api.py,api_models.py,./scripts/sadtalker.py api.txt sadtalker.txt api_models.txt

这个如何调用呢 新人 望指教

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

6 participants