瀏覽代碼

Assert `--image-weights` not combined with DDP (#3275)

modifyDataloader
Glenn Jocher GitHub 3 年之前
父節點
當前提交
10d56d784e
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      train.py

+ 1
- 0
train.py 查看文件

@@ -525,6 +525,7 @@ if __name__ == '__main__':
device = torch.device('cuda', opt.local_rank)
dist.init_process_group(backend='nccl', init_method='env://') # distributed backend
assert opt.batch_size % opt.world_size == 0, '--batch-size must be multiple of CUDA device count'
assert not opt.image_weights, '--image-weights argument is not compatible with DDP training'
opt.batch_size = opt.total_batch_size // opt.world_size

# Hyperparameters

Loading…
取消
儲存