mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
fix reshape
This commit is contained in:
parent
4223ec7986
commit
a89cf63e9f
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ Examples: df, liae, df-d, df-ud, liae-ud, ...
|
|||
else:
|
||||
label = np.random.uniform(1-smoothing/2, 1.0)
|
||||
labels.append(label)
|
||||
return tf.reshape(labels, tensor.shape)
|
||||
return tf.reshape(labels, (self.batch_size,) + tensor.shape[1:])
|
||||
|
||||
gpu_pred_src_src_d_ones = get_smooth_noisy_labels(1, gpu_pred_src_src_d, smoothing=0.2, noise=0.05)
|
||||
gpu_pred_src_src_d_zeros = get_smooth_noisy_labels(0, gpu_pred_src_src_d, smoothing=0.2, noise=0.05)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue