Skip to main content
ToolPotion
AI Advisor
Submit a Tool (Free)

ConvMixer

This repository provides an implementation of ConvMixer, a convolutional neural network architecture for image recognition tasks. It is based on the paper "Patches Are All You Need? 🤷" and offers pre-trained model weights for evaluation and code for training on datasets like ImageNet-1k and CIFAR-10.

View Repository
Share
View Repository
Share

This GitHub repository, locuslab/convmixer, hosts the implementation of ConvMixer, a neural network architecture detailed in the ICLR 2022 paper titled "Patches Are All You Need? 🤷" by Asher Trockman and Zico Kolter. The primary code for the ConvMixer model is located in `convmixer.py`. The project leverages the `pytorch-image-models` (timm) framework for training and includes modifications to this framework to support ConvMixers.

Read More

Key modifications within the `pytorch-image-models` framework include the addition of `timm/models/convmixer.py`, updates to `timm/models/__init__.py`, and the integration of a "OneCycle" learning rate schedule with corresponding scheduler files. While the OneCycle schedule is noted, the authors suggest that standard cosine schedules could also be effective for training ConvMixers.

The repository offers pre-trained model weights for several ConvMixer variants, including ConvMixer-1536/20, ConvMixer-768/32, and ConvMixer-1024/20, with details on their kernel size, patch size, and file size. Instructions and example commands are provided for evaluating these models on datasets like ImageNet-1k, aiming for high accuracy. For instance, ConvMixer-1536/20 is expected to achieve 81.37% accuracy on ImageNet-1k validation.

Training ConvMixers is also detailed, with an example command for distributed training on a multi-GPU setup using ImageNet-1k. The training command specifies hyperparameters such as batch size, number of workers, optimizer, epochs, learning rate schedule, augmentation techniques (e.g., RandAugment, CutMix, MixUp), and input size. The repository also includes a simplified, tweetable version of the ConvMixer architecture in Python.

Additionally, a separate repository for training ConvMixers on CIFAR-10 is linked, and advice is given on adjusting training parameters like `--scale` for smaller input sizes. The project is open-source under the MIT license, encouraging community contribution and further development.

  • CategoryAI Models & LLMs
  • Pricing ModelOpen source
  • DeploymentCloud, Self-hosted
  • PlatformsWeb

  • Implementation of ConvMixer neural network architecture

  • Based on the research paper "Patches Are All You Need? 🤷"

  • Includes code for training ConvMixers

  • Provides pre-trained model weights for evaluation

  • Supports training on ImageNet-1k and CIFAR-10 datasets

  • Leverages the `pytorch-image-models` (timm) framework

  • Includes a "OneCycle" learning rate scheduler implementation

  • Offers example commands for model evaluation

  • Includes example commands for distributed training

  • Contains a simplified, tweetable version of the ConvMixer model

  • Model weights available for download

  • Open-source under the MIT license

  1. Access Model: Clone the GitHub repository to your local machine.

  2. Set Up Environment: Install necessary Python libraries, including PyTorch and `pytorch-image-models`.

  3. Load Model: Instantiate a ConvMixer model using the provided Python scripts.

  4. Evaluate Model: Use the `validate.py` script with downloaded weights and a validation dataset.

  5. Train Model: Execute the `distributed_train.sh` script with specified dataset paths and training parameters.

  6. Integrate: Adapt the `convmixer.py` code for custom training loops or inference pipelines.

  • Image Classification
  • Model Evaluation
  • Custom Model Training
  • Research and Development
  • Transfer Learning
  • Benchmarking

ConvMixer Reviews

Loading...

Popular AI Tools Like ConvMixer

ConvBERT

AI GitHub Repos

ConvBERT is an open-source AI model for pre-training language models, introducing a novel architecture with span-based dynamic convolution. This GitHub repository provides the…

AI Models & LLMs
View Tool

AI GitHub Repos

Open-source AI model for pre-training language models, introducing a novel architecture with span-based dynamic convolution. This GitHub repository provides the…ConvBERT is an open-source AI model for pre-training language models, introducing a novel architecture with span-based dynamic convolution. This GitHub repository provides the…

AI Models & LLMs
See the Top 250 AI GitHub Repos

RepVGG

