Skip to content

Commit 9b0d0cb

Browse files
committed
add img configs
1 parent be9a7df commit 9b0d0cb

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

config/data/image/fashion_mnist.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
_target_: nimrod.image.datasets.ImageDataModule
2+
name: "fashion_mnist"
3+
data_dir: "../data/image"
4+
train_val_split: [0.8, 0.2]
5+
batch_size: 128
6+
num_workers: 0
7+
pin_memory: False
8+
persistent_workers: False
9+
transforms:
10+
_target_: torchvision.transforms.Compose
11+
transforms:
12+
- _target_: torchvision.transforms.ToTensor
13+
- _target_: torchvision.transforms.Resize
14+
size: 32
15+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
_target_: nimrod.image.datasets.ImageDataModule
2+
name: "huggan/smithsonian_butterflies_subset"
3+
data_dir: "../data/image"
4+
train_val_split: [0.8, 0.2]
5+
batch_size: 128
6+
num_workers: 0
7+
pin_memory: False
8+
persistent_workers: False
9+
transforms:
10+
_target_: torchvision.transforms.Compose
11+
transforms:
12+
- _target_: torchvision.transforms.ToTensor
13+
- _target_: torchvision.transforms.Resize
14+
size: [32,32]
15+
- _target_: torchvision.transforms.Normalize
16+
mean: [0.5]
17+
std: [0.5]
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
defaults:
2+
- _self_
3+
4+
model:
5+
- _target_: nimrod.models.conv.ConvLayer
6+
in_channels: 1
7+
out_channels: 16
8+
kernel_size: 3
9+
bias: true
10+
normalization:
11+
_target_: hydra.utils.get_class
12+
path: torch.nn.BatchNorm2d
13+
activation:
14+
_target_: hydra.utils.get_class
15+
path: torch.nn.ReLU
16+
17+
- _target_: nimrod.models.conv.ConvLayer
18+
in_channels: 16
19+
out_channels: 32
20+
kernel_size: 3
21+
bias: true
22+
normalization:
23+
_target_: hydra.utils.get_class
24+
path: torch.nn.BatchNorm2d
25+
activation:
26+
_target_: hydra.utils.get_class
27+
path: torch.nn.ReLU

0 commit comments

Comments
 (0)