mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 09:07:10 +08:00
Update im.copy() to im in examples
This commit is contained in:
@@ -52,7 +52,7 @@ model.size = (256, 256)
|
||||
# 预测图片抠图结果
|
||||
im = cv2.imread(args.image)
|
||||
bg = cv2.imread(args.bg)
|
||||
result = model.predict(im.copy())
|
||||
result = model.predict(im)
|
||||
print(result)
|
||||
# 可视化结果
|
||||
vis_im = fd.vision.vis_matting_alpha(im, result)
|
||||
|
Reference in New Issue
Block a user