AI GitHub Repos

RepVGG is a powerful and simple ConvNet architecture that achieves high accuracy on ImageNet. It utilizes a VGG-style design with re-parameterization techniques, allowing for…

AI Models & LLMs
View Tool

AI GitHub Repos

Powerful and simple ConvNet architecture that achieves high accuracy on ImageNet. It utilizes a VGG-style design with re-parameterization techniques, allowing for…RepVGG is a powerful and simple ConvNet architecture that achieves high accuracy on ImageNet. It utilizes a VGG-style design with re-parameterization techniques, allowing for…

AI Models & LLMs
See the Top 250 AI GitHub Repos

Vision Transformer

AI GitHub Repos

The Vision Transformer (ViT) repository provides models and code for image recognition tasks. It includes implementations of the Vision Transformer and MLP-Mixer architectures,…

Computer Vision Tools
View Tool

AI GitHub Repos

The Vision Transformer (ViT) repository provides models and code for image recognition tasks. It includes implementations of the Vision Transformer and MLP-Mixer architectures,…

Computer Vision Tools
See the Top 250 AI GitHub Repos

SPP_net

AI GitHub Repos

SPP_net is a re-implementation of the Spatial Pyramid Pooling algorithm for deep convolutional networks in visual recognition. It aims to reproduce object detection results from a…

AI Models & LLMs
View Tool

AI GitHub Repos

Re-implementation of the Spatial Pyramid Pooling algorithm for deep convolutional networks in visual recognition. It aims to reproduce object detection results from a…SPP_net is a re-implementation of the Spatial Pyramid Pooling algorithm for deep convolutional networks in visual recognition. It aims to reproduce object detection results from a…

AI Models & LLMs
See the Top 250 AI GitHub Repos

Vision GNN (ViG)

AI GitHub Repos

Vision GNN (ViG) is a PyTorch implementation of Vision Graph Neural Networks developed by Huawei Noah's Ark Lab. It offers efficient AI backbones for image processing tasks,…

AI Models & LLMs
View Tool

AI GitHub Repos

PyTorch implementation of Vision Graph Neural Networks developed by Huawei Noah's Ark Lab. It offers efficient AI backbones for image processing tasks,…Vision GNN (ViG) is a PyTorch implementation of Vision Graph Neural Networks developed by Huawei Noah's Ark Lab. It offers efficient AI backbones for image processing tasks,…

AI Models & LLMs
See the Top 250 AI GitHub Repos

Pythae

AI GitHub Repos

Pythae offers a unified platform for Variational Autoencoder (VAE) implementations using Pytorch. It provides researchers and developers with a comprehensive toolkit to experiment…

Machine Learning Platforms
View Tool

AI GitHub Repos

Offers a unified platform for Variational Autoencoder (VAE) implementations using Pytorch. It provides researchers and developers with a comprehensive toolkit to experiment…Pythae offers a unified platform for Variational Autoencoder (VAE) implementations using Pytorch. It provides researchers and developers with a comprehensive toolkit to experiment…

Machine Learning Platforms
See the Top 250 AI GitHub Repos

Keras

AI GitHub Repos

Keras is an open-source deep learning library designed for humans. It simplifies the process of building neural networks and allows developers to contribute to its development on…

Machine Learning Platforms
View Tool

AI GitHub Repos

Open-source deep learning library designed for humans. It simplifies the process of building neural networks and allows developers to contribute to its development on…Keras is an open-source deep learning library designed for humans. It simplifies the process of building neural networks and allows developers to contribute to its development on…

FeaturedMachine Learning Platforms
See the Top 250 AI GitHub Repos

PyTorch

AI GitHub Repos

PyTorch is an open-source machine learning library that provides tools for building dynamic neural networks in Python, leveraging strong GPU acceleration for efficient computation.

Machine Learning & Data Science
View Tool

AI GitHub Repos

Open-source machine learning library that provides tools for building dynamic neural networks in Python, leveraging strong GPU acceleration for efficient computation.PyTorch is an open-source machine learning library that provides tools for building dynamic neural networks in Python, leveraging strong GPU acceleration for efficient computation.

FeaturedMachine Learning & Data Science
See the Top 250 AI GitHub Repos
1 of 8