Skip to content

Commit

Permalink
preresnet83 resize to 32
Browse files Browse the repository at this point in the history
  • Loading branch information
wjmaddox committed Oct 8, 2019
1 parent 0102ba4 commit d17b086
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions swag/models/preresnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ class PreResNet83:
kwargs = {"depth": 83}
transform_train = transforms.Compose(
[
transforms.Resize(32),
transforms.RandomCrop(32, padding=4),
transforms.RandomHorizontalFlip(),
transforms.ToTensor(),
Expand All @@ -213,6 +214,7 @@ class PreResNet83:
)
transform_test = transforms.Compose(
[
transforms.Resize(32),
transforms.ToTensor(),
transforms.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010)),
]
Expand Down

0 comments on commit d17b086

Please sign in to comment.