Spaces:
Runtime error
Runtime error
BilalSardar
commited on
Commit
·
dc49736
1
Parent(s):
aa18e3b
Update app.py
Browse files
app.py
CHANGED
@@ -9,15 +9,15 @@ def get_mean_and_std(x):
|
|
9 |
return x_mean, x_std
|
10 |
|
11 |
def ApplyChange(image1,image2):
|
12 |
-
template_img = cv2.imread(image1)
|
13 |
-
template_img = cv2.cvtColor(
|
14 |
template_mean, template_std = get_mean_and_std(template_img)
|
15 |
|
16 |
# for img in (input_image_list):
|
17 |
# print(img)
|
18 |
#input_img = cv2.imread(input_dir+img)
|
19 |
-
input_img = cv2.imread(image2)
|
20 |
-
input_img = cv2.cvtColor(
|
21 |
|
22 |
|
23 |
img_mean, img_std = get_mean_and_std(input_img)
|
|
|
9 |
return x_mean, x_std
|
10 |
|
11 |
def ApplyChange(image1,image2):
|
12 |
+
#template_img = cv2.imread(image1)
|
13 |
+
template_img = cv2.cvtColor(image1,cv2.COLOR_BGR2LAB)
|
14 |
template_mean, template_std = get_mean_and_std(template_img)
|
15 |
|
16 |
# for img in (input_image_list):
|
17 |
# print(img)
|
18 |
#input_img = cv2.imread(input_dir+img)
|
19 |
+
#input_img = cv2.imread(image2)
|
20 |
+
input_img = cv2.cvtColor(image2,cv2.COLOR_BGR2LAB)
|
21 |
|
22 |
|
23 |
img_mean, img_std = get_mean_and_std(input_img)
|