mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-16 10:03:41 -07:00
color transfer sot : optimization
This commit is contained in:
parent
f8580928ed
commit
6bbc607312
1 changed files with 2 additions and 1 deletions
|
@ -35,8 +35,9 @@ def color_transfer_sot(src,trg, steps=10, batch_size=5, reg_sigmaXY=16.0, reg_si
|
|||
h,w,c = src.shape
|
||||
new_src = src.copy()
|
||||
|
||||
advect = np.empty ( (h*w,c), dtype=src_dtype )
|
||||
for step in range (steps):
|
||||
advect = np.zeros ( (h*w,c), dtype=src_dtype )
|
||||
advect.fill(0)
|
||||
for batch in range (batch_size):
|
||||
dir = np.random.normal(size=c).astype(src_dtype)
|
||||
dir /= npla.norm(dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue