We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
glenn-jocher
Learn more about funding links in repositories.
Report abuse
--quad
1 parent abdfbd6 commit 94a6245Copy full SHA for 94a6245
utils/dataloaders.py
@@ -210,6 +210,7 @@ def create_dataloader(
210
shuffle=shuffle and sampler is None,
211
num_workers=nw,
212
sampler=sampler,
213
+ drop_last=quad,
214
pin_memory=PIN_MEMORY,
215
collate_fn=LoadImagesAndLabels.collate_fn4 if quad else LoadImagesAndLabels.collate_fn,
216
worker_init_fn=seed_worker,
utils/segment/dataloaders.py
@@ -75,6 +75,7 @@ def create_dataloader(
75
76
77
78
79
pin_memory=True,
80
collate_fn=LoadImagesAndLabelsAndMasks.collate_fn4 if quad else LoadImagesAndLabelsAndMasks.collate_fn,
81
0 commit comments