All models

tf_efficientnet_b4

Mobile-style convolutional classifiers scaled in depth, width and resolution by one coefficient.

Image classification · 666 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (29 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
19.3M
Operations
666
Framework
PyTorch
Recurrent
No
Published
2019
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m10501
Graph hash
bfa1a73f713e70276e55c6de332e5284cd55b0334c187739fbf84ae6fcb37b12
Skeleton hash
6a3e253b11638842e1a24b13916ff4dd31a57d9295901a6f7df7a5f971b0eaf9
Architecture hash
e5088bb69267175823b55c7669d237f68fd27599b81efca7b9eb9ab29f1a0b9f
Diagram SHA-256
4db6d4ba0f69fd59be4eca570ab503e75d6a917567cc5ad3302e9ac891c507c3
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

timm.create_model('tf_efficientnet_b4', pretrained=False)

What it is

About this model's family

EfficientNet is a convolutional network architecture and a scaling method. The idea is compound scaling: instead of scaling depth, width or resolution arbitrarily, all three are scaled together by fixed coefficients set by a single compound coefficient. The intuition is that a bigger input image needs more layers to grow the receptive field and more channels to capture finer patterns. The baseline EfficientNet-B0 was found by neural architecture search and then scaled up into the B-series. Its blocks are the inverted bottleneck residual blocks of MobileNetV2 with squeeze-and-excitation added. The paper reports EfficientNet-B7 at 84.3% top-1 on ImageNet while being 8.4x smaller and 6.1x faster at inference than the best existing ConvNet.

The captured members are mostly timm's EfficientNet family: B0 through B8 and L2, the tf_ ports of the TensorFlow weights, and variants with GroupNorm, grouped convolutions or EvoNorm. The pruned B1, B2 and B3 members were obtained with knapsack pruning with inner distillation, which prunes channels while keeping the high-level structure and fine-tunes under the parent network's supervision. One member is an EfficientNetV2 variant; that family was searched with training-aware neural architecture search and adds Fused-MBConv blocks, training much faster while being up to 6.8x smaller. Two members come from Hugging Face Transformers, which exposes the model as a bare backbone and as an image classifier.

Key idea. Compound scaling: a single coefficient scales network depth, width and input resolution together, applied to a searched mobile-style baseline to produce a family of efficient classifiers.

  • efficientnet
  • efficientnet-b0
  • efficientnet-b7
  • efficientnetv2
  • compound scaling
  • mbconv
  • image classification
  • imagenet
  • tf_efficientnet
  • efficientnet lite
  • pruned efficientnet

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.