All models

tf_efficientnet_b2

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

Image classification · 477 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
9.1M
Operations
477
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
m10499
Graph hash
443b7cbc81af19a02eb0599f79ea2972df6cbff2f0eeda13bf409408bd85f25d
Skeleton hash
9c10f046f5f0e797c5b0c2ed08a335ef479c526827a1db1de394c6d8c4528621
Architecture hash
6ae92e256aadfb5011823d642df3f59733015ebb11e67862b460f38dfdcbc6da
Diagram SHA-256
b6810ef965dcee9ec906794cdce234b4b7ff7291ff043af034b06c5ea7bb61e8
TorchLens version
2.36.0
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_b2', 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.