Update app.py
Browse files
app.py
CHANGED
@@ -478,12 +478,12 @@ def get_mean_and_std(x):
|
|
478 |
return x_mean, x_std
|
479 |
|
480 |
def color_transfer(base):
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
print("Converting picture "+str(n)+"...")
|
488 |
s, t = read_file(frames[n],targets[n])
|
489 |
s_mean, s_std = get_mean_and_std(s)
|
|
|
478 |
return x_mean, x_std
|
479 |
|
480 |
def color_transfer(base):
|
481 |
+
global frames
|
482 |
+
targets = []
|
483 |
+
|
484 |
+
for n in range(len(frames)):
|
485 |
+
targets.append(frames[base])
|
486 |
+
if n != base:
|
487 |
print("Converting picture "+str(n)+"...")
|
488 |
s, t = read_file(frames[n],targets[n])
|
489 |
s_mean, s_std = get_mean_and_std(s)
|