Skip to content

Commit

Permalink
cifar100
Browse files Browse the repository at this point in the history
  • Loading branch information
petr-parker committed Jan 26, 2024
1 parent 3367d34 commit 5bf3fd1
Show file tree
Hide file tree
Showing 50 changed files with 21,811 additions and 3,042 deletions.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=1/ww=nowt=no/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "avgpool", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "maxpool", "reduce_n3_p1": "sepconv3x3", "reduce_n3_p2": "dilconv5x5", "reduce_n4_p0": "maxpool", "reduce_n4_p1": "dilconv3x3", "reduce_n4_p2": "dilconv3x3", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "sepconv5x5", "reduce_n5_p1": "dilconv5x5", "reduce_n5_p2": "dilconv5x5", "reduce_n5_p3": "sepconv5x5", "reduce_n5_p4": "sepconv3x3", "reduce_n2_switch": [1], "reduce_n3_switch": [0], "reduce_n4_switch": [3], "reduce_n5_switch": [3]}
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=1/ww=nowt=no/arc1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "maxpool", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "maxpool", "reduce_n3_p1": "sepconv3x3", "reduce_n3_p2": "dilconv5x5", "reduce_n4_p0": "dilconv5x5", "reduce_n4_p1": "dilconv5x5", "reduce_n4_p2": "dilconv3x3", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "skipconnect", "reduce_n5_p1": "sepconv3x3", "reduce_n5_p2": "sepconv3x3", "reduce_n5_p3": "maxpool", "reduce_n5_p4": "sepconv5x5", "reduce_n2_switch": [1], "reduce_n3_switch": [2], "reduce_n4_switch": [3], "reduce_n5_switch": [3]}
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=1/ww=nowt=yes/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "sepconv5x5", "reduce_n2_p1": "sepconv3x3", "reduce_n3_p0": "dilconv3x3", "reduce_n3_p1": "sepconv5x5", "reduce_n3_p2": "sepconv5x5", "reduce_n4_p0": "sepconv5x5", "reduce_n4_p1": "sepconv3x3", "reduce_n4_p2": "dilconv5x5", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "skipconnect", "reduce_n5_p1": "maxpool", "reduce_n5_p2": "sepconv5x5", "reduce_n5_p3": "sepconv5x5", "reduce_n5_p4": "maxpool", "reduce_n2_switch": [0], "reduce_n3_switch": [1], "reduce_n4_switch": [0], "reduce_n5_switch": [3]}
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=1/ww=yeswt=no/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "sepconv3x3", "reduce_n2_p1": "avgpool", "reduce_n3_p0": "sepconv5x5", "reduce_n3_p1": "sepconv3x3", "reduce_n3_p2": "dilconv5x5", "reduce_n4_p0": "sepconv3x3", "reduce_n4_p1": "sepconv5x5", "reduce_n4_p2": "sepconv5x5", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "avgpool", "reduce_n5_p1": "avgpool", "reduce_n5_p2": "sepconv3x3", "reduce_n5_p3": "maxpool", "reduce_n5_p4": "maxpool", "reduce_n2_switch": [0], "reduce_n3_switch": [0], "reduce_n4_switch": [3], "reduce_n5_switch": [4]}
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=1/ww=yeswt=no/arc1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "sepconv3x3", "reduce_n2_p1": "sepconv3x3", "reduce_n3_p0": "dilconv5x5", "reduce_n3_p1": "sepconv3x3", "reduce_n3_p2": "dilconv5x5", "reduce_n4_p0": "sepconv5x5", "reduce_n4_p1": "sepconv5x5", "reduce_n4_p2": "dilconv3x3", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "maxpool", "reduce_n5_p1": "skipconnect", "reduce_n5_p2": "dilconv5x5", "reduce_n5_p3": "maxpool", "reduce_n5_p4": "maxpool", "reduce_n2_switch": [0], "reduce_n3_switch": [2], "reduce_n4_switch": [3], "reduce_n5_switch": [4]}
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=1/ww=yeswt=yes/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "sepconv5x5", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "dilconv5x5", "reduce_n3_p1": "sepconv5x5", "reduce_n3_p2": "maxpool", "reduce_n4_p0": "sepconv5x5", "reduce_n4_p1": "sepconv5x5", "reduce_n4_p2": "sepconv5x5", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "sepconv5x5", "reduce_n5_p1": "sepconv3x3", "reduce_n5_p2": "sepconv5x5", "reduce_n5_p3": "sepconv5x5", "reduce_n5_p4": "sepconv3x3", "reduce_n2_switch": [1], "reduce_n3_switch": [2], "reduce_n4_switch": [3], "reduce_n5_switch": [3]}
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=2/ww=nowt=no/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "skipconnect", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "sepconv5x5", "reduce_n3_p1": "dilconv5x5", "reduce_n3_p2": "dilconv5x5", "reduce_n4_p0": "sepconv3x3", "reduce_n4_p1": "dilconv3x3", "reduce_n4_p2": "sepconv5x5", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "sepconv5x5", "reduce_n5_p1": "sepconv5x5", "reduce_n5_p2": "sepconv5x5", "reduce_n5_p3": "dilconv5x5", "reduce_n5_p4": "sepconv3x3", "reduce_n2_switch": [1], "reduce_n3_switch": [2], "reduce_n4_switch": [0], "reduce_n5_switch": [3]}
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=2/ww=nowt=no/arc1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "sepconv5x5", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "dilconv3x3", "reduce_n3_p1": "sepconv5x5", "reduce_n3_p2": "sepconv3x3", "reduce_n4_p0": "dilconv3x3", "reduce_n4_p1": "dilconv5x5", "reduce_n4_p2": "dilconv5x5", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "sepconv3x3", "reduce_n5_p1": "sepconv5x5", "reduce_n5_p2": "sepconv3x3", "reduce_n5_p3": "dilconv3x3", "reduce_n5_p4": "dilconv5x5", "reduce_n2_switch": [1], "reduce_n3_switch": [1], "reduce_n4_switch": [3], "reduce_n5_switch": [0]}
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=2/ww=nowt=yes/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "maxpool", "reduce_n2_p1": "avgpool", "reduce_n3_p0": "avgpool", "reduce_n3_p1": "sepconv5x5", "reduce_n3_p2": "sepconv3x3", "reduce_n4_p0": "dilconv5x5", "reduce_n4_p1": "avgpool", "reduce_n4_p2": "sepconv5x5", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "sepconv5x5", "reduce_n5_p1": "avgpool", "reduce_n5_p2": "avgpool", "reduce_n5_p3": "avgpool", "reduce_n5_p4": "maxpool", "reduce_n2_switch": [0], "reduce_n3_switch": [1], "reduce_n4_switch": [2], "reduce_n5_switch": [4]}
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=2/ww=yeswt=no/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "dilconv3x3", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "sepconv5x5", "reduce_n3_p1": "sepconv3x3", "reduce_n3_p2": "dilconv5x5", "reduce_n4_p0": "sepconv5x5", "reduce_n4_p1": "sepconv5x5", "reduce_n4_p2": "sepconv5x5", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "dilconv3x3", "reduce_n5_p1": "maxpool", "reduce_n5_p2": "avgpool", "reduce_n5_p3": "sepconv5x5", "reduce_n5_p4": "maxpool", "reduce_n2_switch": [1], "reduce_n3_switch": [0], "reduce_n4_switch": [2], "reduce_n5_switch": [4]}
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=2/ww=yeswt=no/arc1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "sepconv5x5", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "sepconv3x3", "reduce_n3_p1": "skipconnect", "reduce_n3_p2": "maxpool", "reduce_n4_p0": "sepconv5x5", "reduce_n4_p1": "skipconnect", "reduce_n4_p2": "dilconv3x3", "reduce_n4_p3": "dilconv5x5", "reduce_n5_p0": "dilconv5x5", "reduce_n5_p1": "dilconv5x5", "reduce_n5_p2": "maxpool", "reduce_n5_p3": "sepconv5x5", "reduce_n5_p4": "maxpool", "reduce_n2_switch": [1], "reduce_n3_switch": [2], "reduce_n4_switch": [3], "reduce_n5_switch": [4]}
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=2/ww=yeswt=yes/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "sepconv5x5", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "sepconv3x3", "reduce_n3_p1": "sepconv3x3", "reduce_n3_p2": "dilconv5x5", "reduce_n4_p0": "dilconv5x5", "reduce_n4_p1": "avgpool", "reduce_n4_p2": "sepconv5x5", "reduce_n4_p3": "maxpool", "reduce_n5_p0": "sepconv3x3", "reduce_n5_p1": "sepconv5x5", "reduce_n5_p2": "dilconv5x5", "reduce_n5_p3": "sepconv5x5", "reduce_n5_p4": "maxpool", "reduce_n2_switch": [0], "reduce_n3_switch": [1], "reduce_n4_switch": [2], "reduce_n5_switch": [4]}
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=3/ww=nowt=no/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "sepconv3x3", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "dilconv3x3", "reduce_n3_p1": "sepconv5x5", "reduce_n3_p2": "sepconv5x5", "reduce_n4_p0": "maxpool", "reduce_n4_p1": "dilconv3x3", "reduce_n4_p2": "sepconv5x5", "reduce_n4_p3": "dilconv5x5", "reduce_n5_p0": "avgpool", "reduce_n5_p1": "dilconv3x3", "reduce_n5_p2": "skipconnect", "reduce_n5_p3": "maxpool", "reduce_n5_p4": "maxpool", "reduce_n2_switch": [1], "reduce_n3_switch": [1], "reduce_n4_switch": [2], "reduce_n5_switch": [4]}
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=3/ww=nowt=no/arc1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "avgpool", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "sepconv5x5", "reduce_n3_p1": "sepconv3x3", "reduce_n3_p2": "sepconv5x5", "reduce_n4_p0": "sepconv3x3", "reduce_n4_p1": "sepconv5x5", "reduce_n4_p2": "dilconv5x5", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "skipconnect", "reduce_n5_p1": "dilconv3x3", "reduce_n5_p2": "sepconv5x5", "reduce_n5_p3": "dilconv5x5", "reduce_n5_p4": "maxpool", "reduce_n2_switch": [1], "reduce_n3_switch": [2], "reduce_n4_switch": [0], "reduce_n5_switch": [4]}
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=3/ww=nowt=yes/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "dilconv5x5", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "sepconv3x3", "reduce_n3_p1": "sepconv5x5", "reduce_n3_p2": "dilconv5x5", "reduce_n4_p0": "sepconv3x3", "reduce_n4_p1": "sepconv5x5", "reduce_n4_p2": "sepconv5x5", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "maxpool", "reduce_n5_p1": "sepconv3x3", "reduce_n5_p2": "sepconv3x3", "reduce_n5_p3": "sepconv3x3", "reduce_n5_p4": "sepconv5x5", "reduce_n2_switch": [1], "reduce_n3_switch": [1], "reduce_n4_switch": [0], "reduce_n5_switch": [2]}
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=3/ww=yeswt=no/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "sepconv3x3", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "skipconnect", "reduce_n3_p1": "sepconv5x5", "reduce_n3_p2": "sepconv3x3", "reduce_n4_p0": "skipconnect", "reduce_n4_p1": "dilconv5x5", "reduce_n4_p2": "sepconv5x5", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "dilconv3x3", "reduce_n5_p1": "sepconv5x5", "reduce_n5_p2": "sepconv5x5", "reduce_n5_p3": "dilconv3x3", "reduce_n5_p4": "maxpool", "reduce_n2_switch": [1], "reduce_n3_switch": [1], "reduce_n4_switch": [3], "reduce_n5_switch": [4]}
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=3/ww=yeswt=no/arc1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "maxpool", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "maxpool", "reduce_n3_p1": "sepconv5x5", "reduce_n3_p2": "sepconv5x5", "reduce_n4_p0": "sepconv3x3", "reduce_n4_p1": "sepconv5x5", "reduce_n4_p2": "maxpool", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "skipconnect", "reduce_n5_p1": "sepconv5x5", "reduce_n5_p2": "dilconv5x5", "reduce_n5_p3": "maxpool", "reduce_n5_p4": "sepconv3x3", "reduce_n2_switch": [1], "reduce_n3_switch": [1], "reduce_n4_switch": [0], "reduce_n5_switch": [3]}
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/lambd=3/ww=yeswt=yes/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "sepconv3x3", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "dilconv3x3", "reduce_n3_p1": "sepconv5x5", "reduce_n3_p2": "sepconv5x5", "reduce_n4_p0": "maxpool", "reduce_n4_p1": "dilconv3x3", "reduce_n4_p2": "dilconv5x5", "reduce_n4_p3": "maxpool", "reduce_n5_p0": "sepconv3x3", "reduce_n5_p1": "dilconv3x3", "reduce_n5_p2": "dilconv5x5", "reduce_n5_p3": "avgpool", "reduce_n5_p4": "maxpool", "reduce_n2_switch": [1], "reduce_n3_switch": [1], "reduce_n4_switch": [3], "reduce_n5_switch": [4]}
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/optimal/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "avgpool", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "sepconv5x5", "reduce_n3_p1": "sepconv5x5", "reduce_n3_p2": "dilconv3x3", "reduce_n4_p0": "sepconv3x3", "reduce_n4_p1": "skipconnect", "reduce_n4_p2": "sepconv5x5", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "maxpool", "reduce_n5_p1": "maxpool", "reduce_n5_p2": "maxpool", "reduce_n5_p3": "sepconv5x5", "reduce_n5_p4": "maxpool", "reduce_n2_switch": [1], "reduce_n3_switch": [1], "reduce_n4_switch": [0], "reduce_n5_switch": [4]}
Binary file added code/checkpoints/cifar100/optimal/mod.json
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/random/1/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "sepconv3x3", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "maxpool", "reduce_n3_p1": "sepconv5x5", "reduce_n3_p2": "dilconv5x5", "reduce_n4_p0": "dilconv3x3", "reduce_n4_p1": "sepconv5x5", "reduce_n4_p2": "sepconv5x5", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "dilconv5x5", "reduce_n5_p1": "skipconnect", "reduce_n5_p2": "dilconv3x3", "reduce_n5_p3": "sepconv3x3", "reduce_n5_p4": "maxpool", "reduce_n2_switch": [0], "reduce_n3_switch": [2], "reduce_n4_switch": [3], "reduce_n5_switch": [4]}
Binary file added code/checkpoints/cifar100/random/1/mod.json
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/random/2/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "sepconv5x5", "reduce_n2_p1": "sepconv5x5", "reduce_n3_p0": "sepconv5x5", "reduce_n3_p1": "sepconv5x5", "reduce_n3_p2": "sepconv5x5", "reduce_n4_p0": "sepconv3x3", "reduce_n4_p1": "maxpool", "reduce_n4_p2": "sepconv3x3", "reduce_n4_p3": "sepconv3x3", "reduce_n5_p0": "sepconv5x5", "reduce_n5_p1": "maxpool", "reduce_n5_p2": "maxpool", "reduce_n5_p3": "sepconv3x3", "reduce_n5_p4": "maxpool", "reduce_n2_switch": [1], "reduce_n3_switch": [0], "reduce_n4_switch": [2], "reduce_n5_switch": [4]}
Binary file added code/checkpoints/cifar100/random/2/mod.json
Binary file not shown.
1 change: 1 addition & 0 deletions code/checkpoints/cifar100/random/3/arc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"reduce_n2_p0": "sepconv5x5", "reduce_n2_p1": "maxpool", "reduce_n3_p0": "sepconv5x5", "reduce_n3_p1": "dilconv3x3", "reduce_n3_p2": "sepconv5x5", "reduce_n4_p0": "avgpool", "reduce_n4_p1": "dilconv3x3", "reduce_n4_p2": "dilconv3x3", "reduce_n4_p3": "sepconv5x5", "reduce_n5_p0": "dilconv5x5", "reduce_n5_p1": "sepconv5x5", "reduce_n5_p2": "sepconv3x3", "reduce_n5_p3": "sepconv5x5", "reduce_n5_p4": "skipconnect", "reduce_n2_switch": [1], "reduce_n3_switch": [2], "reduce_n4_switch": [3], "reduce_n5_switch": [3]}
Binary file added code/checkpoints/cifar100/random/3/mod.json
Binary file not shown.
8 changes: 7 additions & 1 deletion code/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import numpy as np
import torch
from torchvision import transforms
from torchvision.datasets import CIFAR10, FashionMNIST
from torchvision.datasets import CIFAR100, CIFAR10, FashionMNIST


class Cutout(object):
Expand Down Expand Up @@ -34,6 +34,9 @@ def get_dataset(cls, cutout_length=0):
if cls == "cifar10":
MEAN = [0.49139968, 0.48215827, 0.44653124]
STD = [0.24703233, 0.24348505, 0.26158768]
elif cls == "cifar100":
MEAN = [0.4914, 0.4822, 0.4465]
STD = [0.5071, 0.4867, 0.4408]
elif cls == "fashionmnist":
MEAN = [0.49139968]
STD = [0.24703233]
Expand All @@ -59,6 +62,9 @@ def get_dataset(cls, cutout_length=0):
elif cls == "fashionmnist":
dataset_train = FashionMNIST(root="./data", train=True, download=True, transform=train_transform)
dataset_valid = FashionMNIST(root="./data", train=False, download=True, transform=valid_transform)
elif cls == "cifar100":
dataset_train = CIFAR100(root="./data", train=True, download=True, transform=train_transform)
dataset_valid = CIFAR100(root="./data", train=False, download=True, transform=valid_transform)
else:
raise NotImplementedError
return dataset_train, dataset_valid
Loading

0 comments on commit 5bf3fd1

Please sign in to comment.