DEBUG 宽高更正
This commit is contained in:
@@ -154,12 +154,8 @@ 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 // 图片高度
|
||||
}
|
||||
datx["width"] = img.Width // 图片宽度
|
||||
datx["height"] = img.Height // 图片高度
|
||||
if img.SamplerName == "" {
|
||||
datx["sampler_name"] = img.SamplerName // 采样器名称
|
||||
}
|
||||
@@ -186,8 +182,6 @@ func (model *Model) Inference(image_list []Image, callback func(Image)) {
|
||||
image_list[index].Path = "data/images/" + filename + ".webp"
|
||||
image_list[index].Hash = filename
|
||||
image_list[index].Type = "image/webp"
|
||||
image_list[index].Width = 512
|
||||
image_list[index].Height = 512
|
||||
image_list[index].Format = "webp"
|
||||
image_list[index].Status = "success"
|
||||
image_list[index].Progress = 100
|
||||
|
Reference in New Issue
Block a user