Skip to content

Commit 7f5de74

Browse files
committed
Update workers in dataloader for finetuning
1 parent bed1bbb commit 7f5de74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

finetuning/livecell_finetuning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def get_dataloaders(patch_shape, data_path, cell_type=None):
2222
"""
2323
label_transform = torch_em.transform.label.label_consecutive # to ensure consecutive IDs
2424
train_loader = get_livecell_loader(path=data_path, patch_shape=patch_shape, split="train", batch_size=2,
25-
num_workers=8, cell_types=cell_type, download=True,
25+
num_workers=16, cell_types=cell_type, download=True,
2626
label_transform=label_transform, shuffle=True)
2727
val_loader = get_livecell_loader(path=data_path, patch_shape=patch_shape, split="val", batch_size=1,
28-
num_workers=8, cell_types=cell_type, download=True,
28+
num_workers=16, cell_types=cell_type, download=True,
2929
label_transform=label_transform, shuffle=True)
3030
return train_loader, val_loader
3131

0 commit comments

Comments
 (0)