Practical overview
When it fits
Use it when you want a code-based CIFAR-100 experiment with a choice of supported CNN architectures and separate training and testing scripts.
Who it is for
- People learning PyTorch image classification through CIFAR-100 experiments.
- Practitioners comparing supported CNN architectures under a shared training workflow.
- Developers seeking an example of a custom PyTorch dataset module.
Documented uses
- Train a selected supported network on CIFAR-100.
- Test a network using a saved weights file.
- Monitor training with optional TensorBoard.
- Adapt the example dataset module for custom dataset handling.
Requirements & limits
- The README lists Python 3.6 and PyTorch 1.6.0+cu101 as its experiment environment.
- TensorBoard 2.2.2 is optional.
- The README lists many network arguments, including ResNet, VGG, DenseNet, MobileNet, ShuffleNet and Inception variants.
- The README cautions that shared hyperparameters may not yield the best result for every network.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Train and test a CIFAR-100 model
Run the documented VGG16 training example and use the resulting weights with the test script.
Before you start
- Python 3.6 and PyTorch 1.6.0+cu101, as listed in the README.
- The repository and CIFAR-100 dataset supplied through torchvision.
Steps
Enter the repository directory.
Run the documented training command: python train.py -net vgg16 -gpu.
Use the resulting weights file with test.py, specifying -net vgg16 and the weights-file path.
Expected outcome
The repository's training and testing scripts are configured to run a VGG16 CIFAR-100 experiment; the README says the best-accuracy weights are normally saved in the checkpoint folder with a “best” suffix.
Guide limitations
- The README describes a particular experiment environment; it does not establish compatibility with other software or hardware configurations.
- The GPU example requires a suitable GPU setup; the README does not provide a CPU-only example.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 17 October 2026
- Original website title
- weiaicunzai/pytorch-cifar100 · Official homepage title · retained in its source language

