Closed rockywind closed 2 years ago
Yup, I set it as True when doing multi GPU training
Thank you for your help! But,when I can't set the sync_bn as True, when I doing multi GPU inference.
Yes, this only affects training, as this calculates the Batch Norm mean and variance across the full batch (all GPUs) when training. Inference these parameters are fixed, so you don't need to set anything there. Please see here
Thank you very much!
Thank you for you help.
parser.add_argument('--sync_bn', action='store_true', default=False, help='whether to use sync bn')