mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-20 13:33:24 -07:00
Merge pull request #10 from MachineEditor/preview_filenames
Preview filenames - fixes
This commit is contained in:
commit
9cef60ce91
3 changed files with 3 additions and 3 deletions
|
@ -319,7 +319,7 @@ class QModel(ModelBase):
|
||||||
DM = D[i]*target_dstm[i]
|
DM = D[i]*target_dstm[i]
|
||||||
if filenames is not None and len(filenames) > 0:
|
if filenames is not None and len(filenames) > 0:
|
||||||
SM = label_face_filename(SM, filenames[0][i])
|
SM = label_face_filename(SM, filenames[0][i])
|
||||||
DM = label_face_filename(DM, filenames[0][i])
|
DM = label_face_filename(DM, filenames[1][i])
|
||||||
ar = SM, SS[i], DM, DD[i]*DDM[i], SD[i]*(DDM[i]*SDM[i])
|
ar = SM, SS[i], DM, DD[i]*DDM[i], SD[i]*(DDM[i]*SDM[i])
|
||||||
st_m.append ( np.concatenate ( ar, axis=1) )
|
st_m.append ( np.concatenate ( ar, axis=1) )
|
||||||
|
|
||||||
|
|
|
@ -994,7 +994,7 @@ class SAEHDModel(ModelBase):
|
||||||
DM = D[i]*target_dstm[i]
|
DM = D[i]*target_dstm[i]
|
||||||
if filenames is not None and len(filenames) > 0:
|
if filenames is not None and len(filenames) > 0:
|
||||||
SM = label_face_filename(SM, filenames[0][i])
|
SM = label_face_filename(SM, filenames[0][i])
|
||||||
DM = label_face_filename(DM, filenames[0][i])
|
DM = label_face_filename(DM, filenames[1][i])
|
||||||
ar = SM, SS[i]*SSM[i], DM, DD[i]*DDM[i], SD[i]*SD_mask
|
ar = SM, SS[i]*SSM[i], DM, DD[i]*DDM[i], SD[i]*SD_mask
|
||||||
st_m.append ( np.concatenate ( ar, axis=1) )
|
st_m.append ( np.concatenate ( ar, axis=1) )
|
||||||
|
|
||||||
|
|
|
@ -115,9 +115,9 @@ class SampleGeneratorFace(SampleGeneratorBase):
|
||||||
samples, index_host, ct_samples, ct_index_host = param
|
samples, index_host, ct_samples, ct_index_host = param
|
||||||
|
|
||||||
bs = self.batch_size
|
bs = self.batch_size
|
||||||
filenames = []
|
|
||||||
while True:
|
while True:
|
||||||
batches = None
|
batches = None
|
||||||
|
filenames = []
|
||||||
|
|
||||||
indexes = index_host.multi_get(bs)
|
indexes = index_host.multi_get(bs)
|
||||||
ct_indexes = ct_index_host.multi_get(bs) if ct_samples is not None else None
|
ct_indexes = ct_index_host.multi_get(bs) if ct_samples is not None else None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue