OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Network Slimming

Network Slimming is a Lua implementation of a neural-network method that uses sparsity regularization on batch-normalization scaling factors to identify and prune less important convolutional channels, then rebuilds and fine-tunes a compact model.

Independent OpenViST project profile, based on linked sources.

Network Slimming — Studying a Lua implementation of network slimming
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it to examine or reproduce the documented VGGNet-on-CIFAR-10 channel-pruning workflow.

Who it is for

  • Researchers studying neural-network pruning and model compression.
  • Practitioners exploring a VGGNet compression workflow on CIFAR-10.

Documented uses

  • Train a convolutional network with channel-level sparsity.
  • Prune selected channels and convert the result into a compact network.
  • Fine-tune the compact model.
Before you choose

Requirements & limits

The repository is public and MIT-licensed.

  • The included example targets VGGNet on CIFAR-10.
  • The implementation is Lua code based on fb.resnet.torch.
  • The README points to separate implementations for PyTorch and Chainer; these are not this repository’s implementation.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Train, prune and fine-tune the VGG CIFAR-10 example

Follow the repository’s documented sequence for producing and fine-tuning a compact VGG model.

Before you start

  • The repository’s Lua/Torch code and the th command used in its examples.
  • The VGGNet-on-CIFAR-10 example and output directories described in the README.

Steps

  1. Create vgg_cifar10/ and its pruned/, converted/ and fine_tune/ subdirectories.

  2. Train with channel-level sparsity using th main.lua -netType vgg -save vgg_cifar10/ -S 0.0001.

  3. Prune channels with th prune/prune.lua -percent 0.7 -model vgg_cifar10/model_160.t7 -save vgg_cifar10/pruned/model_160_0.7.t7.

  4. Convert the pruned model with th convert/vgg.lua -model vgg_cifar10/pruned/model_160_0.7.t7 -save vgg_cifar10/converted/model_160_0.7.t7.

  5. Fine-tune with th main_fine_tune.lua -retrain vgg_cifar10/converted/model_160_0.7.t7 -save vgg_cifar10/fine_tune/.

Expected outcome

The documented sequence trains a sparse VGG model, creates a compact converted model and fine-tunes it.

Guide limitations

  • The README’s example is for VGGNet on CIFAR-10; it does not document this workflow for other architectures or datasets.
  • The repository notes a bug in the original paper’s VGG ImageNet results in Table 2.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
8 November 2026
Original website title
liuzhuang13/slimming · Official homepage title · retained in its source language