From 06d264198c472a09be5e4bb2dc9cc9a3a6533a69 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Mon, 25 Mar 2019 15:05:35 +0100 Subject: [PATCH] Update train.py --- train.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/train.py b/train.py index 448f7774..5f5410e1 100644 --- a/train.py +++ b/train.py @@ -60,11 +60,6 @@ def train( cutoff = load_darknet_weights(model, weights + 'darknet53.conv.74') elif cfg.endswith('yolov3-tiny.cfg'): cutoff = load_darknet_weights(model, weights + 'yolov3-tiny.conv.15') - - #initialize for distributed training - if torch.cuda.device_count() > 1: - dist.init_process_group(backend=opt.backend, init_method=opt.dist_url,world_size=opt.world_size, rank=opt.rank) - model = torch.nn.parallel.DistributedDataParallel(model) # Transfer learning (train only YOLO layers) # for i, (name, p) in enumerate(model.named_parameters()):