updates
This commit is contained in:
parent
44daace4ca
commit
2774c1b398
3
test.py
3
test.py
|
@ -55,7 +55,8 @@ def test(cfg,
|
||||||
|
|
||||||
# Dataloader
|
# Dataloader
|
||||||
if dataloader is None:
|
if dataloader is None:
|
||||||
dataset = LoadImagesAndLabels(path, img_size, batch_size, rect=True)
|
dataset = LoadImagesAndLabels(path, img_size, batch_size, rect=True, single_cls=opt.single_cls,
|
||||||
|
cache_labels=True)
|
||||||
batch_size = min(batch_size, len(dataset))
|
batch_size = min(batch_size, len(dataset))
|
||||||
dataloader = DataLoader(dataset,
|
dataloader = DataLoader(dataset,
|
||||||
batch_size=batch_size,
|
batch_size=batch_size,
|
||||||
|
|
Loading…
Reference in New Issue