What it does
A convolution reuses one small set of weights at every location. At each position it takes a window of the input across all input channels, multiplies it element by element with a learned kernel and sums the result into one output value, once per output channel. Because the same kernel is used everywhere, a pattern learned in one corner is recognized in every other corner, and the parameter count does not grow with the image size. Early layers tend to learn edges and color blobs; deeper layers combine them into textures and parts. Strides shrink the output; padding keeps borders. The same operator works on 1D signals (audio, text features) and 3D volumes.
Formula
Y[n, m, y, x] = Bm + Σc Σi Σj W[m, c, i, j] · X[n, c, s·y + d·i − p, s·x + d·j − p]H' = ⌊(H + 2p − d·(k − 1) − 1) / s⌋ + 1Shapes and parameters
- Shapes
- Input [N, C, H, W], kernel [M, C/group, kH, kW], bias [M]; output [N, M, H', W'], where H' and W' follow from stride s, padding p, dilation d and kernel size k.
- Parameters
- M × (C / group) × kH × kW weights plus M biases. A 3 × 3 convolution from 8 to 16 channels has 16 × 8 × 9 + 16 = 1,168 parameters, whatever the image size.
- Used for
- Image classifiers and detectors, segmentation and denoising networks, audio models that read spectrograms, and the patch embedding of vision transformers.
In WeightSpace
Several catalog models expose the bias of their last convolution as the editable parameter, for example a denoiser’s per-channel noise estimate, a saliency or matting logit, or an image generator’s output color. Edits stay within ±8 of the shipped bias. Kernels themselves are read-only.
Where it appears
- Track motion between two framesRAFT-Small152990K params
- Track body joints in a photoMediaPipe BlazePose1244.3M params
- Find what stands out in a photoU²-Net-p1191.1M params
- Read a phrase aloudKokoro 82M8881M params
- Separate a person from the backgroundPP-HumanSeg731.5M params
- Read a facial expressionOpenCV Zoo MobileFaceNet661.2M params
- Track fingertips in a photoMediaPipe Hand Landmarker612.0M params
- Cut out a portraitMODNet596.5M params
- Find rows and cells in a tablePaddleOCR SLANet+591.9M params
- Generate a frame between two photosPractical-RIFE 4.25535.7M params
- Find text regions on an imagePP-OCRv5 Mobile Detection521.2M params
- Detect objects in a photoNanoDet-Plus48942K params
- Find video shot changesTransNetV2487.6M params
- Locate faces and facial landmarksYuNet3353K params
- Transcribe music into notesSpotify Basic Pitch3236K params
- Estimate depth from a photoDepth Anything V2 Small3125M params
- Dream up an empty roomNanoDreamer2625M params
- Label a photo with ImageNetSqueezeNet 1.1261.2M params
- Track a subject between framesOpenCV VitTrack23174K params
- Clean noise from a photoKAIR Color DnCNN20668K params
- Turn a photo into a mosaicFast Neural Style Mosaic161.7M params
- Identify houseplantsMobileNet V114219K params
- Recognize sounds in a recordingYAMNet144.0M params
- Detect speech in a recordingSilero VAD12545K params
- Change how a voice speakstiny-voca104.5M params
- Remove background noiseGTCRN848K params
- Transcribe a short English recordingWav2Vec2 Base 960h894M params
- Read text in an imageCRNN English78.4M params
- Track the pitch of a soundCREPE Tiny6487K params
- Find beats and downbeatsBeat This! Small53.2M params
- Recognize 18 spoken wordsSpeech Commands 18w41.5M params
- Recognize voice commandsSpeech Commands41.4M params
- Upscale a low-resolution photoESPCN460K params
- Brighten a low-light photoSCI (CVPR 2022)3264 params
- Restore punctuation in a transcriptEdge-Punct-Casing37.4M params
- Segment an object by clickingSlimSAM39.7M params
- Recognize a handwritten digitMNIST CNN26.0K params
- Classify the tone of a film reviewTensorFlow IMDB CNN12.7M params
- Find a caption that fits a photoTinyCLIP ViT-8M/16123M params