Skip to content

Commit

Permalink
DDP update
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Aug 10, 2020
1 parent 657687c commit 7f699d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def train(hyp, opt, device, tb_writer=None):
init_seeds(2 + rank)
with open(opt.data) as f:
data_dict = yaml.load(f, Loader=yaml.FullLoader) # model dict
check_dataset(data_dict) # check
with torch_distributed_zero_first(rank):
check_dataset(data_dict) # check
train_path = data_dict['train']
test_path = data_dict['val']
nc, names = (1, ['item']) if opt.single_cls else (int(data_dict['nc']), data_dict['names']) # number classes, names
Expand Down

0 comments on commit 7f699d0

Please sign in to comment.