← Open Source
facebookresearch

ResNeXt

Implementation of a classification framework from the paper Aggregated Residual Transformations for Deep Neural Networks.

Model DevelopmentArchitectureLua
Open on GitHub
Momentum
+0stars in 24 hours0.0%
1.93k
Stars
289
Forks
+2
This week
3
Contributors
Created 2017-01-11 · Updated 2026-10-13 · #9240 today
Top developers
s9xieKaimingHewanyenlo

facebookresearch/ResNeXt is ranked 9,240 with 1,927 stars.

Same-category comparison

facebookresearch/ResNeXt is ranked 9,240 among these 8 peers; loujie0822/DeepIE is ranked 9,237.

Same-category comparison
NameRankMetrics
c2g-dev/city2graph9,214
Language:
Python
Stars:
1,945
Forks:
204
Description:
Transform geospatial relations into graphs for Graph Neural Networks and spatial network analysis.
chelsea0x3b/dfdx9,223
Language:
Rust
Stars:
1,937
Forks:
109
Description:
Deep learning in Rust, with shape checked tensors and neural networks.
google/sling9,231
Language:
C++
Stars:
1,932
Forks:
264
Description:
SLING - A natural language frame semantics parser.
loujie0822/DeepIE9,237
Language:
Python
Stars:
1,929
Forks:
346
Description:
DeepIE: Deep Learning for Information Extraction.
Yvictor/TradingGym9,244
Language:
Python
Stars:
1,924
Forks:
372
Description:
Trading and Backtesting environment for training reinforcement learning agent or simple rule base algo.
Tencent/NeuralNLP-NeuralClassifier9,245
Language:
Python
Stars:
1,923
Forks:
401
Description:
An Open-source Neural Hierarchical Multi-label Text Classification Toolkit.
GPflow/GPflow9,248
Language:
Python
Stars:
1,921
Forks:
432
Description:
Gaussian processes in TensorFlow.
black0017/MedicalZooPytorch9,249
Language:
Python
Stars:
1,921
Forks:
305
Description:
A pytorch-based deep learning framework for multi-modal 2D/3D medical image segmentation.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageLua
CategoryModel Development
SubcategoryArchitecture
Stars1,927
Forks289
Contributors3
Created date2017-01-11
Updated date2026-10-13
Stars in 1 day0
Stars in 7 days2
Rank9,240
Previous rank9,279
Rank change39
7-day stars rank7,886
Previous 7-day stars rank7,919
7-day stars rank change33
Total stars rank6,551
Previous total stars rank6,544
Total stars rank change-7
CountryUSA
README summary

ResNeXt: Aggregated Residual Transformations for Deep Neural Networks By Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, Kaiming He UC San Diego, Facebook AI Research Table of Contents 0. Third-party re-implementations News Congrats to the ILSVRC 2017 classification challenge winner WMW. ResNeXt is the foundation of their new SENet architecture (a **ResNeXt-152 (64 x 4d)** with the Squeeze-and-Excitation module)! Check out Figure 6 in the new Memory-Efficient Implementation of DenseNets paper for a

comparision between ResNeXts and DenseNets. (*DenseNet cosine is DenseNet trained with cosine learning rate schedule. *) Introduction This repository contains a Torch implementation for the ResNeXt algorithm for image classification. ResNeXt is a simple, highly modularized network architecture for image classification. Our network is constructed by repeating a building block that aggregates a set of transformations with the same topology. Our simple design results in a homogeneous, multi-branch architecture that has only a few hyper-parameters to set. This strategy

exposes a new dimension, which we call “cardinality” (the size of the set of transformations), as an essential factor in addition to the dimensions of depth and width. (Left): ResNet/ResNeXt-50 with the same complexity (~4. 1 billion FLOPs, ~25 million parameters); (Right): ResNet/ResNeXt-101 with the same complexity (~7. 8 billion FLOPs, ~44 million parameters). torch installation instructions for a step-by-step guide. Install Torch on a machine with CUDA GPU Install cuDNN v4 or v5

and the Torch cuDNN bindings Download the ImageNet dataset and move validation images to labeled subfolders Training Please follow fb. torch for the general usage of the code, including how to use pretrained ResNeXt models for your own task. ResNeXt 16x64d for cifar10) on 8 GPUs: To get comparable results using 2/4 GPUs, you should change the batch size and the corresponding learning rate: Note: CIFAR datasets will be automatically downloaded and processed for the first time. Note that

in the arXiv paper CIFAR results are based on pre-activated bottleneck blocks and a batch size of 256. We found that better CIFAR test acurracy can be achieved using original bottleneck blocks and a batch size of 128. ImageNet Pretrained Models ImageNet pretrained models are licensed under CC BY-NC 4. 9 | Original ResNet-50 | | ResNeXt-50 (32x4d) | ~4. 2 | Download (191MB) | | ResNet-101 (1x64d) | ~7. 0 | Original ResNet-101 | | ResNeXt-101 (32x4d) | ~7. 2 | Download (338MB) | | ResNeXt-101

(64x4d) | ~15. 4 | Download (638MB) | Third-party re-implementations Besides our torch implementation, we recommend to see also the following third-party re-implementations and extensions: 1. Converting ImageNet pretrained model to PyTorch model and source. Training code in MXNet and pretrained ImageNet models code 1. Caffe prototxt, pretrained ImageNet models (with ResNeXt-152), curves codecode

