What it does
A regular convolution filters space and mixes channels in one step. A depthwise separable convolution does the two jobs separately. The depthwise step gives every input channel its own small spatial filter and keeps channels apart (an ONNX Conv with group equal to the channel count). The pointwise step is a 1 × 1 convolution that mixes channels at each pixel. The result covers the same receptive field with roughly k² times fewer multiplications for a k × k kernel, which is why mobile networks are built from it. In an exported graph it appears as two Conv nodes, usually each followed by normalization and an activation.
Formula
Z[c, y, x] = Σi Σj Wdw[c, i, j] · X[c, y + i, x + j]Y[m, y, x] = Σc Wpw[m, c] · Z[c, y, x] + bmcost ratio ≈ 1/M + 1/k2 of a full k × k convolutionShapes and parameters
- Shapes
- Input [N, C, H, W]; after the depthwise step [N, C, H', W']; after the pointwise step [N, M, H', W'].
- Parameters
- C × kH × kW for the depthwise filters plus M × C for the pointwise mixer (plus biases if used). For C = 128, M = 128 and 3 × 3: 1,152 + 16,384 = 17,536, against 147,456 for a full 3 × 3 convolution.
- Used for
- MobileNet V1 and V2, many face, hand and pose detectors, and other networks sized for phones and browsers.
In WeightSpace
Read-only in WeightSpace today. The plant classifier runs a MobileNet built from these blocks; edits there change the classifier head after the last block, and the inspector shows the activations each block produces.
Where it appears
- Track fingertips in a photoMediaPipe Hand Landmarker392.0M params
- Read a facial expressionOpenCV Zoo MobileFaceNet371.2M params
- Track body joints in a photoMediaPipe BlazePose374.3M params
- Identify houseplantsMobileNet V126219K params
- Detect objects in a photoNanoDet-Plus25942K params
- Locate faces and facial landmarksYuNet2053K params
- Find rows and cells in a tablePaddleOCR SLANet+181.9M params
- Recognize sounds in a recordingYAMNet134.0M params
- Cut out a portraitMODNet106.5M params
- Find text regions on an imagePP-OCRv5 Mobile Detection101.2M params
- Change how a voice speakstiny-voca74.5M params
- Remove background noiseGTCRN348K params