* add model inference on single image * rm --eval * revise doc * add inference tool and demo * fix linting * rename inference_image to inference_model * infer pred_label and pred_score * fix linting * add docstr for inference * add remove_keys * add doc for inference * dump results rather than outputs * add class_names * add related infer scripts * add demo image and the first part of colab tutorial * conduct evaluation in dataset * return lst in simple_test * compuate topk accuracy with numpy * return outputs in test api * merge inference and evaluation tool * fix typo * rm gt_labels in test conifg * get gt_labels during evaluation * sperate the ipython notebook to another PR * return tensor for onnx_export * detach var in simple_test * rm inference script * rm inference script * construct data dict to replace LoadImage * print first predicted result if args.out is None * modify test_pipeline in inference * refactor class_names of imagenet * set class_to_idx as a property in base dataset * output pred_class during inference * remove unused docstr |
||
---|---|---|
.github | ||
configs | ||
demo | ||
docs | ||
mmcls | ||
requirements | ||
resources | ||
tests | ||
tools | ||
.gitignore | ||
.pre-commit-config.yaml | ||
.readthedocs.yml | ||
LICENSE | ||
README.md | ||
requirements.txt | ||
setup.cfg | ||
setup.py |
README.md

Introduction
MMClassification is an open source image classification toolbox based on PyTorch. It is a part of the OpenMMLab project.
Documentation: https://mmclassification.readthedocs.io/en/latest/
Major features
- Various backbones and pretrained models
- Bag of training tricks
- Large-scale training configs
- High efficiency and extensibility
License
This project is released under the Apache 2.0 license.
Benchmark and model zoo
Results and models are available in the model zoo.
Supported backbones:
- ResNet
- ResNeXt
- SE-ResNet
- SE-ResNeXt
- RegNet
- ShuffleNetV1
- ShuffleNetV2
- MobileNetV2
- MobileNetV3
Installation
Please refer to install.md for installation and dataset preparation.
Getting Started
Please see getting_started.md for the basic usage of MMClassification. There are also tutorials for finetuning models, adding new dataset, designing data pipeline, and adding new modules.
Contributing
We appreciate all contributions to improve MMClassification. Please refer to CONTRUBUTING.md for the contributing guideline.
Acknowledgement
MMClassification is an open source project that is contributed by researchers and engineers from various colleges and companies. We appreciate all the contributors who implement their methods or add new features, as well as users who give valuable feedbacks. We wish that the toolbox and benchmark could serve the growing research community by providing a flexible toolkit to reimplement existing methods and develop their own new classifiers.