mobilenet_v1 (image classification)
MobileNet V1: depth-wise separable convolutions for efficient on-device image classification.
Image classification · 112 operations Checked
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
- Task
- Image classification
- Parameters
- 3.2M
- Operations
- 112
- Framework
- PyTorch
- Recurrent
- No
- Source
- transformers 5.18.0
- Name in source
- mobilenet_v1:image-classification
- 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 file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m7318
- Graph hash
- 7cb00aa880b674959494e3ed7b5359c329345124a898319cb8875995e5a8a04d
- Skeleton hash
- 37b875524b8b6494c79fb9caf3865edfe2e18a8a527eb00b8fc4f5097e53647c
- Architecture hash
- dce5c2857be10b484e7a93d2c03a92885465f204d9d6759942ffcf455435cc11
- Diagram SHA-256
- a3e4d85647ecfc6fc5291bf4accbc946a12da097b3457a15baf392fb0d2eb5ee
- 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
transformers.AutoModelForImageClassification.from_config()
What it is
MobileNet V1 is a family of efficient convolutional neural networks optimized for on-device or embedded vision tasks. Its efficiency comes from depth-wise separable convolutions in place of standard convolutions. Two hyperparameters, a width multiplier (alpha) and an image resolution multiplier, let you trade latency against accuracy.
Checkpoint names follow the pattern mobilenet_v1_{depth_multiplier}_{resolution}, so mobilenet_v1_1.0_224 means a depth multiplier of 1.0 at 224-pixel resolution. The model is pretrained on ImageNet-1k with 1000 classes but actually predicts 1001, the extra one being a background class at index 0. The Transformers port uses global average pooling rather than the original's optional 7x7 average pooling with stride 2, and fixes the output stride at 32.
Key idea. An efficient CNN for on-device vision built from depth-wise separable convolutions instead of standard convolutions.
- mobilenet
- mobilenet v1
- mobilenetv1
- depthwise separable convolution
- mobile vision
- image classification
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.