mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-07 05:22:06 -07:00
upd nnlib.py
This commit is contained in:
parent
e9313e29f6
commit
429e7e6aee
2 changed files with 3 additions and 3 deletions
|
@ -317,7 +317,7 @@ class SAEModel(ModelBase):
|
|||
# x = np.array (self.src_sample_losses)
|
||||
# self.src_sample_losses = []
|
||||
# b = x[:,1]
|
||||
# idxs = (x[:,0][ np.argwhere ( b [ b > np.mean(b) ] )[:,0] ]).astype(np.uint)
|
||||
# idxs = (x[:,0][ np.argwhere ( b [ b > (np.mean(b)+np.std(b)) ] )[:,0] ]).astype(np.uint)
|
||||
# generators_list[0].repeat_sample_idxs(idxs) #ask generator to repeat these sample idxs
|
||||
#
|
||||
#
|
||||
|
@ -326,7 +326,7 @@ class SAEModel(ModelBase):
|
|||
# x = np.array (self.dst_sample_losses)
|
||||
# self.dst_sample_losses = []
|
||||
# b = x[:,1]
|
||||
# idxs = (x[:,0][ np.argwhere ( b [ b > np.mean(b) ] )[:,0] ]).astype(np.uint)
|
||||
# idxs = (x[:,0][ np.argwhere ( b [ b > (np.mean(b)+np.std(b)) ] )[:,0] ]).astype(np.uint)
|
||||
# generators_list[1].repeat_sample_idxs(idxs) #ask generator to repeat these sample idxs
|
||||
|
||||
if self.options['learn_mask']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue