MCPcopy Index your code
hub / github.com/dmlc/gluon-cv

github.com/dmlc/gluon-cv @v0.10.0

repository ↗ · DeepWiki ↗ · release v0.10.0 ↗ · + Follow
4,128 symbols 14,695 edges 544 files 1,546 documented · 37% updated 19mo agov0.10.0 · 2021-03-09★ 5,92039 open issues
README

Gluon CV Toolkit

Build Status GitHub license PyPI PyPI Pre-release Downloads

PWC PWC PWC PWC PWC

| Installation | Documentation | Tutorials |

GluonCV provides implementations of the state-of-the-art (SOTA) deep learning models in computer vision.

It is designed for engineers, researchers, and students to fast prototype products and research ideas based on these models. This toolkit offers four main features:

  1. Training scripts to reproduce SOTA results reported in research papers
  2. Supports both PyTorch and MXNet
  3. A large number of pre-trained models
  4. Carefully designed APIs that greatly reduce the implementation complexity
  5. Community supports

Demo

<img src="https://github.com/dmlc/gluon-cv/raw/v0.10.0/docs/_static/short_demo.gif">

Check the HD video at Youtube or Bilibili.

Supported Applications

Application Illustration Available Models
Image Classification:

recognize an object in an image. | classification | 50+ models, including

ResNet, MobileNet,

DenseNet, VGG, ... | | Object Detection:

detect multiple objects with their

bounding boxes in an image. | detection | Faster RCNN, SSD, Yolo-v3 | | Semantic Segmentation:

associate each pixel of an image

with a categorical label. | semantic | FCN, PSP, ICNet, DeepLab-v3, DeepLab-v3+, DANet, FastSCNN | | Instance Segmentation:

detect objects and associate

each pixel inside object area with an

instance label. | instance | Mask RCNN| | Pose Estimation:

detect human pose

from images. | pose | Simple Pose| | Video Action Recognition:

recognize human actions

in a video. | action_recognition | MXNet: TSN, C3D, I3D, I3D_slow, P3D, R3D, R2+1D, Non-local, SlowFast

PyTorch: TSN, I3D, I3D_slow, R2+1D, Non-local, CSN, SlowFast, TPN | | Depth Prediction:

predict depth map

from images. | depth | Monodepth2| | GAN:

generate visually deceptive images | lsun | WGAN, CycleGAN, StyleGAN| | Person Re-ID:

re-identify pedestrians across scenes | re-id |Market1501 baseline |

Installation

GluonCV is built on top of MXNet and PyTorch. Depending on the individual model implementation(check model zoo for the complete list), you will need to install either one of the deep learning framework. Of course you can always install both for the best coverage.

Please also check installation guide for a comprehensive guide to help you choose the right installation command for your environment.

Installation (MXNet)

GluonCV supports Python 3.6 or later. The easiest way to install is via pip.

Stable Release

The following commands install the stable version of GluonCV and MXNet:

pip install gluoncv --upgrade
# native
pip install -U --pre mxnet -f https://dist.mxnet.io/python/mkl
# cuda 10.2
pip install -U --pre mxnet -f https://dist.mxnet.io/python/cu102mkl

The latest stable version of GluonCV is 0.8 and we recommend mxnet 1.6.0/1.7.0

Nightly Release

You may get access to latest features and bug fixes with the following commands which install the nightly build of GluonCV and MXNet:

pip install gluoncv --pre --upgrade
# native
pip install -U --pre mxnet -f https://dist.mxnet.io/python/mkl
# cuda 10.2
pip install -U --pre mxnet -f https://dist.mxnet.io/python/cu102mkl

There are multiple versions of MXNet pre-built package available. Please refer to mxnet packages if you need more details about MXNet versions.

Installation (PyTorch)

GluonCV supports Python 3.6 or later. The easiest way to install is via pip.

Stable Release

The following commands install the stable version of GluonCV and PyTorch:

pip install gluoncv --upgrade
# native
pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
# cuda 10.2
pip install torch==1.6.0 torchvision==0.7.0

There are multiple versions of PyTorch pre-built package available. Please refer to PyTorch if you need other versions.

The latest stable version of GluonCV is 0.8 and we recommend PyTorch 1.6.0

Nightly Release

You may get access to latest features and bug fixes with the following commands which install the nightly build of GluonCV:

pip install gluoncv --pre --upgrade
# native
pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# cuda 10.2
pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu102/torch_nightly.html

Docs 📖

GluonCV documentation is available at our website.

Examples

All tutorials are available at our website!

Resources

Check out how to use GluonCV for your own research or projects.

Citation

If you feel our code or models helps in your research, kindly cite our papers:

``` @article{gluoncvnlp2020, author = {Jian Guo and He He and Tong He and Leonard Lausen and Mu Li and Haibin Lin and Xingjian Shi and Chenguang Wang and Junyuan Xie and Sheng Zha and Aston Zhang and Hang Zhang and Zhi Zhang and Zhongyue Zhang and Shuai Zheng and Yi Zhu}, title = {GluonCV and GluonNLP: Deep Learning in Computer Vision and Natural Language Processing}, journal = {Journal of Machine Learning Research}, year = {2020}, volume = {21}, number = {23}, pages = {1-7}, url = {http://jmlr.org/papers/v21/19-429.html} }

@article{he2018bag, title={Bag of Tricks for Image Classification with Convolutional Neural Networks}, author={He, Tong and Zhang, Zhi and Zhang, Hang and Zhang, Zhongyue and Xie, Junyuan and Li, Mu}, journal

Core symbols most depended-on inside this repo

add
called by 1131
gluoncv/utils/lr_scheduler.py
append
called by 729
gluoncv/torch/data/gluoncv_motion_dataset/io/video_io.py
get
called by 377
gluoncv/utils/parallel.py
collect_params
called by 299
gluoncv/model_zoo/segbase.py
time
called by 292
gluoncv/torch/data/gluoncv_motion_dataset/dataset.py
asnumpy
called by 254
gluoncv/torch/data/gluoncv_motion_dataset/io/video_io.py
initialize
called by 142
gluoncv/model_zoo/smot/motion_estimation.py
add
called by 133
scripts/gan/srgan/train_srgan.py

Shape

Method 1,856
Function 1,654
Class 618

Languages

Python96%
TypeScript4%

Modules by API surface

gluoncv/torch/data/gluoncv_motion_dataset/dataset.py127 symbols
gluoncv/torch/data/gluoncv_motion_dataset/io/video_io.py92 symbols
docs/_static/js/jquery.min.js92 symbols
gluoncv/torch/data/transforms/transforms.py83 symbols
docs/_static/js/slides.min.js70 symbols
gluoncv/torch/model_zoo/action_recognition/tpn.py51 symbols
gluoncv/torch/model_zoo/video_language/coot_model.py48 symbols
gluoncv/loss.py48 symbols
gluoncv/data/transforms/video.py48 symbols
gluoncv/model_zoo/nasnet.py44 symbols
gluoncv/model_zoo/fastscnn.py43 symbols
gluoncv/model_zoo/resnet.py42 symbols

For agents

$ claude mcp add gluon-cv \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact