OpenMMLab Pre-training Toolbox and Benchmark
 
 
 
 
Go to file
Lei Yang 9547e7b7a5
Add model inference (#16)
* 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
2020-09-30 19:00:20 +08:00
.github add github action (manually squash) 2020-07-12 00:07:05 +08:00
configs Add model inference (#16) 2020-09-30 19:00:20 +08:00
demo Add model inference (#16) 2020-09-30 19:00:20 +08:00
docs Add model inference (#16) 2020-09-30 19:00:20 +08:00
mmcls Add model inference (#16) 2020-09-30 19:00:20 +08:00
requirements Add albumentations (#45) 2020-09-22 17:35:39 +08:00
resources
tests Add VGG and pretained models (#27) 2020-09-29 17:49:42 +08:00
tools Add model inference (#16) 2020-09-30 19:00:20 +08:00
.gitignore
.pre-commit-config.yaml
.readthedocs.yml add .readthedocs.yml 2020-07-13 01:08:40 +08:00
LICENSE Update readme (#3) 2020-07-13 12:55:34 +08:00
README.md rename detectors to classifiers (#19) 2020-08-05 00:43:13 +08:00
requirements.txt Add albumentations (#45) 2020-09-22 17:35:39 +08:00
setup.cfg
setup.py add github action (manually squash) 2020-07-12 00:07:05 +08:00

README.md

Build Status Documentation Status codecov license

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/

demo

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.