Frequently asked questions

How many stars and forks are recorded?

facebookresearch/ResNeXt has 1,927 stars and 289 forks.

What is the repository rank?

facebookresearch/ResNeXt is ranked 9,240.

What language and category are recorded?

facebookresearch/ResNeXt has 1,927 stars, uses Lua and belongs to Model Development.

Which repository is closest in rank?

facebookresearch/ResNeXt is compared with loujie0822/DeepIE, ranked 9,237 with 1,929 stars.

README

ResNeXt: Aggregated Residual Transformations for Deep Neural Networks

By Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, Kaiming He

UC San Diego, Facebook AI Research

Table of Contents

  1. Introduction
  2. Citation
  3. Requirements and Dependencies
  4. Training
  5. ImageNet Pretrained Models
  6. Third-party re-implementations

News

  • Congrats to the ILSVRC 2017 classification challenge winner WMW. ResNeXt is the foundation of their new SENet architecture (a ResNeXt-152 (64 x 4d) with the Squeeze-and-Excitation module)!
  • Check out Figure 6 in the new Memory-Efficient Implementation of DenseNets paper for a comparision between ResNeXts and DenseNets. (DenseNet cosine is DenseNet trained with cosine learning rate schedule.)

Introduction

This repository contains a Torch implementation for the ResNeXt algorithm for image classification. The code is based on fb.resnet.torch.

ResNeXt is a simple, highly modularized network architecture for image classification. Our network is constructed by repeating a building block that aggregates a set of transformations with the same topology. Our simple design results in a homogeneous, multi-branch architecture that has only a few hyper-parameters to set. This strategy exposes a new dimension, which we call “cardinality” (the size of the set of transformations), as an essential factor in addition to the dimensions of depth and width.

Figure: Training curves on ImageNet-1K. (Left): ResNet/ResNeXt-50 with the same complexity (~4.1 billion FLOPs, ~25 million parameters); (Right): ResNet/ResNeXt-101 with the same complexity (~7.8 billion FLOPs, ~44 million parameters).

Citation

If you use ResNeXt in your research, please cite the paper:

@article{Xie2016,
  title={Aggregated Residual Transformations for Deep Neural Networks},
  author={Saining Xie and Ross Girshick and Piotr Dollár and Zhuowen Tu and Kaiming He},
  journal={arXiv preprint arXiv:1611.05431},
  year={2016}
}

Requirements and Dependencies

See the fb.resnet.torch installation instructions for a step-by-step guide.

Training

Please follow fb.resnet.torch for the general usage of the code, including how to use pretrained ResNeXt models for your own task.

There are two new hyperparameters need to be specified to determine the bottleneck template:

-baseWidth and -cardinality

1x Complexity Configurations Reference Table

baseWidth cardinality
64 1
40 2
24 4
14 8
4 32

To train ResNeXt-50 (32x4d) on 8 GPUs for ImageNet:

th main.lua -dataset imagenet -bottleneckType resnext_C -depth 50 -baseWidth 4 -cardinality 32 -batchSize 256 -nGPU 8 -nThreads 8 -shareGradInput true -data [imagenet-folder]

To reproduce CIFAR results (e.g. ResNeXt 16x64d for cifar10) on 8 GPUs:

th main.lua -dataset cifar10 -bottleneckType resnext_C -depth 29 -baseWidth 64 -cardinality 16 -weightDecay 5e-4 -batchSize 128 -nGPU 8 -nThreads 8 -shareGradInput true

To get comparable results using 2/4 GPUs, you should change the batch size and the corresponding learning rate:

th main.lua -dataset cifar10 -bottleneckType resnext_C -depth 29 -baseWidth 64 -cardinality 16 -weightDecay 5e-4 -batchSize 64 -nGPU 4 -LR 0.05 -nThreads 8 -shareGradInput true
th main.lua -dataset cifar10 -bottleneckType resnext_C -depth 29 -baseWidth 64 -cardinality 16 -weightDecay 5e-4 -batchSize 32 -nGPU 2 -LR 0.025 -nThreads 8 -shareGradInput true

Note: CIFAR datasets will be automatically downloaded and processed for the first time. Note that in the arXiv paper CIFAR results are based on pre-activated bottleneck blocks and a batch size of 256. We found that better CIFAR test acurracy can be achieved using original bottleneck blocks and a batch size of 128.

ImageNet Pretrained Models

ImageNet pretrained models are licensed under CC BY-NC 4.0.

Single-crop (224x224) validation error rate

Network GFLOPS Top-1 Error Download
ResNet-50 (1x64d) ~4.1 23.9 Original ResNet-50
ResNeXt-50 (32x4d) ~4.1 22.2 Download (191MB)
ResNet-101 (1x64d) ~7.8 22.0 Original ResNet-101
ResNeXt-101 (32x4d) ~7.8 21.2 Download (338MB)
ResNeXt-101 (64x4d) ~15.6 20.4 Download (638MB)

Third-party re-implementations

Besides our torch implementation, we recommend to see also the following third-party re-implementations and extensions:

  1. Training code in PyTorch code
  2. Converting ImageNet pretrained model to PyTorch model and source. code
  3. Training code in MXNet and pretrained ImageNet models code
  4. Caffe prototxt, pretrained ImageNet models (with ResNeXt-152), curves codecode
Nearby in the ranking
Similar items