How to loads weights (as pretrained) from local files (supporting head adaptation, features_only, etc) #1323
Replies: 4 comments 1 reply
-
@RealAntonVoronov that's now how the cfg args are used ( So there is a chance this will work...
|
Beta Was this translation helpful? Give feedback.
-
No, this does not work as well. Falls with the same error message. As far as I understand the problem is that |
Beta Was this translation helpful? Give feedback.
-
@RealAntonVoronov I took a closer look at this since it's not supposed to be completely broken... it seems to work for me
Pretrained via defaults (url):
Random init:
|
Beta Was this translation helpful? Give feedback.
-
I'm going to move this to discussion as I feel some others might be interested... also related to #488 #967 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
The bug happens when trying to specify local path to pretrained weights (in order to run model on devices with no access to the Internet). When passing a custom config as an argument to a function code falls when initializing an EfficientNet instance with the keyword argument 'cfg', which is not present in EfficientNet class init.
To Reproduce
Expected behavior
I expect the model to be created with weights loaded from local file.
Desktop (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions