fix(seg): increase the number of workers for dataloaders

This commit is contained in:
piero2c 2022-05-24 10:28:47 -07:00 коммит произвёл Gustavo Rosa
Родитель 6ee73ac77f
Коммит 0010ad7cd7
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -172,8 +172,8 @@ class SegmentationTrainer():
self.val_dataset = FaceSynthetics(self.data_dir, subset='validation', val_size=val_size,
img_size=(img_size, img_size), augmentation=augmentation)
self.tr_dataloader = DataLoader(self.tr_dataset, batch_size=batch_size, num_workers=4, shuffle=True, pin_memory=True)
self.val_dataloader = DataLoader(self.val_dataset, batch_size=batch_size, num_workers=4, shuffle=False, pin_memory=True)
self.tr_dataloader = DataLoader(self.tr_dataset, batch_size=batch_size, num_workers=8, shuffle=True)
self.val_dataloader = DataLoader(self.val_dataset, batch_size=batch_size, num_workers=8, shuffle=False)
self.model = LightningModelWrapper(model, criterion_name=criterion_name, lr=lr,
img_size=img_size, lr_exp_decay_gamma=lr_exp_decay_gamma)