mmcv
OpenMMLab Computer Vision Foundation
What it is and what it does
MMCV is a foundational library maintained by OpenMMLab for computer vision research and applications. It provides core utilities for image and video processing, data transformation pipelines, visualization of images and annotations, standard CNN architectures, and high-performance implementations of common CPU and CUDA operations. The library is designed to be a building block for computer vision projects rather than a complete end-to-end framework.
Version 2.x (the current line) removed training-related components and added a dedicated data transformation module, shifting focus toward being a lightweight vision utility layer. Installation requires PyTorch to be pre-installed and may require building from source if a pre-built wheel is not available for your specific PyTorch and CUDA versions. The package supports Python 3.7+ and runs on Linux, Windows, and macOS.
Use it for:
- Build custom computer vision pipelines that need efficient image I/O, resizing, and annotation visualization.
- Integrate optimized CUDA operations for image processing into deep learning training loops.
- Prototype CNN-based models using standard architectures provided by the library.
- Process and transform image datasets with the data transformation module before feeding to models.
- Visualize detection or segmentation results on images and videos during development and evaluation.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
MMCV is a foundational library for computer vision that provides image and video processing, visualization, data transformation, CNN architectures, and optimized CPU/CUDA operations.
Yes, with conditions. MMCV is a mature, widely-used foundation library (6465 GitHub stars, top 15000 PyPI packages) with no known vulnerabilities and permissive licensing. However, install it only if you need its specific utilities—high install friction (source builds are common), aging maintenance (842 days since last release), and no runtime dependencies mean you should verify that its image processing, CNN architectures, or CUDA ops are actually required for your project rather than using PyTorch or OpenCV directly.
Install
mmcv on PyPI
pip
pip install mmcvuv
uv add mmcvpoetry
poetry add mmcvInstalling mmcv
Before you install
High install friction: the package requires PyTorch to be pre-installed and may need to build from source if a pre-built wheel matching your PyTorch and CUDA versions is unavailable. Maintenance status is aging—last release was 842 days ago, though the repository remains active with recent commits.
License in practice
Licensed under Apache 2.0 (permissive), though the documentation notes that some specific operations within the library carry other licenses; commercial users should review LICENSES.md for details.
Quickstart
pip install -U openmim
mim install mmcv
import mmcv
# Use vision utilities, e.g., mmcv.imread(), mmcv.imwrite()
PyTorch must be installed first; for Apple Silicon users, PyTorch 1.13+ is required. Pre-built wheels may not exist for all PyTorch/CUDA combinations, requiring source compilation.
Verify before relying
- Whether the aging maintenance status (842 days since release) affects stability or feature completeness for current deep learning workflows.
- Specific performance characteristics of the CUDA ops compared to alternatives or native PyTorch implementations.
- Whether mmcv-lite (the lite variant without CUDA ops) is a viable alternative for projects that do not require GPU acceleration.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | aging — 842 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 100,349/month — #12,989 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mmcv-2.2.0.tar.gz
Keywords: computer, vision
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
cvat-sdkPython client library for CVAT (Computer Vision…
permissive · top 15,000 on PyPI
mmdetMMDetection is an object detection and instance…
permissive · top 15,000 on PyPI
mmengineMMEngine is a foundational PyTorch training…
permissive · top 5,000 on PyPI
voxel51-etaETA is an extensible computer vision and…
permissive · top 15,000 on PyPI
torchvisionTorchvision provides pre-built datasets, model…
permissive · top 1,000 on PyPI
pytorchcvProvides a collection of pretrained computer…
unclear · top 15,000 on PyPI
icevisionIceVision provides a unified framework for…
permissive · top 15,000 on PyPI
fiftyone-dbProvides the database backend for FiftyOne, a…
permissive · top 15,000 on PyPI
libcuvs-cu12GPU-accelerated vector search and clustering…
permissive · top 15,000 on PyPI