All models

legacy_xception

An image classifier built from depthwise separable convolution layers.

Image classification · 168 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 (37 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

Family
Xception
Parameters
22.9M
Operations
168
Framework
PyTorch
Recurrent
No
Published
CVPR (arXiv 2016)
Cited by
19,481 (as of 9 October 2026)
Authors
François Chollet
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
m5571
Graph hash
b0b58fb9a7f20626429b31b90882d55ade637e597b727f44a4547286edd932bf
Skeleton hash
0990ac3d221c5343022a5452349e3504e5bddf0a6fff4d94fcb4934858b89ce1
Architecture hash
cd672328e556ecfcba7aa979d235189a7595eab2d262a2d4c13e33fa4f7aa19a
Diagram SHA-256
472fb832ee21b69ea6dd7122cb21b0f49d8e54592edfdf344f3c3c871cfbe9ee
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('legacy_xception', pretrained=False)

What it is

This model is the Xception network as defined in the paper Xception: Deep Learning with Depthwise Separable Convolutions. It expects an image size of 3x299x299.

About this model's family

Xception is a convolutional neural network architecture for image classification based entirely on depthwise separable convolution layers. The paper reads Inception modules as an intermediate step between a regular convolution and the depthwise separable convolution, which is a depthwise convolution followed by a pointwise convolution. The name stands for Extreme Inception, and the design replaces Inception modules with depthwise separable convolutions.

The architecture in the paper has 36 convolutional layers structured into 14 modules, all with linear residual connections around them except the first and last. The paper also found that leaving out any non-linearity between the depthwise and pointwise operations led to both faster convergence and better final performance. In timm, legacy_xception creates the Xception model as the paper defines it. The xception41 and xception65 models and their Pre-Act versions are instead an implementation of the Aligned Xception (Deeplab) models.

The paper reports that Xception slightly outperforms Inception V3 on the ImageNet dataset and significantly outperforms it on a larger image classification dataset comprising 350 million images and 17,000 classes. Because Xception has the same number of parameters as Inception V3, the paper attributes the gains to a more efficient use of model parameters and not to increased capacity.

Key idea. The paper proposes Xception, a convolutional architecture inspired by Inception in which Inception modules are replaced with depthwise separable convolutions.

  • xception
  • extreme inception
  • depthwise separable convolutions
  • aligned xception
  • xception41
  • xception65
  • legacy_xception
  • image classification
  • timm xception

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

Cite the paper

@misc{chollet2017xceptiondeeplearningdepthwise,
      title={Xception: Deep Learning with Depthwise Separable Convolutions}, 
      author={François Chollet},
      year={2017},
      eprint={1610.02357},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1610.02357}, 
}