disable dist_bn when sync_bn active

This commit is contained in:
Ross Wightman 2022-06-24 21:30:17 -07:00
parent 07d0c4ae96
commit a29fba307d

View File

@ -438,6 +438,7 @@ def main():
# setup synchronized BatchNorm for distributed training
if args.distributed and args.sync_bn:
args.dist_bn = '' # disable dist_bn when sync BN active
assert not args.split_bn
if has_apex and use_amp == 'apex':
# Apex SyncBN used with Apex AMP