Skip to content

Commit

Permalink
Merge branch 'feature/DDP_fixed' of https://github.com/MagicFrogSJTU/…
Browse files Browse the repository at this point in the history
…yolov5 into feature/DDP_fixed
  • Loading branch information
yizhi.chen committed Jul 9, 2020
2 parents a1ce9b1 + 4b8450b commit 1dabe33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def create_dataloader(path, imgsz, batch_size, stride, opt, hyp=None, augment=Fa
batch_size=batch_size,
num_workers=nw,
sampler=train_sampler,
drop_last=(train_sampler is not None),
pin_memory=True,
collate_fn=LoadImagesAndLabels.collate_fn)
return dataloader, dataset
Expand Down

0 comments on commit 1dabe33

Please sign in to comment.