like images

This commit is contained in:
2023-07-06 08:38:16 +08:00
parent f50735412b
commit 581da1b294
3 changed files with 38 additions and 0 deletions

View File

@@ -176,11 +176,14 @@ func (model *Model) Inference(image_list []Image, callback func(Image)) {
image_list[index].Format = "webp"
image_list[index].Status = "success"
image_list[index].Progress = 100
//image_list[index].Preview = img
callback(image_list[index])
}
log.Println("推理完成:", model.ID, model.Name)
}
// 加入推理任务
// 将base64编码的图片保存到本地webp
func SaveBase64Image(base64Str string, filename string) error {
// 解码base64图片