You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if 'train' in stats_mode:
xn = tf.nn.batch_normalization(
list_input[i], mean, var, beta, gamma, bn_epsilon)
if tf.get_variable_scope().reuse or 'gather' not in stats_mode:
list_output.append(xn)
else:
# gather stats and it is the main gpu device.
xn = update_bn_ema(xn, mean, var, moving_mean, moving_var, bn_ema)
list_output.append(xn)
else:
xn = tf.nn.batch_normalization(
list_input[i], moving_mean, moving_var, beta, gamma, bn_epsilon)
list_output.append(xn)
The text was updated successfully, but these errors were encountered:
In the third line of the pasted codes, the batch mean and var of the current batch are used for batchnorm computation. I think we should use moving mean and var in BN
The text was updated successfully, but these errors were encountered: