支持宽高与负面提示词
This commit is contained in:
@@ -154,9 +154,18 @@ func (model *Model) Inference(image_list []Image, callback func(Image)) {
|
||||
datx["n_iter"] = len(image_list) // 生成图像数量
|
||||
datx["steps"] = img.Steps // 迭代步数
|
||||
datx["cfg_scale"] = img.CfgScale // 提示词引导系数 (CFG Scale)
|
||||
if img.Width > 0 {
|
||||
datx["width"] = img.Width // 图片宽度
|
||||
}
|
||||
if img.Height > 0 {
|
||||
datx["height"] = img.Height // 图片高度
|
||||
}
|
||||
if img.SamplerName == "" {
|
||||
datx["sampler_name"] = img.SamplerName // 采样器名称
|
||||
}
|
||||
if img.NegativePrompt != "" {
|
||||
datx["negative_prompt"] = img.NegativePrompt // 负面提示词
|
||||
}
|
||||
fmt.Println("image_list:", datx)
|
||||
|
||||
// 接收到的图片列表
|
||||
|
Reference in New Issue
Block a user