Spaces:
Runtime error
Runtime error
gokaygokay
commited on
Commit
•
b5ca733
1
Parent(s):
ceab301
Update app.py
Browse files
app.py
CHANGED
@@ -184,7 +184,7 @@ def laplacian_blend(img1: np.ndarray, img2: np.ndarray, mask: np.ndarray, depth:
|
|
184 |
|
185 |
for d in range(depth-1):
|
186 |
gaussian_img = _low_pass_filter(blended_img, sigma)
|
187 |
-
gaussian_img = cv2.resize(gaussian_img, blended[d].shape[
|
188 |
|
189 |
# Ensure both images have 3 channels
|
190 |
if len(blended[d].shape) == 2:
|
|
|
184 |
|
185 |
for d in range(depth-1):
|
186 |
gaussian_img = _low_pass_filter(blended_img, sigma)
|
187 |
+
gaussian_img = cv2.resize(gaussian_img, (blended[d].shape[1], blended[d].shape[0]))
|
188 |
|
189 |
# Ensure both images have 3 channels
|
190 |
if len(blended[d].shape) == 2:
|