Skip to content

Commit e047e4e

Browse files
committed
Updated pretrained weight urls
1 parent f8d1eb4 commit e047e4e

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

efficientnet_pytorch/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.6.1"
1+
__version__ = "0.6.2"
22
from .model import EfficientNet
33
from .utils import (
44
GlobalParams,

efficientnet_pytorch/utils.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -296,27 +296,27 @@ def get_model_params(model_name, override_params):
296296

297297

298298
url_map = {
299-
'efficientnet-b0': 'https://publicmodels.blob.core.windows.net/container/aa/efficientnet-b0-355c32eb.pth',
300-
'efficientnet-b1': 'https://publicmodels.blob.core.windows.net/container/aa/efficientnet-b1-f1951068.pth',
301-
'efficientnet-b2': 'https://publicmodels.blob.core.windows.net/container/aa/efficientnet-b2-8bb594d6.pth',
302-
'efficientnet-b3': 'https://publicmodels.blob.core.windows.net/container/aa/efficientnet-b3-5fb5a3c3.pth',
303-
'efficientnet-b4': 'https://publicmodels.blob.core.windows.net/container/aa/efficientnet-b4-6ed6700e.pth',
304-
'efficientnet-b5': 'https://publicmodels.blob.core.windows.net/container/aa/efficientnet-b5-b6417697.pth',
305-
'efficientnet-b6': 'https://publicmodels.blob.core.windows.net/container/aa/efficientnet-b6-c76e70fd.pth',
306-
'efficientnet-b7': 'https://publicmodels.blob.core.windows.net/container/aa/efficientnet-b7-dcc49843.pth',
299+
'efficientnet-b0': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnet/efficientnet-b0-355c32eb.pth',
300+
'efficientnet-b1': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnet/efficientnet-b1-f1951068.pth',
301+
'efficientnet-b2': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnet/efficientnet-b2-8bb594d6.pth',
302+
'efficientnet-b3': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnet/efficientnet-b3-5fb5a3c3.pth',
303+
'efficientnet-b4': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnet/efficientnet-b4-6ed6700e.pth',
304+
'efficientnet-b5': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnet/efficientnet-b5-b6417697.pth',
305+
'efficientnet-b6': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnet/efficientnet-b6-c76e70fd.pth',
306+
'efficientnet-b7': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnet/efficientnet-b7-dcc49843.pth',
307307
}
308308

309309

310310
url_map_advprop = {
311-
'efficientnet-b0': 'https://publicmodels.blob.core.windows.net/container/advprop/efficientnet-b0-b64d5a18.pth',
312-
'efficientnet-b1': 'https://publicmodels.blob.core.windows.net/container/advprop/efficientnet-b1-0f3ce85a.pth',
313-
'efficientnet-b2': 'https://publicmodels.blob.core.windows.net/container/advprop/efficientnet-b2-6e9d97e5.pth',
314-
'efficientnet-b3': 'https://publicmodels.blob.core.windows.net/container/advprop/efficientnet-b3-cdd7c0f4.pth',
315-
'efficientnet-b4': 'https://publicmodels.blob.core.windows.net/container/advprop/efficientnet-b4-44fb3a87.pth',
316-
'efficientnet-b5': 'https://publicmodels.blob.core.windows.net/container/advprop/efficientnet-b5-86493f6b.pth',
317-
'efficientnet-b6': 'https://publicmodels.blob.core.windows.net/container/advprop/efficientnet-b6-ac80338e.pth',
318-
'efficientnet-b7': 'https://publicmodels.blob.core.windows.net/container/advprop/efficientnet-b7-4652b6dd.pth',
319-
'efficientnet-b8': 'https://publicmodels.blob.core.windows.net/container/advprop/efficientnet-b8-22a8fe65.pth',
311+
'efficientnet-b0': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnetadv/efficientnet-b0-b64d5a18.pth',
312+
'efficientnet-b1': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnetadv/efficientnet-b1-0f3ce85a.pth',
313+
'efficientnet-b2': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnetadv/efficientnet-b2-6e9d97e5.pth',
314+
'efficientnet-b3': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnetadv/efficientnet-b3-cdd7c0f4.pth',
315+
'efficientnet-b4': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnetadv/efficientnet-b4-44fb3a87.pth',
316+
'efficientnet-b5': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnetadv/efficientnet-b5-86493f6b.pth',
317+
'efficientnet-b6': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnetadv/efficientnet-b6-ac80338e.pth',
318+
'efficientnet-b7': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnetadv/efficientnet-b7-4652b6dd.pth',
319+
'efficientnet-b8': 'https://storage.googleapis.com/cloud-tpu-checkpoints/efficientnet/pth/effnetadv/efficientnet-b8-22a8fe65.pth',
320320
}
321321

322322

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
1919
AUTHOR = 'Luke'
2020
REQUIRES_PYTHON = '>=3.5.0'
21-
VERSION = '0.6.1'
21+
VERSION = '0.6.2'
2222

2323
# What packages are required for this module to be executed?
2424
REQUIRED = [

0 commit comments

Comments
 (0)