Update yaml configs

This commit is contained in:
D-X-Y
2021-06-10 21:53:22 +08:00
parent 1a7440d2af
commit 9bf0fa5f04
21 changed files with 410 additions and 178 deletions

View File

@@ -1,7 +0,0 @@
class_or_func: CIFAR10
module_path: torchvision.datasets
args: []
kwargs:
train: False
download: True
transform: null

View File

@@ -1,7 +0,0 @@
class_or_func: CIFAR10
module_path: torchvision.datasets
args: []
kwargs:
train: True
download: True
transform: null

View File

@@ -0,0 +1,22 @@
class_or_func: CIFAR10
module_path: torchvision.datasets
args: []
kwargs:
train: False
download: True
transform:
class_or_func: Compose
module_path: torchvision.transforms
args:
-
- class_or_func: ToTensor
module_path: torchvision.transforms
args: []
kwargs: {}
- class_or_func: Normalize
module_path: torchvision.transforms
args: []
kwargs:
mean: (0.491, 0.482, 0.447)
std: (0.247, 0.244, 0.262)
kwargs: {}

View File

@@ -0,0 +1,30 @@
class_or_func: CIFAR10
module_path: torchvision.datasets
args: []
kwargs:
train: True
download: True
transform:
class_or_func: Compose
module_path: torchvision.transforms
args:
-
- class_or_func: RandomHorizontalFlip
module_path: torchvision.transforms
args: []
kwargs: {}
- class_or_func: RandomCrop
module_path: torchvision.transforms
args: [32]
kwargs: {padding: 4}
- class_or_func: ToTensor
module_path: torchvision.transforms
args: []
kwargs: {}
- class_or_func: Normalize
module_path: torchvision.transforms
args: []
kwargs:
mean: (0.491, 0.482, 0.447)
std: (0.247, 0.244, 0.262)
kwargs: {}

View File

@@ -0,0 +1,4 @@
class_or_func: CrossEntropyLoss
module_path: torch.nn
args: []
kwargs: {}

View File

@@ -0,0 +1,4 @@
class_or_func: get_transformer
module_path: xautodl.xmodels.transformers
args: [vit-cifar10-p4-d4-h4-c32]
kwargs: {}

View File

@@ -0,0 +1,7 @@
class_or_func: Adam
module_path: torch.optim
args: []
kwargs:
betas: [0.9, 0.999]
weight_decay: 0.1
amsgrad: False