Skip to content

Commit

Permalink
Revert drop_last
Browse files Browse the repository at this point in the history
  • Loading branch information
yizhi.chen committed Jul 9, 2020
1 parent 1dabe33 commit 4f08c69
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion utils/datasets.py
Expand Up @@ -60,7 +60,6 @@ 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 4f08c69

Please sign in to comment.