'commit'
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user