Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is the depth of efficientnet-b7 defined as 3.1? #344

Open
T990820 opened this issue Nov 21, 2023 · 0 comments
Open

Why is the depth of efficientnet-b7 defined as 3.1? #344

T990820 opened this issue Nov 21, 2023 · 0 comments

Comments

@T990820
Copy link

T990820 commented Nov 21, 2023

The code is found on line 475 of EfficientNet-PyTorch/efficientnet_pytorch/utils.py. According to formula 3 of the original paper, the image size of efficientnet-b7 is 600. r=γ^Φ=1.15^Φ=600/224=2.6786, so Φ=log(2.6786)/log(1.15)=7.04. Therefore, depth=d=α^Φ=1.2^7.04=3.6094≠3.1

I have browsed several repos about EfficientNet, which most of them define depth of efficientnet-b7 as 3.1, so I'm not sure if this derivation is correct. If I'm wrong, what's the correct mathematical derivation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant