Skip to content

Commit cf7e3cf

Browse files
committed
fixbug in preresnet
1 parent e17a6f5 commit cf7e3cf

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,19 @@ Top1 error rate on CIFAR10/100 are reported. You may get different results when
1717
| ------------------- | ------------------ | ------------------ | ------------------ |
1818
| alexnet | 2.47 | 22.78 | 56.13 |
1919
| vgg19_bn | 20.04 | 6.66 | 28.05 |
20-
| Resnet-110 | 1.70 | 6.11 | 28.86 |
20+
| ResNet-110 | 1.70 | 6.11 | 28.86 |
21+
| PreResNet-110 | 1.70 | 4.94 | 23.65 |
2122
| WRN-28-10 (drop 0.3) | 36.48 | 3.79 | 18.14 |
2223
| ResNeXt-29, 8x64 | 34.43 | 3.69 | 17.38 |
23-
| ResNeXt-29, 16x64 | 68.16 | 3.53 | 10137 |
24+
| ResNeXt-29, 16x64 | 68.16 | 3.53 | 17.30 |
2425

2526
### ImageNet
2627
Single-crop (224x224) validation error rate
2728

2829

2930
| Model | Params (M) | Top-1 Error (%) | Top-5 Error (%) |
3031
| ------------------- | ------------------ | ------------------ | ------------------ |
31-
| Resnet-18 | 11.69 | | |
32+
| ResNet-18 | 11.69 | 35.32 | 13.59 |
3233

3334

3435
## Supported Architectures
@@ -38,14 +39,14 @@ Since the size of images in CIFAR dataset is `32x32`, popular network structures
3839
- [x] [AlexNet](https://arxiv.org/abs/1404.5997)
3940
- [x] [VGG](https://arxiv.org/abs/1409.1556) (Imported from [pytorch-cifar](https://github.com/kuangliu/pytorch-cifar))
4041
- [x] [ResNet](https://arxiv.org/abs/1512.03385)
41-
- [ ] [Pre-act-ResNet](https://arxiv.org/abs/1603.05027)
42+
- [x] [Pre-act-ResNet](https://arxiv.org/abs/1603.05027)
4243
- [x] [ResNeXt](https://arxiv.org/abs/1611.05431) (Imported from [ResNeXt.pytorch](https://github.com/prlz77/ResNeXt.pytorch))
4344
- [x] [Wide Residual Networks](http://arxiv.org/abs/1605.07146) (Imported from [WideResNet-pytorch](https://github.com/xternalz/WideResNet-pytorch))
4445
- [ ] [DenseNet](https://arxiv.org/abs/1608.06993)
4546

4647
### ImageNet
47-
- [x] All models in `torchvision.models` (alexnet, vgg, resnet, densenet, inception_v3, squeezenet)
48-
- [ ] [ResNeXt](https://arxiv.org/abs/1611.05431)
48+
- [ ] All models in `torchvision.models` (alexnet, vgg, resnet, densenet, inception_v3, squeezenet)
49+
- [ ] [ResNeXt](https://arxiv.org/abs/1611.05431)
4950
- [ ] [Wide Residual Networks](http://arxiv.org/abs/1605.07146)
5051

5152
## Training recipes

models/cifar/preresnet.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def forward(self, x):
4747
residual = self.downsample(x)
4848

4949
out += residual
50-
out = self.relu(out)
5150

5251
return out
5352

@@ -87,7 +86,6 @@ def forward(self, x):
8786
residual = self.downsample(x)
8887

8988
out += residual
90-
out = self.relu(out)
9189

9290
return out
9391

0 commit comments

Comments
 (0)