Skip to content

Mapping width_coefficient, depth_coefficient and image_size to paper's parameters #282

Closed
@fpaissan

Description

@fpaissan

Dear @lukemelas,

many thanks for the useful implementation you provided.
I am reaching out to ask how you map the width_coefficient, depth_coefficient and image_size in your utils.py file to the paper's alpha, beta and gamma. I see you created the efficientnet_params method to generate EfficientNets from B0 all the way to B8.

From what I understand from your implementation this code returns EfficientNet-B0, and in fact it does.

block_args, global_args = efficientnet(
    width_coefficient=1.0, 
    depth_coefficient=1.1, 
    image_size=240
)

model = EfficientNet(block_args, global_args)

From the EfficientNetv1's paper, we know that α = 1.2, β = 1.1, γ=1.15 for the B0 architecture and are afterward scaled all the way to B7 using compound scaling.

My question is, did you implement compound scaling for custom (α, β, γ)? In case, how did you map the (α, β, γ) tuple to width_coefficient, depth_coefficient and image_size?

Thanks in advance.

Best,
Francesco.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions