Files
dsProject/dsLightRag/Liblib/T3.py
2025-09-04 07:53:00 +08:00

21 lines
760 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 PuLIDGenerator import PuLIDGenerator
if __name__ == "__main__":
# 创建生成器实例 - 传入模型IDtemplate_uuid
generator = PuLIDGenerator()
# 可选:修改默认参数
generator.set_default_params(
template_uuid="6f7c4652458d4802969f8d089cf5b91f",
steps=25,
width=800,
height=1000
)
# 生成图像
obs_url = generator.generate_image(
prompt="filmfotos, Asian portrait,A young woman wearing a green baseball cap,covering one eye with her hand",
reference_image_url="https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/Backup/HuangWanQiao.jpg",
control_weight=0.8
)
if obs_url:
print(f"最终OBS地址: {obs_url}")