mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-08 05:51:40 -07:00
_
This commit is contained in:
parent
aa58d9e563
commit
bb02cc1d97
2 changed files with 2 additions and 3 deletions
|
@ -22,10 +22,9 @@ class FANSegmentator(object):
|
|||
self.model.load_weights (str(self.weights_path))
|
||||
else:
|
||||
if training:
|
||||
io.log_info ("Initializing CA weights...")
|
||||
conv_weights_list = []
|
||||
for layer in self.model.layers:
|
||||
if type(layer) == Conv2D:
|
||||
if type(layer) == keras.layers.Conv2D:
|
||||
conv_weights_list += [layer.weights[0]] # Conv2D kernel_weights
|
||||
CAInitializerMP(conv_weights_list)
|
||||
if training:
|
||||
|
|
|
@ -938,7 +938,7 @@ class CAInitializerMPSubprocessor(Subprocessor):
|
|||
|
||||
#override
|
||||
def on_clients_initialized(self):
|
||||
io.progress_bar ("Processing", len (self.idx_shapes_list))
|
||||
io.progress_bar ("Initializing", len (self.idx_shapes_list))
|
||||
|
||||
#override
|
||||
def on_clients_finalized(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue