Skip to content

Commit ff421e5

Browse files
committed
New PyTorch trained EfficientNet-B2 weights with my RandAugment impl
1 parent 00b9340 commit ff421e5

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## What's New
44

5+
6+
### Dec 4, 2019
7+
* Added weights from the first training from scratch of an EfficientNet (B2) with my new RandAugment implementation. Much better than my previous B2 and very close to the official AdvProp ones (80.4 top-1, 95.08 top-5).
8+
* For those interested in hparams, I trained with the following: `./distributed_train.sh 2 /imagenet/ --model efficientnet_b2 -b 128 --sched step --epochs 450 --decay-epochs 2.4 --decay-rate .97 --opt rmsproptf --opt-eps .001 -j 8 --warmup-lr 1e-6 --weight-decay 1e-5 --drop 0.3 --drop-connect 0.2 --model-ema --aa rand-m9-noise0.5 --remode pixel --reprob 0.2 --amp --lr .016`
9+
510
### Nov 29, 2019
611
* Brought EfficientNet and MobileNetV3 up to date with my https://github.com/rwightman/gen-efficientnet-pytorch code. Torchscript and ONNX export compat excluded.
712
* AdvProp weights added
@@ -99,8 +104,8 @@ I've leveraged the training scripts in this repository to train a few of the mod
99104

100105
|Model | Prec@1 (Err) | Prec@5 (Err) | Param # | Image Scaling | Image Size |
101106
|---|---|---|---|---|---|
107+
| efficientnet_b2 | 80.402 (19.598) | 95.076 (4.924) | 9.11M | bicubic | 260 |
102108
| mixnet_xl | 80.120 (19.880) | 95.022 (4.978) | 11.90M | bicubic | 224 |
103-
| efficientnet_b2 | 79.760 (20.240) | 94.714 (5.286) | 9.11M | bicubic | 260 |
104109
| resnext50d_32x4d | 79.674 (20.326) | 94.868 (5.132) | 25.1M | bicubic | 224 |
105110
| mixnet_l | 78.976 (21.024 | 94.184 (5.816) | 7.33M | bicubic | 224 |
106111
| efficientnet_b1 | 78.692 (21.308) | 94.086 (5.914) | 7.79M | bicubic | 240 |

timm/models/efficientnet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ def _cfg(url='', **kwargs):
6868
url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-weights/efficientnet_b0-d6904d92.pth'),
6969
'efficientnet_b1': _cfg(
7070
url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-weights/efficientnet_b1-533bc792.pth',
71-
input_size=(3, 240, 240), pool_size=(8, 8), crop_pct=0.882),
71+
input_size=(3, 240, 240), pool_size=(8, 8)),
7272
'efficientnet_b2': _cfg(
73-
url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-weights/efficientnet_b2-cf78dc4d.pth',
74-
input_size=(3, 260, 260), pool_size=(9, 9), crop_pct=0.890),
73+
url='https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-weights/efficientnet_b2_ra-bcdf34b7.pth',
74+
input_size=(3, 260, 260), pool_size=(9, 9)),
7575
'efficientnet_b3': _cfg(
7676
url='', input_size=(3, 300, 300), pool_size=(10, 10), crop_pct=0.904),
7777
'efficientnet_b4': _cfg(

0 commit comments

Comments
 (0)