rename transform methods
This commit is contained in:
1 parent
d0ff1e1558
commit
7eca2a9740
1 file changed
+2
-2
@@ -7,14 +7,14 @@ data_augmentation_transformations = [
|
|||||||
transforms.RandomRotation((-15, 15)),
|
transforms.RandomRotation((-15, 15)),
|
||||||
]
|
]
|
||||||
|
|
||||||
train_preprocess = transforms.Compose([
|
efficient_net_train_preprocess = transforms.Compose([
|
||||||
transforms.Resize((224, 224)),
|
transforms.Resize((224, 224)),
|
||||||
transforms.RandomApply(data_augmentation_transformations, 0.8),
|
transforms.RandomApply(data_augmentation_transformations, 0.8),
|
||||||
transforms.ToTensor(),
|
transforms.ToTensor(),
|
||||||
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
|
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
|
||||||
])
|
])
|
||||||
|
|
||||||
test_preprocess = transforms.Compose([
|
efficient_net_test_preprocess = transforms.Compose([
|
||||||
transforms.Resize((224, 224)),
|
transforms.Resize((224, 224)),
|
||||||
transforms.ToTensor(),
|
transforms.ToTensor(),
|
||||||
transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225]),
|
transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225]),
|
||||||
|
|||||||
Reference in new issue
Block a user