mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-21 05:53:24 -07:00
global refactoring and fixes,
removed support of extracted(aligned) PNG faces. Use old builds to convert from PNG to JPG. fanseg model file in facelib/ is renamed
This commit is contained in:
parent
921b464d5b
commit
61472cdaf7
82 changed files with 3838 additions and 3812 deletions
20
core/leras/initializers/__init__.py
Normal file
20
core/leras/initializers/__init__.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
import numpy as np
|
||||
from tensorflow.python.ops import init_ops
|
||||
|
||||
from core.leras import nn
|
||||
|
||||
tf = nn.tf
|
||||
|
||||
from .CA import CAInitializerSubprocessor
|
||||
|
||||
class initializers():
|
||||
class ca (init_ops.Initializer):
|
||||
def __call__(self, shape, dtype=None, partition_info=None):
|
||||
return tf.zeros( shape, dtype=dtype, name="_cai_")
|
||||
|
||||
@staticmethod
|
||||
def generate_batch( data_list, eps_std=0.05 ):
|
||||
# list of (shape, np.dtype)
|
||||
return CAInitializerSubprocessor (data_list).run()
|
||||
|
||||
nn.initializers = initializers
|
Loading…
Add table
Add a link
Reference in a new issue