Open gloriamacia opened 4 years ago
I think the code was copied directly from the original EfficientNet tf library: https://github.com/tensorflow/tpu/blob/master/models/official/efficientnet/efficientnet_builder.py#L35. I have the same question and I think that it should be addressed to the original Efficient Net developers.
You can find the answer in this issue
I was comparing this implementation with the original paper and it seems to me that either I am missing something (apologies in advance) or the parameters he is using are not the same. This is his code which you will find in utils.py:
def efficientnet_params(model_name): """ Map EfficientNet model name to parameter coefficients. """ params_dict = {
Coefficients: width,depth,res,dropout
} return params_dict[model_name]
Now, when I go to the original paper, the authors say the following.
So basically if for instance alpha = 1.2 and depth = alpha ** phi, how do I get to Luke Melas table? I did not find a way to understand the numbers of his scaling. Did somebody review it?
There is one sentence of the paper that confuses me though:
If I interpret this sentence correctly, w=1.0 d=1.0 and r=224 would correspond to EfficientNetB0 and these new parameters are for phi = 1, hence EfficientNetB1… again, different in Lukas table. Maybe not really an issue but certainly worth a clarification so I am raising this up.