mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-11 23:57:03 -07:00
fix
This commit is contained in:
parent
cfd7803e0d
commit
4acaf08ebf
1 changed files with 2 additions and 0 deletions
|
@ -89,6 +89,8 @@ def color_transfer_mkl(x0, x1):
|
||||||
return np.clip ( result.reshape ( (h,w,c) ).astype(x0.dtype), 0, 1)
|
return np.clip ( result.reshape ( (h,w,c) ).astype(x0.dtype), 0, 1)
|
||||||
|
|
||||||
def color_transfer_idt(i0, i1, bins=256, n_rot=20):
|
def color_transfer_idt(i0, i1, bins=256, n_rot=20):
|
||||||
|
import scipy.stats
|
||||||
|
|
||||||
relaxation = 1 / n_rot
|
relaxation = 1 / n_rot
|
||||||
h,w,c = i0.shape
|
h,w,c = i0.shape
|
||||||
h1,w1,c1 = i1.shape
|
h1,w1,c1 = i1.shape
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue