'commit'
This commit is contained in:
29
dsLightRag/Liblib/Backup/T3_WenShengTu_DefaultCheckPoint.py
Normal file
29
dsLightRag/Liblib/Backup/T3_WenShengTu_DefaultCheckPoint.py
Normal file
@@ -0,0 +1,29 @@
|
||||
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("❌ 生图任务失败")
|
Reference in New Issue
Block a user