mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-21 22:13:20 -07:00
fix range
This commit is contained in:
parent
91301d0516
commit
4223ec7986
1 changed files with 1 additions and 1 deletions
|
@ -506,7 +506,7 @@ Examples: df, liae, df-d, df-ud, liae-ud, ...
|
|||
num_labels = self.batch_size
|
||||
for d in tensor.shape[1:]:
|
||||
num_labels *= d
|
||||
for _ in num_labels:
|
||||
for _ in range(num_labels):
|
||||
if np.random.random() < noise:
|
||||
label = 0 if label == 1 else 1
|
||||
if label == 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue