{"id":27017,"library":"gluoncv","title":"GluonCV","description":"GluonCV is a deep learning computer vision toolkit originally built on Apache MXNet, now also supporting PyTorch. Version 0.10.5.post0 is the latest release. The project is in maintenance mode with infrequent releases.","status":"maintenance","version":"0.10.5.post0","language":"python","source_language":"en","source_url":"https://github.com/dmlc/gluon-cv","tags":["computer-vision","mxnet","pytorch","deep-learning","model-zoo"],"install":[{"cmd":"pip install gluoncv","lang":"bash","label":"Standard install"},{"cmd":"pip install gluoncv[torch]","lang":"bash","label":"Install with PyTorch support"}],"dependencies":[{"reason":"Core backend for GluonCV MXNet models","package":"mxnet","optional":false},{"reason":"Required for PyTorch models (gluoncv.torch)","package":"torch","optional":true}],"imports":[{"note":"model_zoo is not a module, it's a subpackage; direct import fails","wrong":"import gluoncv.model_zoo","symbol":"model_zoo","correct":"from gluoncv import model_zoo"},{"note":"Direct submodule import works, but deep imports may break if submodules not loaded","wrong":"import gluoncv.data.transforms","symbol":"data","correct":"from gluoncv import data"}],"quickstart":{"code":"from gluoncv import model_zoo, data, utils\nimport mxnet as mx\n\n# Load a pre-trained model\nnet = model_zoo.get_model('yolo3_darknet53_coco', pretrained=True)\n\n# Prepare a sample image\nfrom mxnet import nd\nimport numpy as np\n\n# Simulate an image array\nx = nd.random.uniform(0, 255, (1, 3, 416, 416))\n\n# Perform inference\nclass_ids, scores, bounding_boxes = net(x)\nprint('Detected objects:', class_ids, scores, bounding_boxes)","lang":"python","description":"Load a pre-trained YOLOv3 model and run inference on a random image (MXNet backend)."},"warnings":[{"fix":"Upgrade MXNet to 1.8+ and use Python 3.6+.","message":"GluonCV 0.10.x drops Python 2 support and requires MXNet >= 1.8.0.","severity":"breaking","affected_versions":">=0.10.0"},{"fix":"Migrate to PyTorch backend using gluoncv.torch module.","message":"MXNet backend is deprecated in favor of PyTorch. New development is on PyTorch models.","severity":"deprecated","affected_versions":">=0.9.0"},{"fix":"Use gluoncv.model_zoo.get_model('...', pretrained=False) to skip download.","message":"model_zoo.get_model() may download large pretrained weights on first use; ensure internet connectivity and sufficient disk space.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from gluoncv import model_zoo' instead of 'import gluoncv.model_zoo'.","cause":"Attempting to import model_zoo as a top-level module instead of a subpackage.","error":"ImportError: No module named 'gluoncv.model_zoo'"},{"fix":"Install mxnet: pip install mxnet (or mxnet-cuXXX for GPU).","cause":"MXNet is not installed but required for default GluonCV usage.","error":"ModuleNotFoundError: No module named 'mxnet'"},{"fix":"Explicitly import: 'from gluoncv import data'.","cause":"The 'data' subpackage is not automatically imported with 'import gluoncv'.","error":"AttributeError: module 'gluoncv' has no attribute 'data'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}