Files
dsProject/dsLightRag/Liblib/T3_WenShengTu_DefaultCheckPoint.py
2025-09-04 11:30:58 +08:00

30 lines
878 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from Liblib.Kit.LibLibGenerator import LibLibGenerator
if __name__ == '__main__':
liblib = LibLibGenerator()
# 设置LoRA参数
additional_network = [
{
"modelId": "169505112cee468b95d5e4a5db0e5669", # LoRA的模型版本uuid
"weight": 1.0 # LoRA权重
}
]
# 调用通用方法进行文生图
result = liblib.generate_default_text_to_image(
prompt="filmfotos, Asian portrait,A young woman wearing a green baseball cap,covering one eye with her hand",
steps=20,
width=768,
height=1024,
img_count=1,
seed=-1,
restore_faces=0,
additional_network=additional_network
)
if result:
print(f"🎉 生图任务完成最终OBS地址: {result}")
else:
print("❌ 生图任务失败")