From 0e1b9a75f3ff3d51482d6ea94bd7fb5feee8c45a Mon Sep 17 00:00:00 2001 From: Eddie Offermann Date: Thu, 24 Oct 2024 08:19:20 -0700 Subject: [PATCH] Add import copy to blending.py Commit f051221f76437c83f7ef61ed7f1a9788396e16c2 added a copy.deepcopy command without a corresponding import copy to the file. This fixes that oversight. --- musetalk/utils/blending.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/musetalk/utils/blending.py b/musetalk/utils/blending.py index e0a67cf..5e3fb50 100644 --- a/musetalk/utils/blending.py +++ b/musetalk/utils/blending.py @@ -1,6 +1,7 @@ from PIL import Image import numpy as np import cv2 +import copy from face_parsing import FaceParsing fp = FaceParsing() @@ -96,4 +97,4 @@ def get_image_blending(image,face,face_box,mask_array,crop_box): body[y_s:y_e, x_s:x_e] = cv2.blendLinear(face_large,body[y_s:y_e, x_s:x_e],mask_image,1-mask_image) - return body \ No newline at end of file + return body