Brutus bis

This commit is contained in:
Harle, Antoine (Contracteur) 2020-01-20 11:05:40 -05:00
parent b67ec3c469
commit 2fe5070b09
5 changed files with 49 additions and 35 deletions

View file

@ -6,6 +6,10 @@ BATCH_SIZE = 300
TEST_SIZE = 300
#TEST_SIZE = 10000 #legerement +Rapide / + Consomation memoire !
download_data=False
num_workers=4 #4
pin_memory=False #True :+ GPU memory / + Lent
#ATTENTION : Dataug (Kornia) Expect image in the range of [0, 1]
#transform_train = torchvision.transforms.Compose([
# torchvision.transforms.RandomHorizontalFlip(),
@ -34,10 +38,6 @@ from PIL import Image
import augmentation_transforms
import numpy as np
download_data=False
num_workers=4 #16
pin_memory=False
class AugmentedDataset(VisionDataset):
def __init__(self, root, train=True, transform=None, target_transform=None, download=False, subset=None):