This commit is contained in:
2025-09-04 07:53:00 +08:00
parent eb55b52029
commit 16ef998ae9
4 changed files with 45 additions and 4 deletions

View File

@@ -5,8 +5,8 @@ class PuLIDGenerator:
def __init__(self):
self.liblib_util = LibLibUtil()
# PuLID人像换脸参数示例
self.template_uuid = "6f7c4652458d4802969f8d089cf5b91f"
self.default_params = {
"templateUuid": "6f7c4652458d4802969f8d089cf5b91f",
"steps": 20,
"width": 768,
"height": 1024,
@@ -45,7 +45,7 @@ class PuLIDGenerator:
"""根据提示词和参考图片生成图像,并自动处理后续流程"""
# 构建生成参数
generate_params = {
"templateUuid": self.template_uuid,
"templateUuid":self.default_params["templateUuid"],
"generateParams": {
"prompt": prompt,
**self.default_params,